1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson
4 # This file is part the FLAC project. FLAC is comprised of several
5 # components distributed under difference licenses. The codec libraries
6 # are distributed under Xiph.Org's BSD-like license (see the file
7 # COPYING.Xiph in this distribution). All other programs, libraries, and
8 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
9 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
10 # FLAC distribution contains at the top the terms under which it may be
13 # Since this particular file is relevant to all components of FLAC,
14 # it may be distributed under the Xiph.Org license, which is the least
15 # restrictive of those mentioned above. See the file COPYING.Xiph in this
23 # all : build all libraries and programs in the default configuration (currently 'release')
24 # debug : build all libraries and programs in debug mode
25 # valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
26 # release : build all libraries and programs in release mode
27 # test : run the unit and stream tests
28 # clean : remove all non-distro files
33 .PHONY: all doc src libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams
36 DEFAULT_CONFIG = release
38 CONFIG = $(DEFAULT_CONFIG)
40 debug : CONFIG = debug
41 valgrind: CONFIG = valgrind
42 release : CONFIG = release
49 (cd $@ ; $(MAKE) -f Makefile.lite)
52 (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
55 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
58 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
61 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
64 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
66 metaflac: libFLAC share
67 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
69 plugin_common: libFLAC
70 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
72 plugin_xmms: libFLAC plugin_common
73 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
76 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
79 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
82 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
85 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
87 test_libFLAC++: libFLAC libFLAC++
88 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
91 (cd test ; $(MAKE) -f Makefile.lite debug)
94 (cd test ; $(MAKE) -f Makefile.lite valgrind)
97 (cd test ; $(MAKE) -f Makefile.lite release)
100 -(cd doc ; $(MAKE) -f Makefile.lite clean)
101 -(cd src ; $(MAKE) -f Makefile.lite clean)
102 -(cd test ; $(MAKE) -f Makefile.lite clean)