flac*.pc : Add -logg if configured with Ogg support.
[platform/upstream/flac.git] / examples / Makefile.lite
1 #  FLAC - Free Lossless Audio Codec
2 #  Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009  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
19 all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
20
21 DEFAULT_CONFIG = release
22
23 CONFIG = $(DEFAULT_CONFIG)
24
25 debug   : CONFIG = debug
26 valgrind: CONFIG = valgrind
27 release : CONFIG = release
28
29 debug   : all
30 valgrind: all
31 release : all
32
33 example_c_decode_file:
34         (cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
35
36 example_c_encode_file:
37         (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
38
39 example_cpp_decode_file:
40         (cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
41
42 example_cpp_encode_file:
43         (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
44
45 clean:
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)