blob: 371cdae8549f827f874792a3287ee7b4f031f4ae [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# libFLAC - Free Lossless Audio Codec library
Josh Coalsona78fac62005-01-25 04:17:55 +00002# Copyright (C) 2001,2002,2003,2004,2005 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
Josh Coalsonafd81072003-01-31 23:34:56 +00004# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
Josh Coalson6b05bc52001-06-08 00:13:21 +00007#
Josh Coalsonafd81072003-01-31 23:34:56 +00008# - Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
Josh Coalson6b05bc52001-06-08 00:13:21 +000010#
Josh Coalsonafd81072003-01-31 23:34:56 +000011# - Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution.
14#
15# - Neither the name of the Xiph.org Foundation nor the names of its
16# contributors may be used to endorse or promote products derived from
17# this software without specific prior written permission.
18#
19# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
23# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Josh Coalson6b05bc52001-06-08 00:13:21 +000030
Josh Coalson9f429ba2001-01-19 22:39:39 +000031lib_LTLIBRARIES = libFLAC.la
32if DEBUG
Josh Coalson4e003c62001-10-19 18:24:33 +000033DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
Josh Coalson9f429ba2001-01-19 22:39:39 +000034endif
Josh Coalson663c5992005-01-21 01:53:02 +000035if FLaC__CPU_PPC
36# The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
37# into cpu.c with an asm().
38if FLaC__SYS_DARWIN
Josh Coalson63d489a2005-01-29 06:10:58 +000039#@@@@@@ PPC optimizations temporarily disabled
40CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
Josh Coalson663c5992005-01-21 01:53:02 +000041else
Josh Coalson63d489a2005-01-29 06:10:58 +000042#@@@@@@ PPC optimizations temporarily disabled
43CPUCFLAGS = -maltivec -mabi=altivec -force_cpusubtype_ALL -DFLAC__NO_ASM
Josh Coalson663c5992005-01-21 01:53:02 +000044endif
45endif
46CFLAGS = @CFLAGS@ $(DEBUGCFLAGS) $(CPUCFLAGS)
Josh Coalson9f429ba2001-01-19 22:39:39 +000047
Josh Coalsonc8ef8352001-05-25 00:06:33 +000048if FLaC__NO_ASM
49else
Josh Coalsoncd66fc02001-06-18 02:34:09 +000050if FLaC__CPU_IA32
Josh Coalsone02e8ba2001-05-23 20:58:14 +000051if FLaC__HAS_NASM
Josh Coalson4c8f73a2001-07-22 07:27:45 +000052ARCH_SUBDIRS = ia32
Matt Zimmerman04027ad2004-04-16 22:20:07 +000053libFLAC_la_LIBADD = ia32/libFLAC-asm.la
Josh Coalsonc8ef8352001-05-25 00:06:33 +000054endif
55endif
Josh Coalson31bdd702004-07-25 20:34:40 +000056if FLaC__CPU_PPC
57ARCH_SUBDIRS = ppc
Josh Coalsonb9900222004-12-30 01:13:03 +000058if FLaC__HAS_AS
Josh Coalson47faab82004-11-09 01:50:35 +000059libFLAC_la_LIBADD = ppc/as/libFLAC-asm.la
Josh Coalsonb9900222004-12-30 01:13:03 +000060else
61if FLaC__HAS_GAS
62libFLAC_la_LIBADD = ppc/gas/libFLAC-asm.la
63endif
64endif
Josh Coalsonc2570652004-07-29 06:43:23 +000065LOCAL_EXTRA_LDFLAGS = "-Wl,-read_only_relocs,warning"
Josh Coalson31bdd702004-07-25 20:34:40 +000066endif
Josh Coalsonc8ef8352001-05-25 00:06:33 +000067endif
68
Josh Coalson4c8f73a2001-07-22 07:27:45 +000069SUBDIRS = $(ARCH_SUBDIRS) include .
70
Josh Coalsonbfeec742002-06-28 23:45:53 +000071m4datadir = $(datadir)/aclocal
72m4data_DATA = libFLAC.m4
73
Josh Coalsoncd443f62002-07-09 06:27:07 +000074EXTRA_DIST = \
75 Makefile.lite \
Josh Coalsonbfc8e312002-11-21 09:00:25 +000076 libFLAC_dynamic.dsp \
77 libFLAC_static.dsp \
Josh Coalsoncd443f62002-07-09 06:27:07 +000078 libFLAC.m4
Josh Coalsonbfeec742002-06-28 23:45:53 +000079
Josh Coalson9b322172004-07-30 00:03:52 +000080# see 'http://www.gnu.org/software/libtool/manual.html#SEC35' for numbering convention
Josh Coalson3fbf64c2004-09-10 00:20:59 +000081libFLAC_la_LDFLAGS = -version-info 6:1:0 -lm $(LOCAL_EXTRA_LDFLAGS)
Josh Coalson9f429ba2001-01-19 22:39:39 +000082libFLAC_la_SOURCES = \
83 bitbuffer.c \
Josh Coalson673976d2001-03-30 00:45:52 +000084 bitmath.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000085 cpu.c \
Josh Coalsonc8ef8352001-05-25 00:06:33 +000086 crc.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000087 file_decoder.c \
Josh Coalsonf1eff452002-07-31 07:05:33 +000088 file_encoder.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000089 fixed.c \
Josh Coalson29a6a9d2004-11-09 01:25:44 +000090 float.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000091 format.c \
92 lpc.c \
93 md5.c \
Josh Coalsonc8ef8352001-05-25 00:06:33 +000094 memory.c \
Josh Coalson90ced912002-05-30 05:23:38 +000095 metadata_iterators.c \
96 metadata_object.c \
Josh Coalsondbd84c42001-11-08 23:59:22 +000097 seekable_stream_decoder.c \
Josh Coalsonf1eff452002-07-31 07:05:33 +000098 seekable_stream_encoder.c \
Josh Coalson0a15c142001-06-13 17:59:57 +000099 stream_decoder.c \
100 stream_encoder.c \
Josh Coalson036f9032002-05-04 17:36:13 +0000101 stream_encoder_framing.c