OPUS_{GET,SET}_LSB_DEPTH for multichannel.
[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
26 pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
27
28 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
29
30 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
31
32 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
33
34 opus_demo_SOURCES = src/opus_demo.c
35
36 opus_demo_LDADD = libopus.la -lm
37
38 repacketizer_demo_SOURCES = src/repacketizer_demo.c
39
40 repacketizer_demo_LDADD = libopus.la -lm
41
42 opus_compare_SOURCES = src/opus_compare.c
43 opus_compare_LDADD = -lm
44
45 tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
46 tests_test_opus_api_LDADD = libopus.la -lm
47
48 tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
49 tests_test_opus_encode_LDADD = libopus.la -lm
50
51 tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
52 tests_test_opus_decode_LDADD = libopus.la -lm
53
54 celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
55 celt_tests_test_unit_cwrs32_LDADD = -lm
56
57 celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
58 celt_tests_test_unit_dft_LDADD = -lm
59
60 celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
61 celt_tests_test_unit_entropy_LDADD = -lm
62
63 celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
64 celt_tests_test_unit_laplace_LDADD = -lm
65
66 celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
67 celt_tests_test_unit_mathops_LDADD = -lm
68
69 celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
70 celt_tests_test_unit_mdct_LDADD = -lm
71
72 celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
73 celt_tests_test_unit_rotation_LDADD = -lm
74
75 celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
76 celt_tests_test_unit_types_LDADD = -lm
77
78 if CUSTOM_MODES
79 pkginclude_HEADERS += include/opus_custom.h
80 noinst_PROGRAMS += opus_custom_demo
81 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
82 opus_custom_demo_LDADD = libopus.la -lm
83 endif
84
85 EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in
86
87 pkgconfigdir = $(libdir)/pkgconfig
88 pkgconfig_DATA = opus.pc
89
90
91 # Targets to build and install just the library without the docs
92 opus check-opus install-opus: export NO_DOXYGEN = 1
93
94 opus: all
95 check-opus: check
96 install-opus: install
97
98
99 # Or just the docs
100 docs:
101         $(MAKE) $(AM_MAKEFLAGS) -C doc
102
103 install-docs:
104         $(MAKE) $(AM_MAKEFLAGS) -C doc install
105
106
107 # Or everything (by default)
108 all-local:
109         @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc
110
111 install-data-local:
112         @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc install
113
114 clean-local:
115         -$(MAKE) $(AM_MAKEFLAGS) -C doc clean
116
117 uninstall-local:
118         $(MAKE) $(AM_MAKEFLAGS) -C doc uninstall
119
120
121 .PHONY: opus check-opus install-opus docs install-docs