blob: 92adb87c0aba9c641d6da3800dbaec9525181e33 [file] [log] [blame]
#
# 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 metaflac test_streams test_unit
DEFAULT_CONFIG = release
CONFIG = $(DEFAULT_CONFIG)
debug : CONFIG = debug
release : CONFIG = release
debug : all
release : all
libFLAC:
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
flac: libFLAC
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
metaflac:
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
plugin_xmms: libFLAC
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
test_streams: libFLAC
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
test_unit: libFLAC
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
test: debug
(cd test ; $(MAKE) -f Makefile.lite)
clean:
-(cd src/libFLAC ; $(MAKE) -f Makefile.lite clean)
-(cd src/flac ; $(MAKE) -f Makefile.lite clean)
-(cd src/metaflac ; $(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)