Fix compiler warnings related to win utf8 stuff.
[platform/upstream/flac.git] / Makefile.lite
index 2245bed..23743f6 100644 (file)
@@ -1,5 +1,5 @@
 #  FLAC - Free Lossless Audio Codec
-#  Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson
+#  Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009  Josh Coalson
 #
 #  This file is part the FLAC project.  FLAC is comprised of several
 #  components distributed under difference licenses.  The codec libraries
@@ -30,8 +30,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_seeking 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,69 +46,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_seeking: libFLAC libOggFLAC
-       (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