changelog.html : Updates.
[platform/upstream/flac.git] / src / 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 topdir = ..
19
20 include $(topdir)/build/config.mk
21
22 ifeq ($(OS),Darwin)
23     EXTRA_TARGETS =
24 else
25 ifeq ($(PROC),x86_64)
26     EXTRA_TARGETS =
27 else
28     EXTRA_TARGETS = plugin_xmms
29 endif
30 endif
31
32 .PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils flacdiff flactimer
33 all: flac libFLAC libFLAC++ metaflac plugin_common $(EXTRA_TARGETS) share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils
34
35 DEFAULT_CONFIG = release
36
37 CONFIG = $(DEFAULT_CONFIG)
38
39 debug   : CONFIG = debug
40 valgrind: CONFIG = valgrind
41 release : CONFIG = release
42
43 debug   : all
44 valgrind: all
45 release : all
46
47 all: flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils
48
49 flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams:
50         (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
51
52 flacdiff flactimer:
53         (cd utils/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
54
55 clean:
56         -(cd flac ; $(MAKE) -f Makefile.lite clean)
57         -(cd libFLAC ; $(MAKE) -f Makefile.lite clean)
58         -(cd libFLAC++ ; $(MAKE) -f Makefile.lite clean)
59         -(cd metaflac ; $(MAKE) -f Makefile.lite clean)
60         -(cd plugin_common ; $(MAKE) -f Makefile.lite clean)
61         -(cd plugin_xmms ; $(MAKE) -f Makefile.lite clean)
62         -(cd share ; $(MAKE) -f Makefile.lite clean)
63         -(cd test_grabbag ; $(MAKE) -f Makefile.lite clean)
64         -(cd test_libs_common ; $(MAKE) -f Makefile.lite clean)
65         -(cd test_libFLAC ; $(MAKE) -f Makefile.lite clean)
66         -(cd test_libFLAC++ ; $(MAKE) -f Makefile.lite clean)
67         -(cd test_seeking ; $(MAKE) -f Makefile.lite clean)
68         -(cd test_streams ; $(MAKE) -f Makefile.lite clean)
69         -(cd utils/flacdiff ; $(MAKE) -f Makefile.lite clean)
70         -(cd utils/flactimer ; $(MAKE) -f Makefile.lite clean)
71
72 include $(topdir)/Makefile.deps