1#  FLAC - Free Lossless Audio Codec
2#  Copyright (C) 2001,2002,2003,2004,2005,2006,2007  Josh Coalson
3#
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
11#  distributed.
12#
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
16#  distribution.
17
18.PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
19all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
20
21DEFAULT_CONFIG = release
22
23CONFIG = $(DEFAULT_CONFIG)
24
25debug   : CONFIG = debug
26valgrind: CONFIG = valgrind
27release : CONFIG = release
28
29debug   : all
30valgrind: all
31release : all
32
33example_c_decode_file:
34	(cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
35
36example_c_encode_file:
37	(cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
38
39example_cpp_decode_file:
40	(cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
41
42example_cpp_encode_file:
43	(cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
44
45clean:
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)
50