1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2001,2002 Josh Coalson
4 # This program is part of FLAC; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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++ libOggFLAC libOggFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ 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))
67 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
69 flac: libFLAC libOggFLAC share
70 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
72 metaflac: libFLAC share
73 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
75 plugin_common: libFLAC
76 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
78 plugin_xmms: libFLAC plugin_common
79 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
82 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
85 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
88 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
90 test_libFLAC++: libFLAC libFLAC++
91 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
93 test_libOggFLAC: libFLAC libOggFLAC
94 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
96 test_libOggFLAC++: libFLAC libOggFLAC libOggFLAC++
97 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
100 (cd test ; $(MAKE) -f Makefile.lite debug)
103 (cd test ; $(MAKE) -f Makefile.lite valgrind)
106 (cd test ; $(MAKE) -f Makefile.lite release)
109 -(cd doc ; $(MAKE) -f Makefile.lite clean)
110 -(cd src ; $(MAKE) -f Makefile.lite clean)
111 -(cd test ; $(MAKE) -f Makefile.lite clean)