revamp MSVC build system, separate dynamic and static builds, separate debug and...
[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 = \
41         Makefile.lite \
42         Makefile.vc \
43         libFLAC_dynamic.dsp \
44         libFLAC_static.dsp \
45         libFLAC.m4
46
47 # see 'http://www.gnu.org/software/libtool/manual.html#Versioning' for numbering convention
48 libFLAC_la_LDFLAGS = -version-info 4:1:0
49
50 libFLAC_la_SOURCES = \
51         bitbuffer.c \
52         bitmath.c \
53         cpu.c \
54         crc.c \
55         file_decoder.c \
56         file_encoder.c \
57         fixed.c \
58         format.c \
59         lpc.c \
60         md5.c \
61         memory.c \
62         metadata_iterators.c \
63         metadata_object.c \
64         seekable_stream_decoder.c \
65         seekable_stream_encoder.c \
66         stream_decoder.c \
67         stream_encoder.c \
68         stream_encoder_framing.c