Chris@1: # FLAC - Free Lossless Audio Codec Chris@1: # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson Chris@1: # Chris@1: # This file is part the FLAC project. FLAC is comprised of several Chris@1: # components distributed under difference licenses. The codec libraries Chris@1: # are distributed under Xiph.Org's BSD-like license (see the file Chris@1: # COPYING.Xiph in this distribution). All other programs, libraries, and Chris@1: # plugins are distributed under the GPL (see COPYING.GPL). The documentation Chris@1: # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the Chris@1: # FLAC distribution contains at the top the terms under which it may be Chris@1: # distributed. Chris@1: # Chris@1: # Since this particular file is relevant to all components of FLAC, Chris@1: # it may be distributed under the Xiph.Org license, which is the least Chris@1: # restrictive of those mentioned above. See the file COPYING.Xiph in this Chris@1: # distribution. Chris@1: Chris@1: # Chris@1: # GNU Makefile Chris@1: # Chris@1: # Useful targets Chris@1: # Chris@1: # all : build all libraries and programs in the default configuration (currently 'release') Chris@1: # debug : build all libraries and programs in debug mode Chris@1: # valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind Chris@1: # release : build all libraries and programs in release mode Chris@1: # test : run the unit and stream tests Chris@1: # clean : remove all non-distro files Chris@1: # Chris@1: Chris@1: topdir = . Chris@1: Chris@1: .PHONY: all doc src examples libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams Chris@1: all: doc src examples Chris@1: Chris@1: DEFAULT_CONFIG = release Chris@1: Chris@1: CONFIG = $(DEFAULT_CONFIG) Chris@1: Chris@1: debug : CONFIG = debug Chris@1: valgrind: CONFIG = valgrind Chris@1: release : CONFIG = release Chris@1: Chris@1: debug : all Chris@1: valgrind: all Chris@1: release : all Chris@1: Chris@1: doc: Chris@1: (cd $@ && $(MAKE) -f Makefile.lite) Chris@1: Chris@1: src: Chris@1: (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: examples: src Chris@1: (cd $@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: libFLAC: Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: libFLAC++: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: share: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: flac: libFLAC share Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: metaflac: libFLAC share Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: plugin_common: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: plugin_xmms: libFLAC plugin_common Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test_seeking: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test_streams: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test_grabbag: share Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test_libFLAC: libFLAC Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test_libFLAC++: libFLAC libFLAC++ Chris@1: (cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: test: debug Chris@1: (cd test && $(MAKE) -f Makefile.lite debug) Chris@1: Chris@1: testv: valgrind Chris@1: (cd test && $(MAKE) -f Makefile.lite valgrind) Chris@1: Chris@1: testr: release Chris@1: (cd test && $(MAKE) -f Makefile.lite release) Chris@1: Chris@1: clean: Chris@1: -(cd doc && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd src && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd examples && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd test && $(MAKE) -f Makefile.lite clean)