Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 1 | # FLAC - Free Lossless Audio Codec |
Josh Coalson | 1152f9f | 2002-01-26 18:05:12 +0000 | [diff] [blame] | 2 | # Copyright (C) 2001,2002 Josh Coalson |
Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 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 | |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 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 | |
Josh Coalson | 1f99eac | 2002-08-23 06:45:23 +0000 | [diff] [blame] | 30 | .PHONY: doc libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_common plugin_xmms flac metaflac test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_streams |
| 31 | all: doc libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_common plugin_xmms flac metaflac test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_streams |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 32 | |
| 33 | DEFAULT_CONFIG = release |
| 34 | |
| 35 | CONFIG = $(DEFAULT_CONFIG) |
| 36 | |
| 37 | debug : CONFIG = debug |
| 38 | release : CONFIG = release |
| 39 | |
| 40 | debug : all |
| 41 | release : all |
| 42 | |
Josh Coalson | ef5c2f8 | 2002-07-24 06:13:41 +0000 | [diff] [blame] | 43 | doc: |
| 44 | (cd $@ ; $(MAKE) -f Makefile.lite) |
| 45 | |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 46 | libFLAC: |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 47 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 48 | |
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 49 | libFLAC++: libFLAC |
Josh Coalson | aae225a | 2002-05-17 06:07:26 +0000 | [diff] [blame] | 50 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 51 | |
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 52 | libOggFLAC: libFLAC |
Josh Coalson | c49380d | 2002-08-07 17:38:08 +0000 | [diff] [blame] | 53 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 54 | |
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 55 | libOggFLAC++: libFLAC |
Josh Coalson | c49380d | 2002-08-07 17:38:08 +0000 | [diff] [blame] | 56 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 57 | |
Josh Coalson | aae225a | 2002-05-17 06:07:26 +0000 | [diff] [blame] | 58 | share: |
| 59 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 60 | |
Josh Coalson | c49380d | 2002-08-07 17:38:08 +0000 | [diff] [blame] | 61 | flac: libFLAC libOggFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 62 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 63 | |
Josh Coalson | 57ba6f4 | 2002-06-07 05:27:37 +0000 | [diff] [blame] | 64 | metaflac: libFLAC share |
Josh Coalson | 7476692 | 2001-02-23 23:15:00 +0000 | [diff] [blame] | 65 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 66 | |
Josh Coalson | 1f99eac | 2002-08-23 06:45:23 +0000 | [diff] [blame] | 67 | plugin_common: libFLAC |
| 68 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 69 | |
| 70 | plugin_xmms: libFLAC plugin_common |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 71 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | 614ba67 | 2000-12-22 22:49:09 +0000 | [diff] [blame] | 72 | |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 73 | test_streams: libFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 74 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 75 | |
Josh Coalson | 57ba6f4 | 2002-06-07 05:27:37 +0000 | [diff] [blame] | 76 | test_libFLAC: libFLAC |
| 77 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 78 | |
| 79 | test_libFLAC++: libFLAC libFLAC++ |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 80 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 81 | |
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 82 | test_libOggFLAC: libFLAC libOggFLAC |
| 83 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 84 | |
| 85 | test_libOggFLAC++: libFLAC libOggFLAC libOggFLAC++ |
| 86 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 87 | |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 88 | test: debug |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 89 | (cd test ; $(MAKE) -f Makefile.lite) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 90 | |
| 91 | clean: |
Josh Coalson | ef5c2f8 | 2002-07-24 06:13:41 +0000 | [diff] [blame] | 92 | -(cd doc ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 93 | -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | aae225a | 2002-05-17 06:07:26 +0000 | [diff] [blame] | 94 | -(cd src/libFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | c49380d | 2002-08-07 17:38:08 +0000 | [diff] [blame] | 95 | -(cd src/libOggFLAC ; $(MAKE) -f Makefile.lite clean) |
| 96 | -(cd src/libOggFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | aae225a | 2002-05-17 06:07:26 +0000 | [diff] [blame] | 97 | -(cd src/share ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 98 | -(cd src/flac ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 7476692 | 2001-02-23 23:15:00 +0000 | [diff] [blame] | 99 | -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 1f99eac | 2002-08-23 06:45:23 +0000 | [diff] [blame] | 100 | -(cd src/plugin_common ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 101 | -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 57ba6f4 | 2002-06-07 05:27:37 +0000 | [diff] [blame] | 102 | -(cd src/test_libFLAC ; $(MAKE) -f Makefile.lite clean) |
| 103 | -(cd src/test_libFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 104 | -(cd src/test_libOggFLAC ; $(MAKE) -f Makefile.lite clean) |
| 105 | -(cd src/test_libOggFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 106 | -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 107 | -(cd test ; $(MAKE) -f Makefile.lite clean) |