Rename test_repacketizer to repacketizer_demo.
[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 = opus_demo repacketizer_demo opus_compare test_opus_api test_opus_encode test_opus_decode
30
31 TESTS = test_opus_api test_opus_decode test_opus_encode
32
33 opus_demo_SOURCES = src/opus_demo.c
34
35 opus_demo_LDADD = libopus.la -lm
36
37 repacketizer_demo_SOURCES = src/repacketizer_demo.c
38
39 repacketizer_demo_LDADD = libopus.la -lm
40
41 opus_compare_SOURCES = src/opus_compare.c
42 opus_compare_LDADD = -lm
43
44 test_opus_api_SOURCES = tests/test_opus_api.c
45 test_opus_api_LDADD = libopus.la -lm
46
47 test_opus_encode_SOURCES = tests/test_opus_encode.c
48 test_opus_encode_LDADD = libopus.la -lm
49
50 test_opus_decode_SOURCES = tests/test_opus_decode.c
51 test_opus_decode_LDADD = libopus.la -lm
52
53 if CUSTOM_MODES
54 pkginclude_HEADERS += celt/opus_custom.h
55 noinst_PROGRAMS += opus_custom_demo
56 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
57 opus_custom_demo_LDADD = libopus.la -lm
58 endif
59
60 EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in
61
62 pkgconfigdir = $(libdir)/pkgconfig
63 pkgconfig_DATA = opus.pc