massive glob of checkins: improved tests, more tests, bugfixes
[platform/upstream/flac.git] / Makefile.lite
1 #  FLAC - Free Lossless Audio Codec
2 #  Copyright (C) 2001,2002  Josh Coalson
3 #
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.
8 #
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.
13 #
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.
17
18 #
19 # GNU Makefile
20 #
21 # Useful targets
22 #
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
28 #
29
30 all: libFLAC libFLAC++ share flac metaflac test_libFLAC test_libFLAC++ test_streams
31
32 DEFAULT_CONFIG = release
33
34 CONFIG = $(DEFAULT_CONFIG)
35
36 debug   : CONFIG = debug
37 release : CONFIG = release
38
39 debug   : all
40 release : all
41
42 libFLAC:
43         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
44
45 libFLAC++:
46         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
47
48 share:
49         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
50
51 flac: libFLAC
52         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
53
54 metaflac: libFLAC share
55         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
56
57 plugin_xmms: libFLAC
58         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
59
60 test_streams: libFLAC
61         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
62
63 test_libFLAC: libFLAC
64         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
65
66 test_libFLAC++: libFLAC libFLAC++
67         (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
68
69 test: debug
70         (cd test ; $(MAKE) -f Makefile.lite)
71
72 clean:
73         -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
74         -(cd src/libFLAC++ ; $(MAKE) -f Makefile.lite clean)
75         -(cd src/share ; $(MAKE) -f Makefile.lite clean)
76         -(cd src/flac ; $(MAKE) -f Makefile.lite clean)
77         -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean)
78         -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean)
79         -(cd src/test_libFLAC ; $(MAKE) -f Makefile.lite clean)
80         -(cd src/test_libFLAC++ ; $(MAKE) -f Makefile.lite clean)
81         -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean)
82         -(cd test ; $(MAKE) -f Makefile.lite clean)