add autoconf m4 files
[platform/upstream/flac.git] / src / libFLAC / Makefile.am
1 #  libFLAC - Free Lossless Audio Codec library
2 #  Copyright (C) 2001,2002  Josh Coalson
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Library General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2 of the License, or (at your option) any later version.
8 #
9 #  This library is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 #  Library General Public License for more details.
13 #
14 #  You should have received a copy of the GNU Library General Public
15 #  License along with this library; if not, write to the
16 #  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 #  Boston, MA  02111-1307, USA.
18
19 lib_LTLIBRARIES = libFLAC.la
20 if DEBUG
21 DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
22 endif
23 CFLAGS = @CFLAGS@ $(DEBUGCFLAGS)
24
25 if FLaC__NO_ASM
26 else
27 if FLaC__CPU_IA32
28 if FLaC__HAS_NASM
29 ARCH_SUBDIRS = ia32
30 libFLAC_la_LIBADD = ia32/libFLAC-asm.la
31 endif
32 endif
33 endif
34
35 SUBDIRS = $(ARCH_SUBDIRS) include .
36
37 m4datadir = $(datadir)/aclocal
38 m4data_DATA = libFLAC.m4
39
40 EXTRA_DIST = libFLAC.m4
41
42 # see 'http://www.gnu.org/software/libtool/manual.html#Versioning' for numbering convention
43 libFLAC_la_LDFLAGS = -version-info 3:0:0
44
45 libFLAC_la_SOURCES = \
46         bitbuffer.c \
47         bitmath.c \
48         cpu.c \
49         crc.c \
50         file_decoder.c \
51         fixed.c \
52         format.c \
53         lpc.c \
54         md5.c \
55         memory.c \
56         metadata_iterators.c \
57         metadata_object.c \
58         seekable_stream_decoder.c \
59         stream_decoder.c \
60         stream_encoder.c \
61         stream_encoder_framing.c