Rename to header makefile fragements to .mk
[opus.git] / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects color-tests parallel-tests
2
3 lib_LTLIBRARIES = libopus.la
4
5 SUBDIRS = . doc
6
7 INCLUDES = -I$(top_srcdir)/include -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.mk
20 include silk_headers.mk
21 include opus_headers.mk
22
23 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
24
25 pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
26
27 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
28
29 noinst_PROGRAMS = opus_demo repacketizer_demo opus_compare tests/test_opus_api tests/test_opus_encode tests/test_opus_decode celt/tests/test_unit_cwrs32 celt/tests/test_unit_dft celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_mathops celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_types
30
31 TESTS = celt/tests/test_unit_types celt/tests/test_unit_mathops celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_dft celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_cwrs32 tests/test_opus_api tests/test_opus_decode tests/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 tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
45 tests_test_opus_api_LDADD = libopus.la -lm
46
47 tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
48 tests_test_opus_encode_LDADD = libopus.la -lm
49
50 tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
51 tests_test_opus_decode_LDADD = libopus.la -lm
52
53 celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
54 celt_tests_test_unit_cwrs32_LDADD = -lm
55
56 celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
57 celt_tests_test_unit_dft_LDADD = -lm
58
59 celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
60 celt_tests_test_unit_entropy_LDADD = -lm
61
62 celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
63 celt_tests_test_unit_laplace_LDADD = -lm
64
65 celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
66 celt_tests_test_unit_mathops_LDADD = -lm
67
68 celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
69 celt_tests_test_unit_mdct_LDADD = -lm
70
71 celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
72 celt_tests_test_unit_rotation_LDADD = -lm
73
74 celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
75 celt_tests_test_unit_types_LDADD = -lm
76
77 if CUSTOM_MODES
78 pkginclude_HEADERS += include/opus_custom.h
79 noinst_PROGRAMS += opus_custom_demo
80 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
81 opus_custom_demo_LDADD = libopus.la -lm
82 endif
83
84 EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in
85
86 pkgconfigdir = $(libdir)/pkgconfig
87 pkgconfig_DATA = opus.pc