cannam@86: # FLAC - Free Lossless Audio Codec cannam@86: # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson cannam@86: # cannam@86: # This file is part the FLAC project. FLAC is comprised of several cannam@86: # components distributed under difference licenses. The codec libraries cannam@86: # are distributed under Xiph.Org's BSD-like license (see the file cannam@86: # COPYING.Xiph in this distribution). All other programs, libraries, and cannam@86: # plugins are distributed under the GPL (see COPYING.GPL). The documentation cannam@86: # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the cannam@86: # FLAC distribution contains at the top the terms under which it may be cannam@86: # distributed. cannam@86: # cannam@86: # Since this particular file is relevant to all components of FLAC, cannam@86: # it may be distributed under the Xiph.Org license, which is the least cannam@86: # restrictive of those mentioned above. See the file COPYING.Xiph in this cannam@86: # distribution. cannam@86: cannam@86: .PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file cannam@86: all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file cannam@86: cannam@86: DEFAULT_CONFIG = release cannam@86: cannam@86: CONFIG = $(DEFAULT_CONFIG) cannam@86: cannam@86: debug : CONFIG = debug cannam@86: valgrind: CONFIG = valgrind cannam@86: release : CONFIG = release cannam@86: cannam@86: debug : all cannam@86: valgrind: all cannam@86: release : all cannam@86: cannam@86: example_c_decode_file: cannam@86: (cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) cannam@86: cannam@86: example_c_encode_file: cannam@86: (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) cannam@86: cannam@86: example_cpp_decode_file: cannam@86: (cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) cannam@86: cannam@86: example_cpp_encode_file: cannam@86: (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) cannam@86: cannam@86: clean: cannam@86: -(cd c/decode/file && $(MAKE) -f Makefile.lite clean) cannam@86: -(cd c/encode/file && $(MAKE) -f Makefile.lite clean) cannam@86: -(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean) cannam@86: -(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)