Chris@1: # FLAC - Free Lossless Audio Codec Chris@1: # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson Chris@1: # Chris@1: # This file is part the FLAC project. FLAC is comprised of several Chris@1: # components distributed under difference licenses. The codec libraries Chris@1: # are distributed under Xiph.Org's BSD-like license (see the file Chris@1: # COPYING.Xiph in this distribution). All other programs, libraries, and Chris@1: # plugins are distributed under the GPL (see COPYING.GPL). The documentation Chris@1: # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the Chris@1: # FLAC distribution contains at the top the terms under which it may be Chris@1: # distributed. Chris@1: # Chris@1: # Since this particular file is relevant to all components of FLAC, Chris@1: # it may be distributed under the Xiph.Org license, which is the least Chris@1: # restrictive of those mentioned above. See the file COPYING.Xiph in this Chris@1: # distribution. Chris@1: Chris@1: # Chris@1: # debug/release selection Chris@1: # Chris@1: Chris@1: DEFAULT_BUILD = release Chris@1: Chris@1: debug : BUILD = debug Chris@1: valgrind : BUILD = debug Chris@1: release : BUILD = release Chris@1: Chris@1: # override LINKAGE on OS X until we figure out how to get 'cc -static' to work Chris@1: ifeq ($(DARWIN_BUILD),yes) Chris@1: LINKAGE = Chris@1: else Chris@1: debug : LINKAGE = -static Chris@1: valgrind : LINKAGE = -dynamic Chris@1: release : LINKAGE = -static Chris@1: endif Chris@1: Chris@1: all default: $(DEFAULT_BUILD) Chris@1: Chris@1: # Chris@1: # GNU makefile fragment for emulating stuff normally done by configure Chris@1: # Chris@1: Chris@1: VERSION=\"1.2.1\" Chris@1: Chris@1: ifeq ($(DARWIN_BUILD),yes) Chris@1: 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: else Chris@1: 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: endif Chris@1: Chris@1: OGG_INCLUDE_DIR=$(HOME)/local/include Chris@1: OGG_LIB_DIR=$(HOME)/local/lib