blob: f805a3e1a22f3340f91773cc797d87888bb4def3 [file] [log] [blame]
Josh Coalson44937a72007-09-12 02:42:05 +00001# FLAC - Free Lossless Audio Codec
Erik de Castro Lopob1982fb2013-05-25 17:11:19 +10002# Copyright (C) 2001-2009 Josh Coalson
Erik de Castro Lopo6a5fe432016-12-05 06:35:39 +11003# Copyright (C) 2011-2016 Xiph.Org Foundation
Josh Coalson44937a72007-09-12 02:42:05 +00004#
5# This file is part the FLAC project. FLAC is comprised of several
Ulrich Klauercd4ddab2013-05-26 22:53:43 +02006# components distributed under different licenses. The codec libraries
Josh Coalson44937a72007-09-12 02:42:05 +00007# are distributed under Xiph.Org's BSD-like license (see the file
8# COPYING.Xiph in this distribution). All other programs, libraries, and
9# plugins are distributed under the GPL (see COPYING.GPL). The documentation
10# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
11# FLAC distribution contains at the top the terms under which it may be
12# distributed.
13#
14# Since this particular file is relevant to all components of FLAC,
15# it may be distributed under the Xiph.Org license, which is the least
16# restrictive of those mentioned above. See the file COPYING.Xiph in this
17# distribution.
18
Josh Coalson703d0d42007-09-13 00:38:08 +000019.PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
20all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
Josh Coalson44937a72007-09-12 02:42:05 +000021
22DEFAULT_CONFIG = release
23
24CONFIG = $(DEFAULT_CONFIG)
25
26debug : CONFIG = debug
27valgrind: CONFIG = valgrind
28release : CONFIG = release
29
30debug : all
31valgrind: all
32release : all
33
34example_c_decode_file:
35 (cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
36
Josh Coalson703d0d42007-09-13 00:38:08 +000037example_c_encode_file:
38 (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
39
Josh Coalson1b21c252007-09-12 05:35:12 +000040example_cpp_decode_file:
41 (cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
42
Josh Coalson703d0d42007-09-13 00:38:08 +000043example_cpp_encode_file:
44 (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
45
Josh Coalson44937a72007-09-12 02:42:05 +000046clean:
47 -(cd c/decode/file && $(MAKE) -f Makefile.lite clean)
Josh Coalson703d0d42007-09-13 00:38:08 +000048 -(cd c/encode/file && $(MAKE) -f Makefile.lite clean)
Josh Coalson1b21c252007-09-12 05:35:12 +000049 -(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean)
Josh Coalson703d0d42007-09-13 00:38:08 +000050 -(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)