Removes more indirections in celt.c
[opus.git] / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 lib_LTLIBRARIES = libopus.la
4
5 DIST_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 OPUS_SOURCES += $(OPUS_SOURCES_FLOAT)
18 endif
19
20 include celt_headers.mk
21 include silk_headers.mk
22 include opus_headers.mk
23
24 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
25 libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@
26
27 pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
28
29 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
30
31 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
32
33 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
34
35 opus_demo_SOURCES = src/opus_demo.c
36
37 opus_demo_LDADD = libopus.la -lm
38
39 repacketizer_demo_SOURCES = src/repacketizer_demo.c
40
41 repacketizer_demo_LDADD = libopus.la -lm
42
43 opus_compare_SOURCES = src/opus_compare.c
44 opus_compare_LDADD = -lm
45
46 tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
47 tests_test_opus_api_LDADD = libopus.la -lm
48
49 tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
50 tests_test_opus_encode_LDADD = libopus.la -lm
51
52 tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
53 tests_test_opus_decode_LDADD = libopus.la -lm
54
55 celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
56 celt_tests_test_unit_cwrs32_LDADD = -lm
57
58 celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
59 celt_tests_test_unit_dft_LDADD = -lm
60
61 celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
62 celt_tests_test_unit_entropy_LDADD = -lm
63
64 celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
65 celt_tests_test_unit_laplace_LDADD = -lm
66
67 celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
68 celt_tests_test_unit_mathops_LDADD = -lm
69
70 celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
71 celt_tests_test_unit_mdct_LDADD = -lm
72
73 celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
74 celt_tests_test_unit_rotation_LDADD = -lm
75
76 celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
77 celt_tests_test_unit_types_LDADD = -lm
78
79 if CUSTOM_MODES
80 pkginclude_HEADERS += include/opus_custom.h
81 noinst_PROGRAMS += opus_custom_demo
82 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
83 opus_custom_demo_LDADD = libopus.la -lm
84 endif
85
86 EXTRA_DIST = version.mk \
87              opus.pc.in \
88              opus-uninstalled.pc.in \
89              opus.m4 \
90              Makefile.unix \
91              tests/run_vectors.sh \
92              opus.sln \
93              celt/celt.vcxproj \
94              celt/celt.vcxproj.filters \
95              src/opus_demo.vcxproj \
96              src/opus.vcxproj \
97              src/opus.vcxproj.filters \
98              src/opus_demo.vcxproj.filters \
99              tests/test_opus_decode.vcxproj.filters \
100              tests/test_opus_decode.vcxproj \
101              tests/test_opus_encode.vcxproj.filters \
102              tests/test_opus_encode.vcxproj \
103              tests/test_opus_api.vcxproj.filters \
104              tests/test_opus_api.vcxproj \
105              silk/float/silk_float.vcxproj.filters \
106              silk/float/silk_float.vcxproj \
107              silk/fixed/silk_fixed.vcxproj.filters \
108              silk/fixed/silk_fixed.vcxproj \
109              silk/silk_common.vcxproj \
110              silk/silk_common.vcxproj.filters \
111              win32/genversion.bat \
112              win32/config.h
113
114 pkgconfigdir = $(libdir)/pkgconfig
115 pkgconfig_DATA = opus.pc
116
117 m4datadir = $(datadir)/aclocal
118 m4data_DATA = opus.m4
119
120 # Targets to build and install just the library without the docs
121 opus check-opus install-opus: export NO_DOXYGEN = 1
122
123 opus: all
124 check-opus: check
125 install-opus: install
126
127
128 # Or just the docs
129 docs:
130         ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
131
132 install-docs:
133         ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
134
135
136 # Or everything (by default)
137 all-local:
138         @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
139
140 install-data-local:
141         @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
142
143 clean-local:
144         -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean )
145
146 uninstall-local:
147         ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall )
148
149
150 .PHONY: opus check-opus install-opus docs install-docs