2001-06-08 00:13:21 +00:00
|
|
|
# FLAC - Free Lossless Audio Codec
|
2013-05-25 07:11:19 +00:00
|
|
|
# Copyright (C) 2001-2009 Josh Coalson
|
2016-12-04 19:35:39 +00:00
|
|
|
# Copyright (C) 2011-2016 Xiph.Org Foundation
|
2001-06-08 00:13:21 +00:00
|
|
|
#
|
2003-02-07 00:14:32 +00:00
|
|
|
# This file is part the FLAC project. FLAC is comprised of several
|
2013-05-26 20:53:43 +00:00
|
|
|
# components distributed under different licenses. The codec libraries
|
2003-02-07 00:14:32 +00:00
|
|
|
# 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 00:13:21 +00:00
|
|
|
#
|
2003-02-07 00:14:32 +00: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 00:13:21 +00:00
|
|
|
|
2000-12-10 04:09:52 +00: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 04:57:33 +00:00
|
|
|
# valgrind: build all libraries and programs in debug mode, dynamically linked and ready for valgrind
|
2000-12-10 04:09:52 +00: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-23 22:08:13 +00:00
|
|
|
topdir = .
|
|
|
|
|
2016-02-05 00:02:44 +00:00
|
|
|
.PHONY: all doc src examples libFLAC libFLAC++ share plugin_common flac metaflac test_grabbag test_libFLAC test_libFLAC++ test_seeking test_streams flacdiff flactimer
|
2014-06-26 22:25:48 +00:00
|
|
|
all: src examples
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
DEFAULT_CONFIG = release
|
|
|
|
|
|
|
|
CONFIG = $(DEFAULT_CONFIG)
|
|
|
|
|
|
|
|
debug : CONFIG = debug
|
2002-12-04 04:57:33 +00:00
|
|
|
valgrind: CONFIG = valgrind
|
2000-12-10 04:09:52 +00:00
|
|
|
release : CONFIG = release
|
|
|
|
|
|
|
|
debug : all
|
2002-12-04 04:57:33 +00:00
|
|
|
valgrind: all
|
2000-12-10 04:09:52 +00:00
|
|
|
release : all
|
|
|
|
|
2002-07-24 06:13:41 +00:00
|
|
|
doc:
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd $@ && $(MAKE) -f Makefile.lite)
|
2002-07-24 06:13:41 +00:00
|
|
|
|
Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:
make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples
This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0
These improvements make use of some use-time Makefile variable expansion.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2012-12-29 10:22:59 +00:00
|
|
|
src examples:
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd $@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
|
|
|
|
2016-02-05 00:02:44 +00:00
|
|
|
libFLAC libFLAC++ share flac metaflac plugin_common plugin_xmms test_libs_common test_seeking test_streams test_grabbag test_libFLAC test_libFLAC++:
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd src/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2002-08-23 06:45:23 +00:00
|
|
|
|
Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:
make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples
This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0
These improvements make use of some use-time Makefile variable expansion.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2012-12-29 10:22:59 +00:00
|
|
|
flacdiff flactimer:
|
|
|
|
(cd src/utils/$@ && $(MAKE) -f Makefile.lite $(CONFIG))
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
test: debug
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite debug)
|
2002-12-04 04:57:33 +00:00
|
|
|
|
|
|
|
testv: valgrind
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite valgrind)
|
2002-12-04 04:57:33 +00:00
|
|
|
|
|
|
|
testr: release
|
2007-09-12 02:42:05 +00:00
|
|
|
(cd test && $(MAKE) -f Makefile.lite release)
|
2000-12-10 04:09:52 +00:00
|
|
|
|
|
|
|
clean:
|
2007-09-12 02:42:05 +00: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)
|
Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:
make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples
This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0
These improvements make use of some use-time Makefile variable expansion.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2012-12-29 10:22:59 +00:00
|
|
|
|
|
|
|
examples: libFLAC libFLAC++ share
|
|
|
|
include $(topdir)/Makefile.deps
|