Tell automake to put object files in subdirectories.
[opus.git] / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 lib_LTLIBRARIES = libopus.la
4
5 INCLUDES = -I$(top_srcdir)/libcelt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
6
7 include celt_sources.mk
8 include silk_sources.mk
9 include opus_sources.mk
10
11 if FIXED_POINT
12 SILK_SOURCES += $(SILK_SOURCES_FIXED)
13 else
14 SILK_SOURCES += $(SILK_SOURCES_FLOAT)
15 endif
16
17 include celt_headers.txt
18 include silk_headers.txt
19 include opus_headers.txt
20
21 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
22
23 pkginclude_HEADERS = src/opus.h
24
25 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
26
27 noinst_PROGRAMS = test_opus
28
29 test_opus_SOURCES = src/test_opus.c
30
31 test_opus_LDADD = libopus.la -lm