annotate src/flac-1.2.1/Makefile.lite @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 # FLAC - Free Lossless Audio Codec
Chris@1 2 # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Chris@1 3 #
Chris@1 4 # This file is part the FLAC project. FLAC is comprised of several
Chris@1 5 # components distributed under difference licenses. The codec libraries
Chris@1 6 # are distributed under Xiph.Org's BSD-like license (see the file
Chris@1 7 # COPYING.Xiph in this distribution). All other programs, libraries, and
Chris@1 8 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
Chris@1 9 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
Chris@1 10 # FLAC distribution contains at the top the terms under which it may be
Chris@1 11 # distributed.
Chris@1 12 #
Chris@1 13 # Since this particular file is relevant to all components of FLAC,
Chris@1 14 # it may be distributed under the Xiph.Org license, which is the least
Chris@1 15 # restrictive of those mentioned above. See the file COPYING.Xiph in this
Chris@1 16 # distribution.
Chris@1 17
Chris@1 18 #
Chris@1 19 # GNU Makefile
Chris@1 20 #
Chris@1 21 # Useful targets
Chris@1 22 #
Chris@1 23 # all : build all libraries and programs in the default configuration (currently 'release')
Chris@1 24 # debug : build all libraries and programs in debug mode
Chris@1 25 # valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
Chris@1 26 # release : build all libraries and programs in release mode
Chris@1 27 # test : run the unit and stream tests
Chris@1 28 # clean : remove all non-distro files
Chris@1 29 #
Chris@1 30
Chris@1 31 topdir = .
Chris@1 32
Chris@1 33 .PHONY: all doc src examples libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams
Chris@1 34 all: doc src examples
Chris@1 35
Chris@1 36 DEFAULT_CONFIG = release
Chris@1 37
Chris@1 38 CONFIG = $(DEFAULT_CONFIG)
Chris@1 39
Chris@1 40 debug : CONFIG = debug
Chris@1 41 valgrind: CONFIG = valgrind
Chris@1 42 release : CONFIG = release
Chris@1 43
Chris@1 44 debug : all
Chris@1 45 valgrind: all
Chris@1 46 release : all
Chris@1 47
Chris@1 48 doc:
Chris@1 49 (cd $@ && $(MAKE) -f Makefile.lite)
Chris@1 50
Chris@1 51 src:
Chris@1 52 (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 53
Chris@1 54 examples: src
Chris@1 55 (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 56
Chris@1 57 libFLAC:
Chris@1 58 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 59
Chris@1 60 libFLAC++: libFLAC
Chris@1 61 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 62
Chris@1 63 share: libFLAC
Chris@1 64 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 65
Chris@1 66 flac: libFLAC share
Chris@1 67 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 68
Chris@1 69 metaflac: libFLAC share
Chris@1 70 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 71
Chris@1 72 plugin_common: libFLAC
Chris@1 73 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 74
Chris@1 75 plugin_xmms: libFLAC plugin_common
Chris@1 76 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 77
Chris@1 78 test_seeking: libFLAC
Chris@1 79 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 80
Chris@1 81 test_streams: libFLAC
Chris@1 82 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 83
Chris@1 84 test_grabbag: share
Chris@1 85 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 86
Chris@1 87 test_libFLAC: libFLAC
Chris@1 88 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 89
Chris@1 90 test_libFLAC++: libFLAC libFLAC++
Chris@1 91 (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
Chris@1 92
Chris@1 93 test: debug
Chris@1 94 (cd test && $(MAKE) -f Makefile.lite debug)
Chris@1 95
Chris@1 96 testv: valgrind
Chris@1 97 (cd test && $(MAKE) -f Makefile.lite valgrind)
Chris@1 98
Chris@1 99 testr: release
Chris@1 100 (cd test && $(MAKE) -f Makefile.lite release)
Chris@1 101
Chris@1 102 clean:
Chris@1 103 -(cd doc && $(MAKE) -f Makefile.lite clean)
Chris@1 104 -(cd src && $(MAKE) -f Makefile.lite clean)
Chris@1 105 -(cd examples && $(MAKE) -f Makefile.lite clean)
Chris@1 106 -(cd test && $(MAKE) -f Makefile.lite clean)