2001-06-08 00:13:21 +00:00
|
|
|
# libFLAC - Free Lossless Audio Codec library
|
2009-01-07 07:31:28 +00:00
|
|
|
# Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson
|
2001-06-08 00:13:21 +00:00
|
|
|
#
|
2003-01-31 23:34:56 +00:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
|
# are met:
|
2001-06-08 00:13:21 +00:00
|
|
|
#
|
2003-01-31 23:34:56 +00:00
|
|
|
# - Redistributions of source code must retain the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
2001-06-08 00:13:21 +00:00
|
|
|
#
|
2003-01-31 23:34:56 +00:00
|
|
|
# - Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
|
#
|
|
|
|
|
# - Neither the name of the Xiph.org Foundation nor the names of its
|
|
|
|
|
# contributors may be used to endorse or promote products derived from
|
|
|
|
|
# this software without specific prior written permission.
|
|
|
|
|
#
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
|
|
|
|
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
|
|
|
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
|
|
|
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
|
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2001-06-08 00:13:21 +00:00
|
|
|
|
2001-01-19 22:39:39 +00:00
|
|
|
lib_LTLIBRARIES = libFLAC.la
|
|
|
|
|
if DEBUG
|
2001-10-19 18:24:33 +00:00
|
|
|
DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
|
2001-01-19 22:39:39 +00:00
|
|
|
endif
|
2005-01-21 01:53:02 +00:00
|
|
|
if FLaC__CPU_PPC
|
|
|
|
|
# The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
|
|
|
|
|
# into cpu.c with an asm().
|
|
|
|
|
if FLaC__SYS_DARWIN
|
2006-10-10 00:35:35 +00:00
|
|
|
#@@@ PPC optimizations temporarily disabled
|
2005-01-29 06:10:58 +00:00
|
|
|
CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
|
2005-01-21 01:53:02 +00:00
|
|
|
else
|
2005-01-31 04:35:26 +00:00
|
|
|
# Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
|
2012-02-13 19:46:32 +11:00
|
|
|
CPUCFLAGS =
|
|
|
|
|
if FLaC__CPU_PPC_SPE
|
|
|
|
|
else
|
|
|
|
|
CPUCFLAGS += -maltivec -mabi=altivec
|
|
|
|
|
endif
|
2006-10-10 00:35:35 +00:00
|
|
|
#@@@ PPC optimizations temporarily disabled
|
2012-02-13 19:46:32 +11:00
|
|
|
CPUCFLAGS += -DFLAC__NO_ASM
|
2005-01-21 01:53:02 +00:00
|
|
|
endif
|
|
|
|
|
endif
|
2005-01-30 18:44:46 +00:00
|
|
|
|
2006-12-14 07:23:48 +00:00
|
|
|
AM_CFLAGS = $(DEBUGCFLAGS) $(CPUCFLAGS) @OGG_CFLAGS@
|
2001-01-19 22:39:39 +00:00
|
|
|
|
2001-05-25 00:06:33 +00:00
|
|
|
if FLaC__NO_ASM
|
|
|
|
|
else
|
2001-06-18 02:34:09 +00:00
|
|
|
if FLaC__CPU_IA32
|
2001-05-23 20:58:14 +00:00
|
|
|
if FLaC__HAS_NASM
|
2001-07-22 07:27:45 +00:00
|
|
|
ARCH_SUBDIRS = ia32
|
2006-12-14 07:23:48 +00:00
|
|
|
LOCAL_EXTRA_LIBADD = ia32/libFLAC-asm.la
|
2001-05-23 20:58:14 +00:00
|
|
|
endif
|
2001-05-25 00:06:33 +00:00
|
|
|
endif
|
2004-07-25 20:34:40 +00:00
|
|
|
if FLaC__CPU_PPC
|
|
|
|
|
ARCH_SUBDIRS = ppc
|
2005-02-03 04:29:52 +00:00
|
|
|
if FLaC__HAS_AS__TEMPORARILY_DISABLED
|
2012-02-13 19:46:32 +11:00
|
|
|
if FLaC__CPU_PPC_SPE
|
|
|
|
|
else
|
2006-12-14 07:23:48 +00:00
|
|
|
LOCAL_EXTRA_LIBADD = ppc/as/libFLAC-asm.la
|
2005-03-02 05:21:06 +00:00
|
|
|
LOCAL_EXTRA_LDFLAGS = "-Wl,-read_only_relocs,warning"
|
2004-12-30 01:13:03 +00:00
|
|
|
else
|
2005-02-03 04:29:52 +00:00
|
|
|
if FLaC__HAS_GAS__TEMPORARILY_DISABLED
|
2006-12-14 07:23:48 +00:00
|
|
|
LOCAL_EXTRA_LIBADD = ppc/gas/libFLAC-asm.la
|
2005-03-02 05:21:06 +00:00
|
|
|
LOCAL_EXTRA_LDFLAGS = ""
|
2004-12-30 01:13:03 +00:00
|
|
|
endif
|
|
|
|
|
endif
|
2004-07-25 20:34:40 +00:00
|
|
|
endif
|
2001-05-25 00:06:33 +00:00
|
|
|
endif
|
2012-02-13 19:46:32 +11:00
|
|
|
endif
|
2001-05-25 00:06:33 +00:00
|
|
|
|
2012-02-05 16:25:22 +11:00
|
|
|
libFLAC_la_LIBADD = $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@
|
2006-12-14 07:23:48 +00:00
|
|
|
|
2001-07-22 07:27:45 +00:00
|
|
|
SUBDIRS = $(ARCH_SUBDIRS) include .
|
|
|
|
|
|
2002-06-28 23:45:53 +00:00
|
|
|
m4datadir = $(datadir)/aclocal
|
|
|
|
|
m4data_DATA = libFLAC.m4
|
|
|
|
|
|
2007-02-07 01:24:15 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
pkgconfig_DATA = flac.pc
|
|
|
|
|
|
2002-07-09 06:27:07 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
|
Makefile.lite \
|
2007-02-07 01:24:15 +00:00
|
|
|
flac.pc.in \
|
2002-11-21 09:00:25 +00:00
|
|
|
libFLAC_dynamic.dsp \
|
2007-07-11 04:13:09 +00:00
|
|
|
libFLAC_dynamic.vcproj \
|
2002-11-21 09:00:25 +00:00
|
|
|
libFLAC_static.dsp \
|
2007-07-11 04:13:09 +00:00
|
|
|
libFLAC_static.vcproj \
|
2002-07-09 06:27:07 +00:00
|
|
|
libFLAC.m4
|
2002-06-28 23:45:53 +00:00
|
|
|
|
2006-10-15 04:24:05 +00:00
|
|
|
if FLaC__HAS_OGG
|
|
|
|
|
extra_ogg_sources = \
|
|
|
|
|
ogg_decoder_aspect.c \
|
|
|
|
|
ogg_encoder_aspect.c \
|
|
|
|
|
ogg_helper.c \
|
|
|
|
|
ogg_mapping.c
|
|
|
|
|
endif
|
2006-09-26 01:01:38 +00:00
|
|
|
# see 'http://www.gnu.org/software/libtool/manual.html#Libtool-versioning' for numbering convention
|
2009-01-03 01:59:10 +00:00
|
|
|
libFLAC_la_LDFLAGS = -version-info 10:0:2 -lm $(LOCAL_EXTRA_LDFLAGS) @LT_NO_UNDEFINED@
|
2001-01-19 22:39:39 +00:00
|
|
|
libFLAC_la_SOURCES = \
|
2001-03-30 00:45:52 +00:00
|
|
|
bitmath.c \
|
2007-01-28 17:40:26 +00:00
|
|
|
bitreader.c \
|
|
|
|
|
bitwriter.c \
|
2001-05-23 20:58:14 +00:00
|
|
|
cpu.c \
|
2001-05-25 00:06:33 +00:00
|
|
|
crc.c \
|
2001-01-19 22:39:39 +00:00
|
|
|
fixed.c \
|
2004-11-09 01:25:44 +00:00
|
|
|
float.c \
|
2001-01-19 22:39:39 +00:00
|
|
|
format.c \
|
|
|
|
|
lpc.c \
|
|
|
|
|
md5.c \
|
2001-05-25 00:06:33 +00:00
|
|
|
memory.c \
|
2002-05-30 05:23:38 +00:00
|
|
|
metadata_iterators.c \
|
|
|
|
|
metadata_object.c \
|
2001-06-13 17:59:57 +00:00
|
|
|
stream_decoder.c \
|
|
|
|
|
stream_encoder.c \
|
2006-05-18 07:36:34 +00:00
|
|
|
stream_encoder_framing.c \
|
2006-10-15 04:24:05 +00:00
|
|
|
window.c \
|
|
|
|
|
$(extra_ogg_sources)
|