blob: cca0ed1618d0cfbfad4f4fcdf220f16569b83dd5 [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# FLAC - Free Lossless Audio Codec
Josh Coalsone74bd952007-02-02 06:58:19 +00002# Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
Josh Coalsone8a76012003-02-07 00:14:32 +00004# 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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000012#
Josh Coalsone8a76012003-02-07 00:14:32 +000013# 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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000017
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000018#
19# GNU makefile
20#
Josh Coalsoncd0e3222002-10-23 22:08:13 +000021
22topdir = ..
23
Josh Coalsonf3becfd2004-12-30 03:49:15 +000024DEFAULT_CONFIG = release
25
26CONFIG = $(DEFAULT_CONFIG)
27
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000028all: clean
Josh Coalsonde9091e2006-05-25 02:48:22 +000029 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_libFLAC.sh $(CONFIG)
30 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_libFLAC++.sh $(CONFIG)
Josh Coalson8da98c82006-10-15 04:24:05 +000031 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_grabbag.sh $(CONFIG)
Josh Coalsonde9091e2006-05-25 02:48:22 +000032 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_flac.sh $(CONFIG)
33 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_metaflac.sh $(CONFIG)
Josh Coalsonde9091e2006-05-25 02:48:22 +000034 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_seeking.sh $(CONFIG)
35 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_streams.sh $(CONFIG)
36 $(FLAC__TEST_LEVEL) $(FLAC__TEST_WITH_VALGRIND) ./test_bins.sh $(CONFIG)
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000037
Josh Coalsonde9091e2006-05-25 02:48:22 +000038debug : FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=2
39valgrind: FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=1
40release : FLAC__TEST_LEVEL=FLAC__TEST_LEVEL=2
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000041
Josh Coalsonde9091e2006-05-25 02:48:22 +000042debug : FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=no
43valgrind: FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=yes
44release : FLAC__TEST_WITH_VALGRIND=FLAC__TEST_WITH_VALGRIND=no
Josh Coalson34c1ea82002-12-04 04:57:33 +000045
Josh Coalsonf3becfd2004-12-30 03:49:15 +000046debug : CONFIG = debug
Josh Coalsoncc126872005-01-28 16:24:02 +000047valgrind: CONFIG = debug
Josh Coalsonf3becfd2004-12-30 03:49:15 +000048release : CONFIG = release
Josh Coalsonb43d3cb2004-11-09 01:28:05 +000049
Josh Coalson34c1ea82002-12-04 04:57:33 +000050debug : all
51valgrind: all
52release : all
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000053
54clean:
Josh Coalsonbfda3782006-08-28 03:42:10 +000055 rm -f *.raw *.flac *.ogg *.cmp *.aiff *.wav *.diff *.log *.cue core flac-to-flac-metadata-test-files/out.* metaflac-test-files/out.*