Only free state once in kiss-fft failed init path
[opus.git] / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 lib_LTLIBRARIES = libopus.la
4
5 SUBDIRS = . celt/tests doc
6
7 INCLUDES = -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
8
9 include celt_sources.mk
10 include silk_sources.mk
11 include opus_sources.mk
12
13 if FIXED_POINT
14 SILK_SOURCES += $(SILK_SOURCES_FIXED)
15 else
16 SILK_SOURCES += $(SILK_SOURCES_FLOAT)
17 endif
18
19 include celt_headers.txt
20 include silk_headers.txt
21 include opus_headers.txt
22
23 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
24
25 pkginclude_HEADERS = src/opus.h src/opus_multistream.h celt/opus_types.h celt/opus_defines.h
26
27 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
28
29 noinst_PROGRAMS = test_opus test_repacketizer opus_compare
30
31 test_opus_SOURCES = src/test_opus.c
32
33 test_opus_LDADD = libopus.la -lm
34
35 test_repacketizer_SOURCES = src/test_repacketizer.c
36
37 test_repacketizer_LDADD = libopus.la -lm
38
39 opus_compare_SOURCES = src/opus_compare.c
40 opus_compare_LDADD = -lm
41
42 if CUSTOM_MODES
43 pkginclude_HEADERS += celt/opus_custom.h
44 noinst_PROGRAMS += test_opus_custom
45 test_opus_custom_SOURCES = celt/test_opus_custom.c
46 test_opus_custom_LDADD = libopus.la -lm
47 endif
48
49 EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in
50
51 pkgconfigdir = $(libdir)/pkgconfig
52 pkgconfig_DATA = opus.pc