summaryrefslogtreecommitdiff
path: root/Makefile.lite
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2001-01-19 22:30:43 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2001-01-19 22:30:43 +0000
commite60acb9fa001f1211fca9d5957a0536d6cf88868 (patch)
tree0c7b229cfacf3d445296990422f75b97d7b474d3 /Makefile.lite
parent2a52e57fdcc1cd08b957b10e3902e8508082ba4b (diff)
downloadflac-e60acb9fa001f1211fca9d5957a0536d6cf88868.tar.gz
renamed Makefile to Makefile.lite
Diffstat (limited to 'Makefile.lite')
-rw-r--r--Makefile.lite49
1 files changed, 49 insertions, 0 deletions
diff --git a/Makefile.lite b/Makefile.lite
new file mode 100644
index 00000000..8d255ca6
--- /dev/null
+++ b/Makefile.lite
@@ -0,0 +1,49 @@
+#
+# 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:
+ (cd src/$@ ; $(MAKE) $(CONFIG))
+
+flac: libFLAC
+ (cd src/$@ ; $(MAKE) $(CONFIG))
+
+plugin_xmms: libFLAC
+ (cd src/$@ ; $(MAKE) $(CONFIG))
+
+test_streams: libFLAC
+ (cd src/$@ ; $(MAKE) $(CONFIG))
+
+test_unit: libFLAC
+ (cd src/$@ ; $(MAKE) $(CONFIG))
+
+test: debug
+ (cd test ; $(MAKE))
+
+clean:
+ -(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)