X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FMakefile.lite;h=3027e6f95676c618f2eafd46cba46353c7aee9c5;hb=c7957b2b54350b60fdeb6c5201bf45e42655cf4b;hp=f2c2bd276e92aa8cd34218aa88b31a851446a09d;hpb=6b21f66784e1bcbe075b405668712e85eac39414;p=platform%2Fupstream%2Fflac.git diff --git a/src/Makefile.lite b/src/Makefile.lite index f2c2bd2..3027e6f 100644 --- a/src/Makefile.lite +++ b/src/Makefile.lite @@ -1,8 +1,9 @@ # FLAC - Free Lossless Audio Codec -# Copyright (C) 2001,2002,2003,2004,2005,2006 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 @@ -15,8 +16,22 @@ # restrictive of those mentioned above. See the file COPYING.Xiph in this # distribution. -.PHONY: all flac libFLAC libFLAC++ libOggFLAC libOggFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_seeking test_streams -all: flac libFLAC libFLAC++ libOggFLAC libOggFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_seeking test_streams +topdir = .. + +include $(topdir)/build/config.mk + +ifeq ($(OS),Darwin) + EXTRA_TARGETS = +else +ifeq ($(PROC),x86_64) + EXTRA_TARGETS = +else + EXTRA_TARGETS = plugin_xmms +endif +endif + +.PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils flacdiff flactimer +all: flac libFLAC libFLAC++ metaflac plugin_common $(EXTRA_TARGETS) share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils DEFAULT_CONFIG = release @@ -30,15 +45,18 @@ debug : all valgrind: all release : all -flac libFLAC libFLAC++ libOggFLAC libOggFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_libOggFLAC test_libOggFLAC++ test_seeking test_streams: +all: flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils + +flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams: (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG)) +flacdiff flactimer: + (cd utils/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) + clean: -(cd flac ; $(MAKE) -f Makefile.lite clean) -(cd libFLAC ; $(MAKE) -f Makefile.lite clean) -(cd libFLAC++ ; $(MAKE) -f Makefile.lite clean) - -(cd libOggFLAC ; $(MAKE) -f Makefile.lite clean) - -(cd libOggFLAC++ ; $(MAKE) -f Makefile.lite clean) -(cd metaflac ; $(MAKE) -f Makefile.lite clean) -(cd plugin_common ; $(MAKE) -f Makefile.lite clean) -(cd plugin_xmms ; $(MAKE) -f Makefile.lite clean) @@ -47,23 +65,9 @@ clean: -(cd test_libs_common ; $(MAKE) -f Makefile.lite clean) -(cd test_libFLAC ; $(MAKE) -f Makefile.lite clean) -(cd test_libFLAC++ ; $(MAKE) -f Makefile.lite clean) - -(cd test_libOggFLAC ; $(MAKE) -f Makefile.lite clean) - -(cd test_libOggFLAC++ ; $(MAKE) -f Makefile.lite clean) -(cd test_seeking ; $(MAKE) -f Makefile.lite clean) -(cd test_streams ; $(MAKE) -f Makefile.lite clean) + -(cd utils/flacdiff ; $(MAKE) -f Makefile.lite clean) + -(cd utils/flactimer ; $(MAKE) -f Makefile.lite clean) -flac: libFLAC libOggFLAC share -libFLAC++: libFLAC -libOggFLAC++: libFLAC -libOggFLAC: libFLAC -metaflac: libFLAC share -plugin_common: libFLAC -plugin_xmms: libFLAC plugin_common -share: libFLAC -test_grabbag: share -test_libFLAC++: libFLAC libFLAC++ test_libs_common -test_libFLAC: libFLAC test_libs_common -test_libOggFLAC++: libFLAC libOggFLAC libOggFLAC++ test_libs_common -test_libOggFLAC: libFLAC libOggFLAC test_libs_common -test_seeking: libFLAC libOggFLAC -test_streams: libFLAC +include $(topdir)/Makefile.deps