annotate src/flac-1.2.1/build/config.mk @ 7:cd13f7cd9bc3

Add portaudio
author Chris Cannam
date Wed, 20 Mar 2013 15:18:57 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 # FLAC - Free Lossless Audio Codec
Chris@1 2 # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Chris@1 3 #
Chris@1 4 # This file is part the FLAC project. FLAC is comprised of several
Chris@1 5 # components distributed under difference licenses. The codec libraries
Chris@1 6 # are distributed under Xiph.Org's BSD-like license (see the file
Chris@1 7 # COPYING.Xiph in this distribution). All other programs, libraries, and
Chris@1 8 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
Chris@1 9 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
Chris@1 10 # FLAC distribution contains at the top the terms under which it may be
Chris@1 11 # distributed.
Chris@1 12 #
Chris@1 13 # Since this particular file is relevant to all components of FLAC,
Chris@1 14 # it may be distributed under the Xiph.Org license, which is the least
Chris@1 15 # restrictive of those mentioned above. See the file COPYING.Xiph in this
Chris@1 16 # distribution.
Chris@1 17
Chris@1 18 #
Chris@1 19 # debug/release selection
Chris@1 20 #
Chris@1 21
Chris@1 22 DEFAULT_BUILD = release
Chris@1 23
Chris@1 24 debug : BUILD = debug
Chris@1 25 valgrind : BUILD = debug
Chris@1 26 release : BUILD = release
Chris@1 27
Chris@1 28 # override LINKAGE on OS X until we figure out how to get 'cc -static' to work
Chris@1 29 ifeq ($(DARWIN_BUILD),yes)
Chris@1 30 LINKAGE =
Chris@1 31 else
Chris@1 32 debug : LINKAGE = -static
Chris@1 33 valgrind : LINKAGE = -dynamic
Chris@1 34 release : LINKAGE = -static
Chris@1 35 endif
Chris@1 36
Chris@1 37 all default: $(DEFAULT_BUILD)
Chris@1 38
Chris@1 39 #
Chris@1 40 # GNU makefile fragment for emulating stuff normally done by configure
Chris@1 41 #
Chris@1 42
Chris@1 43 VERSION=\"1.2.1\"
Chris@1 44
Chris@1 45 ifeq ($(DARWIN_BUILD),yes)
Chris@1 46 CONFIG_CFLAGS=-DHAVE_INTTYPES_H -DHAVE_ICONV -DHAVE_LANGINFO_CODESET -DFLAC__HAS_OGG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFLAC__SYS_DARWIN -DWORDS_BIGENDIAN
Chris@1 47 else
Chris@1 48 CONFIG_CFLAGS=-DHAVE_INTTYPES_H -DHAVE_ICONV -DHAVE_LANGINFO_CODESET -DHAVE_SOCKLEN_T -DFLAC__HAS_OGG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Chris@1 49 endif
Chris@1 50
Chris@1 51 OGG_INCLUDE_DIR=$(HOME)/local/include
Chris@1 52 OGG_LIB_DIR=$(HOME)/local/lib