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