Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 1 | # FLAC - Free Lossless Audio Codec |
Erik de Castro Lopo | b1982fb | 2013-05-25 17:11:19 +1000 | [diff] [blame] | 2 | # Copyright (C) 2001-2009 Josh Coalson |
Erik de Castro Lopo | 1437391 | 2014-11-24 22:07:15 +1100 | [diff] [blame] | 3 | # Copyright (C) 2011-2014 Xiph.Org Foundation |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 4 | # |
Josh Coalson | e8a7601 | 2003-02-07 00:14:32 +0000 | [diff] [blame] | 5 | # This file is part the FLAC project. FLAC is comprised of several |
Ulrich Klauer | cd4ddab | 2013-05-26 22:53:43 +0200 | [diff] [blame] | 6 | # components distributed under different licenses. The codec libraries |
Josh Coalson | e8a7601 | 2003-02-07 00:14:32 +0000 | [diff] [blame] | 7 | # 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 Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 13 | # |
Josh Coalson | e8a7601 | 2003-02-07 00:14:32 +0000 | [diff] [blame] | 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. |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 18 | |
Josh Coalson | f3a8e5c | 2008-12-30 02:10:16 +0000 | [diff] [blame] | 19 | topdir = .. |
| 20 | |
| 21 | include $(topdir)/build/config.mk |
| 22 | |
Josh Coalson | c10f978 | 2008-09-14 19:59:52 +0000 | [diff] [blame] | 23 | ifeq ($(OS),Darwin) |
Hendricks266 | 96d081c | 2012-12-29 04:22:59 -0600 | [diff] [blame] | 24 | EXTRA_TARGETS = |
Josh Coalson | 59c9d34 | 2008-09-09 07:16:51 +0000 | [diff] [blame] | 25 | else |
Josh Coalson | f3a8e5c | 2008-12-30 02:10:16 +0000 | [diff] [blame] | 26 | ifeq ($(PROC),x86_64) |
Hendricks266 | 96d081c | 2012-12-29 04:22:59 -0600 | [diff] [blame] | 27 | EXTRA_TARGETS = |
Josh Coalson | f3a8e5c | 2008-12-30 02:10:16 +0000 | [diff] [blame] | 28 | else |
Erik de Castro Lopo | 097c0e7 | 2014-06-26 19:18:29 +1000 | [diff] [blame] | 29 | # Can add plugin_xmms here if desired. |
| 30 | EXTRA_TARGETS = |
Josh Coalson | 59c9d34 | 2008-09-09 07:16:51 +0000 | [diff] [blame] | 31 | endif |
Josh Coalson | f3a8e5c | 2008-12-30 02:10:16 +0000 | [diff] [blame] | 32 | endif |
Josh Coalson | 59c9d34 | 2008-09-09 07:16:51 +0000 | [diff] [blame] | 33 | |
Evan Ramos | f658ea5 | 2014-06-26 17:25:48 -0500 | [diff] [blame] | 34 | ifeq ($(findstring Windows,$(OS)),Windows) |
Evan Ramos | 9df6736 | 2014-06-23 16:24:49 -0500 | [diff] [blame] | 35 | EXTRA_TARGETS += share/win_utf8_io |
| 36 | endif |
| 37 | |
Erik de Castro Lopo | 097c0e7 | 2014-06-26 19:18:29 +1000 | [diff] [blame] | 38 | .PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share/win_utf8_io share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams flacdiff flactimer |
| 39 | all: flac libFLAC libFLAC++ metaflac plugin_common $(EXTRA_TARGETS) share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 40 | |
| 41 | DEFAULT_CONFIG = release |
| 42 | |
| 43 | CONFIG = $(DEFAULT_CONFIG) |
| 44 | |
| 45 | debug : CONFIG = debug |
| 46 | valgrind: CONFIG = valgrind |
| 47 | release : CONFIG = release |
| 48 | |
| 49 | debug : all |
| 50 | valgrind: all |
| 51 | release : all |
| 52 | |
Evan Ramos | f658ea5 | 2014-06-26 17:25:48 -0500 | [diff] [blame] | 53 | flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share/win_utf8_io share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams: |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 54 | (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 55 | |
Hendricks266 | 96d081c | 2012-12-29 04:22:59 -0600 | [diff] [blame] | 56 | flacdiff flactimer: |
| 57 | (cd utils/$@ ; $(MAKE) -f Makefile.lite $(CONFIG)) |
| 58 | |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 59 | clean: |
| 60 | -(cd flac ; $(MAKE) -f Makefile.lite clean) |
| 61 | -(cd libFLAC ; $(MAKE) -f Makefile.lite clean) |
| 62 | -(cd libFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 63 | -(cd metaflac ; $(MAKE) -f Makefile.lite clean) |
| 64 | -(cd plugin_common ; $(MAKE) -f Makefile.lite clean) |
| 65 | -(cd plugin_xmms ; $(MAKE) -f Makefile.lite clean) |
| 66 | -(cd share ; $(MAKE) -f Makefile.lite clean) |
| 67 | -(cd test_grabbag ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 6b21f66 | 2006-09-13 01:42:27 +0000 | [diff] [blame] | 68 | -(cd test_libs_common ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 69 | -(cd test_libFLAC ; $(MAKE) -f Makefile.lite clean) |
| 70 | -(cd test_libFLAC++ ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | 94b5499 | 2004-09-21 05:41:23 +0000 | [diff] [blame] | 71 | -(cd test_seeking ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 72 | -(cd test_streams ; $(MAKE) -f Makefile.lite clean) |
Hendricks266 | 96d081c | 2012-12-29 04:22:59 -0600 | [diff] [blame] | 73 | -(cd utils/flacdiff ; $(MAKE) -f Makefile.lite clean) |
| 74 | -(cd utils/flactimer ; $(MAKE) -f Makefile.lite clean) |
Josh Coalson | fcd85f8 | 2002-12-28 07:02:38 +0000 | [diff] [blame] | 75 | |
Hendricks266 | 96d081c | 2012-12-29 04:22:59 -0600 | [diff] [blame] | 76 | include $(topdir)/Makefile.deps |