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: .PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file Chris@1: all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file 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: example_c_decode_file: Chris@1: (cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: example_c_encode_file: Chris@1: (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: example_cpp_decode_file: Chris@1: (cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: example_cpp_encode_file: Chris@1: (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) Chris@1: Chris@1: clean: Chris@1: -(cd c/decode/file && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd c/encode/file && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean) Chris@1: -(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)