Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 1 | # |
| 2 | # GNU Makefile |
| 3 | # |
| 4 | # Useful targets |
| 5 | # |
| 6 | # all : build all libraries and programs in the default configuration (currently 'release') |
| 7 | # debug : build all libraries and programs in debug mode |
| 8 | # release : build all libraries and programs in release mode |
| 9 | # test : run the unit and stream tests |
| 10 | # clean : remove all non-distro files |
| 11 | # |
| 12 | |
Josh Coalson | 7476692 | 2001-02-23 23:15:00 +0000 | [diff] [blame] | 13 | all: libFLAC flac metaflac test_streams test_unit |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 14 | |
| 15 | DEFAULT_CONFIG = release |
| 16 | |
| 17 | CONFIG = $(DEFAULT_CONFIG) |
| 18 | |
| 19 | debug : CONFIG = debug |
| 20 | release : CONFIG = release |
| 21 | |
| 22 | debug : all |
| 23 | release : all |
| 24 | |
| 25 | libFLAC: |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 26 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 27 | |
| 28 | flac: libFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 29 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 30 | |
Josh Coalson | 7476692 | 2001-02-23 23:15:00 +0000 | [diff] [blame] | 31 | metaflac: |
| 32 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 33 | |
Josh Coalson | 614ba67 | 2000-12-22 22:49:09 +0000 | [diff] [blame] | 34 | plugin_xmms: libFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 35 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | 614ba67 | 2000-12-22 22:49:09 +0000 | [diff] [blame] | 36 | |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 37 | test_streams: libFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 38 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 39 | |
| 40 | test_unit: libFLAC |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 41 | (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 42 | |
| 43 | test: debug |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 44 | (cd test ; $(MAKE) -f Makefile.lite) |
Josh Coalson | bb7f6b9 | 2000-12-10 04:09:52 +0000 | [diff] [blame] | 45 | |
| 46 | clean: |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 47 | -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean) |
| 48 | -(cd src/flac ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 7476692 | 2001-02-23 23:15:00 +0000 | [diff] [blame] | 49 | -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 0cf199f | 2001-01-19 22:34:26 +0000 | [diff] [blame] | 50 | -(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean) |
| 51 | -(cd src/test_streams ; $(MAKE) -f Makefile.lite clean) |
| 52 | -(cd src/test_unit ; $(MAKE) -f Makefile.lite clean) |
| 53 | -(cd test ; $(MAKE) -f Makefile.lite clean) |