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