blob: 92adb87c0aba9c641d6da3800dbaec9525181e33 [file] [log] [blame]
Josh Coalsonbb7f6b92000-12-10 04:09:52 +00001#
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 Coalson74766922001-02-23 23:15:00 +000013all: libFLAC flac metaflac test_streams test_unit
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000014
15DEFAULT_CONFIG = release
16
17CONFIG = $(DEFAULT_CONFIG)
18
19debug : CONFIG = debug
20release : CONFIG = release
21
22debug : all
23release : all
24
25libFLAC:
Josh Coalson0cf199f2001-01-19 22:34:26 +000026 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000027
28flac: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000029 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000030
Josh Coalson74766922001-02-23 23:15:00 +000031metaflac:
32 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
33
Josh Coalson614ba672000-12-22 22:49:09 +000034plugin_xmms: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000035 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalson614ba672000-12-22 22:49:09 +000036
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000037test_streams: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000038 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000039
40test_unit: libFLAC
Josh Coalson0cf199f2001-01-19 22:34:26 +000041 (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000042
43test: debug
Josh Coalson0cf199f2001-01-19 22:34:26 +000044 (cd test ; $(MAKE) -f Makefile.lite)
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000045
46clean:
Josh Coalson0cf199f2001-01-19 22:34:26 +000047 -(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
48 -(cd src/flac ; $(MAKE) -f Makefile.lite clean)
Josh Coalson74766922001-02-23 23:15:00 +000049 -(cd src/metaflac ; $(MAKE) -f Makefile.lite clean)
Josh Coalson0cf199f2001-01-19 22:34:26 +000050 -(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)