|
Packit |
8f7830 |
# libFLAC - Free Lossless Audio Codec library
|
|
Packit |
8f7830 |
# Copyright (C) 2001-2009 Josh Coalson
|
|
Packit |
8f7830 |
# Copyright (C) 2011-2016 Xiph.Org Foundation
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# Redistribution and use in source and binary forms, with or without
|
|
Packit |
8f7830 |
# modification, are permitted provided that the following conditions
|
|
Packit |
8f7830 |
# are met:
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# - Redistributions of source code must retain the above copyright
|
|
Packit |
8f7830 |
# notice, this list of conditions and the following disclaimer.
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# - Redistributions in binary form must reproduce the above copyright
|
|
Packit |
8f7830 |
# notice, this list of conditions and the following disclaimer in the
|
|
Packit |
8f7830 |
# documentation and/or other materials provided with the distribution.
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# - Neither the name of the Xiph.org Foundation nor the names of its
|
|
Packit |
8f7830 |
# contributors may be used to endorse or promote products derived from
|
|
Packit |
8f7830 |
# this software without specific prior written permission.
|
|
Packit |
8f7830 |
#
|
|
Packit |
8f7830 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
Packit |
8f7830 |
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
Packit |
8f7830 |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
Packit |
8f7830 |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
|
|
Packit |
8f7830 |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
Packit |
8f7830 |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
Packit |
8f7830 |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
Packit |
8f7830 |
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
Packit |
8f7830 |
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
Packit |
8f7830 |
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
Packit |
8f7830 |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include
|
|
Packit |
8f7830 |
lib_LTLIBRARIES = libFLAC.la
|
|
Packit |
8f7830 |
noinst_LTLIBRARIES = libFLAC-static.la
|
|
Packit |
8f7830 |
if DEBUG
|
|
Packit |
8f7830 |
DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
# FIXME: The following logic should be part of configure, not of Makefile.am
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
if FLaC__CPU_PPC
|
|
Packit |
8f7830 |
if FLaC__SYS_DARWIN
|
|
Packit |
8f7830 |
CPUCFLAGS = -faltivec
|
|
Packit |
8f7830 |
else
|
|
Packit |
8f7830 |
CPUCFLAGS =
|
|
Packit |
8f7830 |
if FLaC__USE_ALTIVEC
|
|
Packit |
8f7830 |
CPUCFLAGS += -maltivec -mabi=altivec
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
AM_CFLAGS = $(DEBUGCFLAGS) $(CPUCFLAGS) @OGG_CFLAGS@
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
if FLaC__NO_ASM
|
|
Packit |
8f7830 |
else
|
|
Packit |
8f7830 |
if FLaC__CPU_IA32
|
|
Packit |
8f7830 |
if FLaC__HAS_NASM
|
|
Packit |
8f7830 |
ARCH_SUBDIRS = ia32
|
|
Packit |
8f7830 |
LOCAL_EXTRA_LIBADD = ia32/libFLAC-asm.la
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
libFLAC_la_LIBADD = $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@ -lm
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
SUBDIRS = $(ARCH_SUBDIRS) include .
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
m4datadir = $(datadir)/aclocal
|
|
Packit |
8f7830 |
m4data_DATA = libFLAC.m4
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
pkgconfigdir = $(libdir)/pkgconfig
|
|
Packit |
8f7830 |
pkgconfig_DATA = flac.pc
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
EXTRA_DIST = \
|
|
Packit |
8f7830 |
Makefile.lite \
|
|
Packit |
8f7830 |
flac.pc.in \
|
|
Packit |
8f7830 |
libFLAC_dynamic.vcproj \
|
|
Packit |
8f7830 |
libFLAC_dynamic.vcxproj \
|
|
Packit |
8f7830 |
libFLAC_dynamic.vcxproj.filters \
|
|
Packit |
8f7830 |
libFLAC_static.vcproj \
|
|
Packit |
8f7830 |
libFLAC_static.vcxproj \
|
|
Packit |
8f7830 |
libFLAC_static.vcxproj.filters \
|
|
Packit |
8f7830 |
libFLAC.m4 \
|
|
Packit |
8f7830 |
windows_unicode_filenames.c
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
if OS_IS_WINDOWS
|
|
Packit |
8f7830 |
windows_unicode_compat = windows_unicode_filenames.c
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
if FLaC__HAS_OGG
|
|
Packit |
8f7830 |
extra_ogg_sources = \
|
|
Packit |
8f7830 |
ogg_decoder_aspect.c \
|
|
Packit |
8f7830 |
ogg_encoder_aspect.c \
|
|
Packit |
8f7830 |
ogg_helper.c \
|
|
Packit |
8f7830 |
ogg_mapping.c
|
|
Packit |
8f7830 |
endif
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
# see 'http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning' for numbering convention
|
|
Packit |
8f7830 |
libFLAC_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 11:0:3 $(LOCAL_EXTRA_LDFLAGS)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
libFLAC_sources = \
|
|
Packit |
8f7830 |
bitmath.c \
|
|
Packit |
8f7830 |
bitreader.c \
|
|
Packit |
8f7830 |
bitwriter.c \
|
|
Packit |
8f7830 |
cpu.c \
|
|
Packit |
8f7830 |
crc.c \
|
|
Packit |
8f7830 |
fixed.c \
|
|
Packit |
8f7830 |
fixed_intrin_sse2.c \
|
|
Packit |
8f7830 |
fixed_intrin_ssse3.c \
|
|
Packit |
8f7830 |
float.c \
|
|
Packit |
8f7830 |
format.c \
|
|
Packit |
8f7830 |
lpc.c \
|
|
Packit |
8f7830 |
lpc_intrin_sse.c \
|
|
Packit |
8f7830 |
lpc_intrin_sse2.c \
|
|
Packit |
8f7830 |
lpc_intrin_sse41.c \
|
|
Packit |
8f7830 |
lpc_intrin_avx2.c \
|
|
Packit |
8f7830 |
md5.c \
|
|
Packit |
8f7830 |
memory.c \
|
|
Packit |
8f7830 |
metadata_iterators.c \
|
|
Packit |
8f7830 |
metadata_object.c \
|
|
Packit |
8f7830 |
stream_decoder.c \
|
|
Packit |
8f7830 |
stream_encoder.c \
|
|
Packit |
8f7830 |
stream_encoder_intrin_sse2.c \
|
|
Packit |
8f7830 |
stream_encoder_intrin_ssse3.c \
|
|
Packit |
8f7830 |
stream_encoder_intrin_avx2.c \
|
|
Packit |
8f7830 |
stream_encoder_framing.c \
|
|
Packit |
8f7830 |
window.c \
|
|
Packit |
8f7830 |
$(windows_unicode_compat) \
|
|
Packit |
8f7830 |
$(extra_ogg_sources)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
libFLAC_la_SOURCES = $(libFLAC_sources)
|
|
Packit |
8f7830 |
|
|
Packit |
8f7830 |
# needed for test_libFLAC
|
|
Packit |
8f7830 |
libFLAC_static_la_LIBADD = $(LOCAL_EXTRA_LIBADD)
|
|
Packit |
8f7830 |
libFLAC_static_la_SOURCES = $(libFLAC_sources)
|