2001-06-08 04:13:21 +04:00
|
|
|
# FLAC - Free Lossless Audio Codec
|
2009-01-07 10:31:28 +03:00
|
|
|
# Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson
|
2001-06-08 04:13:21 +04:00
|
|
|
#
|
2003-02-07 03:14:32 +03:00
|
|
|
# This file is part the FLAC project. FLAC is comprised of several
|
|
|
|
# components distributed under difference licenses. The codec libraries
|
|
|
|
# are distributed under Xiph.Org's BSD-like license (see the file
|
|
|
|
# COPYING.Xiph in this distribution). All other programs, libraries, and
|
|
|
|
# plugins are distributed under the GPL (see COPYING.GPL). The documentation
|
|
|
|
# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
|
|
|
|
# FLAC distribution contains at the top the terms under which it may be
|
|
|
|
# distributed.
|
2001-06-08 04:13:21 +04:00
|
|
|
#
|
2003-02-07 03:14:32 +03:00
|
|
|
# Since this particular file is relevant to all components of FLAC,
|
|
|
|
# it may be distributed under the Xiph.Org license, which is the least
|
|
|
|
# restrictive of those mentioned above. See the file COPYING.Xiph in this
|
|
|
|
# distribution.
|
2001-06-08 04:13:21 +04:00
|
|
|
|
2000-12-10 07:09:52 +03:00
|
|
|
#
|
|
|
|
# GNU Makefile
|
|
|
|
#
|
|
|
|
# Useful targets
|
|
|
|
#
|
|
|
|
# all : build all libraries and programs in the default configuration (currently 'release')
|
|
|
|
# debug : build all libraries and programs in debug mode
|
2002-12-04 07:57:33 +03:00
|
|
|
# valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
|
2000-12-10 07:09:52 +03:00
|
|
|
# release : build all libraries and programs in release mode
|
|
|
|
# test : run the unit and stream tests
|
|
|
|
# clean : remove all non-distro files
|
|
|
|
#
|
|
|
|
|
2002-10-24 02:08:13 +04:00
|
|
|
topdir = .
|
|
|
|
|
2007-09-12 06:42:05 +04:00
|
|
|
.PHONY: all doc src examples libFLAC libFLAC++ share plugin_common plugin_xmms flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams
|
|
|
|
all: doc src examples
|
2000-12-10 07:09:52 +03:00
|
|
|
|
|
|
|
DEFAULT_CONFIG = release
|
|
|
|
|
|
|
|
CONFIG = $(DEFAULT_CONFIG)
|
|
|
|
|
|
|
|
debug : CONFIG = debug
|
2002-12-04 07:57:33 +03:00
|
|
|
valgrind: CONFIG = valgrind
|
2000-12-10 07:09:52 +03:00
|
|
|
release : CONFIG = release
|
|
|
|
|
|
|
|
debug : all
|
2002-12-04 07:57:33 +03:00
|
|
|
valgrind: all
|
2000-12-10 07:09:52 +03:00
|
|
|
release : all
|
|
|
|
|
2002-07-24 10:13:41 +04:00
|
|
|
doc:
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd $@ && $(MAKE) -f Makefile.lite)
|
2002-07-24 10:13:41 +04:00
|
|
|
|
2002-12-28 10:03:01 +03:00
|
|
|
src:
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
|
|
|
|
|
|
|
examples: src
|
|
|
|
(cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-12-28 10:03:01 +03:00
|
|
|
|
2000-12-10 07:09:52 +03:00
|
|
|
libFLAC:
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 07:09:52 +03:00
|
|
|
|
2002-08-20 08:03:24 +04:00
|
|
|
libFLAC++: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-05-17 10:07:26 +04:00
|
|
|
|
2002-11-19 09:21:42 +03:00
|
|
|
share: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-05-17 10:07:26 +04:00
|
|
|
|
2006-10-15 08:24:05 +04:00
|
|
|
flac: libFLAC share
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 07:09:52 +03:00
|
|
|
|
2002-06-07 09:27:37 +04:00
|
|
|
metaflac: libFLAC share
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2001-02-24 02:15:00 +03:00
|
|
|
|
2002-08-23 10:45:23 +04:00
|
|
|
plugin_common: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-08-23 10:45:23 +04:00
|
|
|
|
|
|
|
plugin_xmms: libFLAC plugin_common
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-23 01:49:09 +03:00
|
|
|
|
2006-10-15 08:24:05 +04:00
|
|
|
test_seeking: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2004-09-21 09:41:23 +04:00
|
|
|
|
2000-12-10 07:09:52 +03:00
|
|
|
test_streams: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 07:09:52 +03:00
|
|
|
|
2002-11-27 07:45:48 +03:00
|
|
|
test_grabbag: share
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-11-22 09:25:16 +03:00
|
|
|
|
2002-06-07 09:27:37 +04:00
|
|
|
test_libFLAC: libFLAC
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-06-07 09:27:37 +04:00
|
|
|
|
|
|
|
test_libFLAC++: libFLAC libFLAC++
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 07:09:52 +03:00
|
|
|
|
|
|
|
test: debug
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite debug)
|
2002-12-04 07:57:33 +03:00
|
|
|
|
|
|
|
testv: valgrind
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite valgrind)
|
2002-12-04 07:57:33 +03:00
|
|
|
|
|
|
|
testr: release
|
2007-09-12 06:42:05 +04:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite release)
|
2000-12-10 07:09:52 +03:00
|
|
|
|
|
|
|
clean:
|
2007-09-12 06:42:05 +04:00
|
|
|
-(cd doc && $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd src && $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd examples && $(MAKE) -f Makefile.lite clean)
|
|
|
|
-(cd test && $(MAKE) -f Makefile.lite clean)
|