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 getopt grabbag replaygain_analysis replaygain_synthesis utf8
19all: getopt grabbag replaygain_analysis replaygain_synthesis utf8
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
33getopt:
34	(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
35
36grabbag:
37	(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
38
39replaygain_analysis:
40	(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
41
42replaygain_synthesis:
43	(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
44
45utf8:
46	(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
47
48clean:
49	-(cd getopt ; $(MAKE) -f Makefile.lite clean)
50	-(cd grabbag ; $(MAKE) -f Makefile.lite clean)
51	-(cd replaygain_analysis ; $(MAKE) -f Makefile.lite clean)
52	-(cd replaygain_synthesis ; $(MAKE) -f Makefile.lite clean)
53	-(cd utf8 ; $(MAKE) -f Makefile.lite clean)
54