packging: Bump to version 1.3.0
[platform/upstream/flac.git] / Makefile.lite
index 6a91338..29b34ad 100644 (file)
@@ -1,8 +1,9 @@
 #  FLAC - Free Lossless Audio Codec
-#  Copyright (C) 2001,2002,2003  Josh Coalson
+#  Copyright (C) 2001-2009  Josh Coalson
+#  Copyright (C) 2011-2013  Xiph.Org Foundation
 #
 #  This file is part the FLAC project.  FLAC is comprised of several
-#  components distributed under difference licenses.  The codec libraries
+#  components distributed under different licenses.  The codec libraries
 #  are distributed under Xiph.Org's BSD-like license (see the file
 #  COPYING.Xiph in this distribution).  All other programs, libraries, and
 #  plugins are distributed under the GPL (see COPYING.GPL).  The documentation
@@ -30,8 +31,8 @@
 
 topdir = .
 
-.PHONY: all doc src libFLAC libFLAC++ libOggFLAC libOggFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_streams
-all: doc src
+.PHONY: all doc src examples libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams utils flacdiff flactimer
+all: doc src examples
 
 DEFAULT_CONFIG = release
 
@@ -46,66 +47,31 @@ valgrind: all
 release : all
 
 doc:
-       (cd $@ ; $(MAKE) -f Makefile.lite)
+       (cd $@ && $(MAKE) -f Makefile.lite)
 
-src:
-       (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+src examples:
+       (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
 
-libFLAC:
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+libFLAC libFLAC++ share flac metaflac plugin_common plugin_xmms test_libs_common test_seeking test_streams test_grabbag test_libFLAC test_libFLAC++:
+       (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
 
-libFLAC++: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-libOggFLAC: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-libOggFLAC++: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-share: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-flac: libFLAC libOggFLAC share
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-metaflac: libFLAC share
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-plugin_common: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-plugin_xmms: libFLAC plugin_common
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_streams: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_grabbag: share
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_libFLAC: libFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_libFLAC++: libFLAC libFLAC++
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_libOggFLAC: libFLAC libOggFLAC
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
-
-test_libOggFLAC++: libFLAC libOggFLAC libOggFLAC++
-       (cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+flacdiff flactimer:
+       (cd src/utils/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
 
 test: debug
-       (cd test ; $(MAKE) -f Makefile.lite debug)
+       (cd test && $(MAKE) -f Makefile.lite debug)
 
 testv: valgrind
-       (cd test ; $(MAKE) -f Makefile.lite valgrind)
+       (cd test && $(MAKE) -f Makefile.lite valgrind)
 
 testr: release
-       (cd test ; $(MAKE) -f Makefile.lite release)
+       (cd test && $(MAKE) -f Makefile.lite release)
 
 clean:
-       -(cd doc ; $(MAKE) -f Makefile.lite clean)
-       -(cd src ; $(MAKE) -f Makefile.lite clean)
-       -(cd test ; $(MAKE) -f Makefile.lite clean)
+       -(cd doc && $(MAKE) -f Makefile.lite clean)
+       -(cd src && $(MAKE) -f Makefile.lite clean)
+       -(cd examples && $(MAKE) -f Makefile.lite clean)
+       -(cd test && $(MAKE) -f Makefile.lite clean)
+
+examples: libFLAC libFLAC++ share
+include $(topdir)/Makefile.deps