add asm routines
[flac.git] / src / libFLAC / Makefile.am
1 #
2 # GNU makefile
3 #
4
5 SUFFIXES = .nasm
6 .nasm.o:
7         $(NASM) -f elf -d ELF -i i386/ $< -o $@
8
9 lib_LTLIBRARIES = libFLAC.la
10 if DEBUG
11 CFLAGS += @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__OVERFLOW_DETECT
12 else
13 CFLAGS = @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS
14 endif
15
16 if FLaC__CPU_IA32 
17 if FLaC__HAS_NASM
18 libFLAC_la_SOURCES = \
19         bitbuffer.c \
20         bitmath.c \
21         crc.c \
22         cpu.c \
23         encoder.c \
24         encoder_framing.c \
25         file_decoder.c \
26         fixed.c \
27         format.c \
28         lpc.c \
29         md5.c \
30         seek_table.c \
31         stream_decoder.c \
32         i386/cpu_asm.nasm \
33         i386/fixed_asm.nasm \
34         i386/lpc_asm.nasm
35 else
36 libFLAC_la_SOURCES = \
37         bitbuffer.c \
38         bitmath.c \
39         crc.c \
40         cpu.c \
41         encoder.c \
42         encoder_framing.c \
43         file_decoder.c \
44         fixed.c \
45         format.c \
46         lpc.c \
47         md5.c \
48         seek_table.c \
49         stream_decoder.c
50 endif
51 else
52 libFLAC_la_SOURCES = \
53         bitbuffer.c \
54         bitmath.c \
55         crc.c \
56         cpu.c \
57         encoder.c \
58         encoder_framing.c \
59         file_decoder.c \
60         fixed.c \
61         format.c \
62         lpc.c \
63         md5.c \
64         seek_table.c \
65         stream_decoder.c
66 endif