| cannam@86 | 1 #  FLAC - Free Lossless Audio Codec | 
| cannam@86 | 2 #  Copyright (C) 2001,2002,2003,2004,2005,2006,2007  Josh Coalson | 
| cannam@86 | 3 # | 
| cannam@86 | 4 #  This file is part the FLAC project.  FLAC is comprised of several | 
| cannam@86 | 5 #  components distributed under difference licenses.  The codec libraries | 
| cannam@86 | 6 #  are distributed under Xiph.Org's BSD-like license (see the file | 
| cannam@86 | 7 #  COPYING.Xiph in this distribution).  All other programs, libraries, and | 
| cannam@86 | 8 #  plugins are distributed under the GPL (see COPYING.GPL).  The documentation | 
| cannam@86 | 9 #  is distributed under the Gnu FDL (see COPYING.FDL).  Each file in the | 
| cannam@86 | 10 #  FLAC distribution contains at the top the terms under which it may be | 
| cannam@86 | 11 #  distributed. | 
| cannam@86 | 12 # | 
| cannam@86 | 13 #  Since this particular file is relevant to all components of FLAC, | 
| cannam@86 | 14 #  it may be distributed under the Xiph.Org license, which is the least | 
| cannam@86 | 15 #  restrictive of those mentioned above.  See the file COPYING.Xiph in this | 
| cannam@86 | 16 #  distribution. | 
| cannam@86 | 17 | 
| cannam@86 | 18 .PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file | 
| cannam@86 | 19 all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file | 
| cannam@86 | 20 | 
| cannam@86 | 21 DEFAULT_CONFIG = release | 
| cannam@86 | 22 | 
| cannam@86 | 23 CONFIG = $(DEFAULT_CONFIG) | 
| cannam@86 | 24 | 
| cannam@86 | 25 debug   : CONFIG = debug | 
| cannam@86 | 26 valgrind: CONFIG = valgrind | 
| cannam@86 | 27 release : CONFIG = release | 
| cannam@86 | 28 | 
| cannam@86 | 29 debug   : all | 
| cannam@86 | 30 valgrind: all | 
| cannam@86 | 31 release : all | 
| cannam@86 | 32 | 
| cannam@86 | 33 example_c_decode_file: | 
| cannam@86 | 34 	(cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) | 
| cannam@86 | 35 | 
| cannam@86 | 36 example_c_encode_file: | 
| cannam@86 | 37 	(cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) | 
| cannam@86 | 38 | 
| cannam@86 | 39 example_cpp_decode_file: | 
| cannam@86 | 40 	(cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG)) | 
| cannam@86 | 41 | 
| cannam@86 | 42 example_cpp_encode_file: | 
| cannam@86 | 43 	(cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG)) | 
| cannam@86 | 44 | 
| cannam@86 | 45 clean: | 
| cannam@86 | 46 	-(cd c/decode/file && $(MAKE) -f Makefile.lite clean) | 
| cannam@86 | 47 	-(cd c/encode/file && $(MAKE) -f Makefile.lite clean) | 
| cannam@86 | 48 	-(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean) | 
| cannam@86 | 49 	-(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean) |