blob: 0bec1a1c4c9de1456044dc577a7dc5280fda0e88 [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +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 Coalson6b05bc52001-06-08 00:13:21 +00004#
Josh Coalsone8a76012003-02-07 00:14:32 +00005# 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 Coalsone8a76012003-02-07 00:14:32 +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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000013#
Josh Coalsone8a76012003-02-07 00:14:32 +000014# 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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000018
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000019#
20# GNU makefile
21#
Josh Coalsoncd0e3222002-10-23 22:08:13 +000022
23topdir = ..
24
Josh Coalsonf3becfd2004-12-30 03:49:15 +000025DEFAULT_CONFIG = release
26
27CONFIG = $(DEFAULT_CONFIG)
28
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000029all: clean
Erik de Castro Lopoe64ac792016-12-21 16:42:15 +110030 sed 's|@top_srcdir@|$(topdir)|;s|@EXEEXT@| |' common.sh.in > common.sh
Josh Coalsonde9091e2006-05-25 02:48:22 +000031 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_libFLAC.sh $(CONFIG)
32 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_libFLAC++.sh $(CONFIG)
Josh Coalson8da98c82006-10-15 04:24:05 +000033 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_grabbag.sh $(CONFIG)
Josh Coalsonde9091e2006-05-25 02:48:22 +000034 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_flac.sh $(CONFIG)
35 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_metaflac.sh $(CONFIG)
Josh Coalsonde9091e2006-05-25 02:48:22 +000036 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_seeking.sh $(CONFIG)
37 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_streams.sh $(CONFIG)
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000038
Josh Coalsonde9091e2006-05-25 02:48:22 +000039debug : FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=2
40valgrind: FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=1
41release : FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=2
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000042
Josh Coalsonde9091e2006-05-25 02:48:22 +000043debug : FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=no
44valgrind: FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=yes
45release : FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=no
Josh Coalson34c1ea82002-12-04 04:57:33 +000046
Josh Coalsonf3becfd2004-12-30 03:49:15 +000047debug : CONFIG = debug
Josh Coalsoncc126872005-01-28 16:24:02 +000048valgrind: CONFIG = debug
Josh Coalsonf3becfd2004-12-30 03:49:15 +000049release : CONFIG = release
Josh Coalsonb43d3cb2004-11-09 01:28:05 +000050
Josh Coalson34c1ea82002-12-04 04:57:33 +000051debug : all
52valgrind: all
53release : all
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000054
55clean:
Josh Coalsond7f53442008-09-09 07:49:19 +000056 rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core flac-to-flac-metadata-test-files/out.* metaflac-test-files/out.*