flac/Makefile.lite

50 lines
1.0 KiB
Makefile
Raw Normal View History

2000-12-10 07:09:52 +03: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-17 21:43:01 +03:00
(cd src/$@ ; $(MAKE) $(CONFIG))
2000-12-10 07:09:52 +03:00
flac: libFLAC
2001-01-17 21:43:01 +03:00
(cd src/$@ ; $(MAKE) $(CONFIG))
2000-12-10 07:09:52 +03:00
2000-12-23 01:49:09 +03:00
plugin_xmms: libFLAC
2001-01-17 21:43:01 +03:00
(cd src/$@ ; $(MAKE) $(CONFIG))
2000-12-23 01:49:09 +03:00
2000-12-10 07:09:52 +03:00
test_streams: libFLAC
2001-01-17 21:43:01 +03:00
(cd src/$@ ; $(MAKE) $(CONFIG))
2000-12-10 07:09:52 +03:00
test_unit: libFLAC
2001-01-17 21:43:01 +03:00
(cd src/$@ ; $(MAKE) $(CONFIG))
2000-12-10 07:09:52 +03:00
test: debug
2001-01-17 21:43:01 +03:00
(cd test ; $(MAKE))
2000-12-10 07:09:52 +03:00
clean:
2001-01-17 21:43:01 +03:00
-(cd src/libFLAC ; $(MAKE) clean)
-(cd src/flac ; $(MAKE) clean)
-(cd src/plugin_xmms ; $(MAKE) clean)
-(cd src/test_streams ; $(MAKE) clean)
-(cd src/test_unit ; $(MAKE) clean)
-(cd test ; $(MAKE) clean)