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 # release : build all libraries and programs in release mode
26 # test : run the unit and stream tests
27 # clean : remove all non-distro files
30 .PHONY: doc libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_xmms flac metaflac test_libFLAC test_libFLAC++ test_streams
31 all: doc libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_xmms flac metaflac test_libFLAC test_libFLAC++ test_streams
33 DEFAULT_CONFIG = release
35 CONFIG = $(DEFAULT_CONFIG)
37 debug : CONFIG = debug
38 release : CONFIG = release
44 (cd $@ ; $(MAKE) -f Makefile.lite)
47 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
50 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
53 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
56 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
59 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
61 flac: libFLAC libOggFLAC
62 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
64 metaflac: libFLAC share
65 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
68 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
71 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
74 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
76 test_libFLAC++: libFLAC libFLAC++
77 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
80 (cd test ; $(MAKE) -f Makefile.lite)
83 -(cd doc ; $(MAKE) -f Makefile.lite clean)
84 -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
85 -(cd src/libFLAC++ ; $(MAKE) -f Makefile.lite clean)
86 -(cd src/libOggFLAC ; $(MAKE) -f Makefile.lite clean)
87 -(cd src/libOggFLAC++ ; $(MAKE) -f Makefile.lite clean)
88 -(cd src/share ; $(MAKE) -f Makefile.lite clean)
89 -(cd src/flac ; $(MAKE) -f Makefile.lite clean)
90 -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean)
91 -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean)
92 -(cd src/test_libFLAC ; $(MAKE) -f Makefile.lite clean)
93 -(cd src/test_libFLAC++ ; $(MAKE) -f Makefile.lite clean)
94 -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean)
95 -(cd test ; $(MAKE) -f Makefile.lite clean)