2000-12-10 04:09:52 +00:00
|
|
|
#
|
|
|
|
# GNU Makefile
|
|
|
|
#
|
|
|
|
# Useful targets
|
|
|
|
#
|
|
|
|
# all : build all libraries and programs in the default configuration (currently 'release')
|
|
|
|
# debug : build all libraries and programs in debug mode
|
|
|
|
# release : build all libraries and programs in release mode
|
|
|
|
# test : run the unit and stream tests
|
|
|
|
# clean : remove all non-distro files
|
|
|
|
#
|
|
|
|
|
|
|
|
all: libFLAC flac test_streams test_unit
|
|
|
|
|
|
|
|
DEFAULT_CONFIG = release
|
|
|
|
|
|
|
|
CONFIG = $(DEFAULT_CONFIG)
|
|
|
|
|
|
|
|
debug : CONFIG = debug
|
|
|
|
release : CONFIG = release
|
|
|
|
|
|
|
|
debug : all
|
|
|
|
release : all
|
|
|
|
|
|
|
|
libFLAC:
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
flac: libFLAC
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 04:09:52 +00:00
|
|
|
|
2000-12-22 22:49:09 +00:00
|
|
|
plugin_xmms: libFLAC
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-22 22:49:09 +00:00
|
|
|
|
2000-12-10 04:09:52 +00:00
|
|
|
test_streams: libFLAC
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
test_unit: libFLAC
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
test: debug
|
2001-01-19 22:34:26 +00:00
|
|
|
(cd test ; $(MAKE) -f Makefile.lite)
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
clean:
|
2001-01-19 22:34:26 +00:00
|
|
|
-(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd src/flac ; $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd src/plugin_xmms ; $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd src/test_streams ; $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd src/test_unit ; $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd test ; $(MAKE) -f Makefile.lite clean)
|