blob: 1eb99422855f2ac6773cb6c225a362d32ad368e0 [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# libFLAC - Free Lossless Audio Codec library
Josh Coalson95643902004-01-17 04:14:43 +00002# Copyright (C) 2001,2002,2003,2004 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 Coalsonfc701472002-10-16 22:06:04 +000035CFLAGS = @CFLAGS@ $(DEBUGCFLAGS)
Josh Coalson9f429ba2001-01-19 22:39:39 +000036
Josh Coalsonc8ef8352001-05-25 00:06:33 +000037if FLaC__NO_ASM
38else
Josh Coalsoncd66fc02001-06-18 02:34:09 +000039if FLaC__CPU_IA32
Josh Coalsone02e8ba2001-05-23 20:58:14 +000040if FLaC__HAS_NASM
Josh Coalson4c8f73a2001-07-22 07:27:45 +000041ARCH_SUBDIRS = ia32
Matt Zimmerman04027ad2004-04-16 22:20:07 +000042libFLAC_la_LIBADD = ia32/libFLAC-asm.la
Josh Coalsonc8ef8352001-05-25 00:06:33 +000043endif
44endif
Josh Coalson31bdd702004-07-25 20:34:40 +000045if FLaC__CPU_PPC
46ARCH_SUBDIRS = ppc
47libFLAC_la_LIBADD = ppc/libFLAC-asm.la
48endif
Josh Coalsonc8ef8352001-05-25 00:06:33 +000049endif
50
Josh Coalson4c8f73a2001-07-22 07:27:45 +000051SUBDIRS = $(ARCH_SUBDIRS) include .
52
Josh Coalsonbfeec742002-06-28 23:45:53 +000053m4datadir = $(datadir)/aclocal
54m4data_DATA = libFLAC.m4
55
Josh Coalsoncd443f62002-07-09 06:27:07 +000056EXTRA_DIST = \
57 Makefile.lite \
Josh Coalsonbfc8e312002-11-21 09:00:25 +000058 libFLAC_dynamic.dsp \
59 libFLAC_static.dsp \
Josh Coalsoncd443f62002-07-09 06:27:07 +000060 libFLAC.m4
Josh Coalsonbfeec742002-06-28 23:45:53 +000061
Josh Coalson57ba6f42002-06-07 05:27:37 +000062# see 'http://www.gnu.org/software/libtool/manual.html#Versioning' for numbering convention
Matt Zimmerman04027ad2004-04-16 22:20:07 +000063libFLAC_la_LDFLAGS = -version-info 5:2:1 -lm
Josh Coalson9f429ba2001-01-19 22:39:39 +000064libFLAC_la_SOURCES = \
65 bitbuffer.c \
Josh Coalson673976d2001-03-30 00:45:52 +000066 bitmath.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000067 cpu.c \
Josh Coalsonc8ef8352001-05-25 00:06:33 +000068 crc.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000069 file_decoder.c \
Josh Coalsonf1eff452002-07-31 07:05:33 +000070 file_encoder.c \
Josh Coalsone02e8ba2001-05-23 20:58:14 +000071 fixed.c \
72 format.c \
73 lpc.c \
74 md5.c \
Josh Coalsonc8ef8352001-05-25 00:06:33 +000075 memory.c \
Josh Coalson90ced912002-05-30 05:23:38 +000076 metadata_iterators.c \
77 metadata_object.c \
Josh Coalsondbd84c42001-11-08 23:59:22 +000078 seekable_stream_decoder.c \
Josh Coalsonf1eff452002-07-31 07:05:33 +000079 seekable_stream_encoder.c \
Josh Coalson0a15c142001-06-13 17:59:57 +000080 stream_decoder.c \
81 stream_encoder.c \
Josh Coalson036f9032002-05-04 17:36:13 +000082 stream_encoder_framing.c