Ron | 90a3903 | 2013-06-29 16:36:24 +0930 | [diff] [blame] | 1 | # Provide the full test output for failed tests when using the parallel |
| 2 | # test suite (which is enabled by default with automake 1.13+). |
| 3 | export VERBOSE = yes |
| 4 | |
Gregory Maxwell | 135e5d3 | 2012-04-29 20:24:36 -0400 | [diff] [blame] | 5 | AUTOMAKE_OPTIONS = subdir-objects |
Ron | 50b395b | 2013-05-20 12:31:48 +0930 | [diff] [blame] | 6 | ACLOCAL_AMFLAGS = -I m4 |
Ralph Giles | 2852cb1 | 2011-08-02 11:43:43 -0700 | [diff] [blame] | 7 | |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 8 | lib_LTLIBRARIES = libopus.la |
Jean-Marc Valin | a0cbeca | 2010-07-08 11:27:20 -0400 | [diff] [blame] | 9 | |
Ron | 9a89d56 | 2012-06-12 04:40:42 +0930 | [diff] [blame] | 10 | DIST_SUBDIRS = doc |
| 11 | |
Ron | 64b3985 | 2013-06-29 15:40:27 +0930 | [diff] [blame] | 12 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk \ |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 13 | -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed $(NE10_CFLAGS) |
Jean-Marc Valin | a0cbeca | 2010-07-08 11:27:20 -0400 | [diff] [blame] | 14 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 15 | include celt_sources.mk |
| 16 | include silk_sources.mk |
| 17 | include opus_sources.mk |
Jean-Marc Valin | e7a2a03 | 2011-02-14 21:18:08 -0500 | [diff] [blame] | 18 | |
Jean-Marc Valin | b2c00d2 | 2011-08-02 08:13:42 -0400 | [diff] [blame] | 19 | if FIXED_POINT |
| 20 | SILK_SOURCES += $(SILK_SOURCES_FIXED) |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 21 | if HAVE_SSE4_1 |
| 22 | SILK_SOURCES += $(SILK_SOURCES_SSE4_1) $(SILK_SOURCES_FIXED_SSE4_1) |
| 23 | endif |
Linfeng Zhang | 8e19536 | 2016-07-13 16:40:48 -0700 | [diff] [blame] | 24 | if HAVE_ARM_NEON_INTR |
| 25 | SILK_SOURCES += $(SILK_SOURCES_FIXED_ARM_NEON_INTR) |
| 26 | endif |
Jean-Marc Valin | b2c00d2 | 2011-08-02 08:13:42 -0400 | [diff] [blame] | 27 | else |
| 28 | SILK_SOURCES += $(SILK_SOURCES_FLOAT) |
Jonathan Lennox | 43120f0 | 2015-08-03 17:04:27 -0400 | [diff] [blame] | 29 | if HAVE_SSE4_1 |
| 30 | SILK_SOURCES += $(SILK_SOURCES_SSE4_1) |
| 31 | endif |
Jean-Marc Valin | b2c00d2 | 2011-08-02 08:13:42 -0400 | [diff] [blame] | 32 | endif |
| 33 | |
Jean-Marc Valin | d814c5d | 2013-11-04 12:26:50 -0500 | [diff] [blame] | 34 | if DISABLE_FLOAT_API |
| 35 | else |
Jean-Marc Valin | 3ab03e0 | 2013-09-06 16:00:39 -0400 | [diff] [blame] | 36 | OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) |
Jean-Marc Valin | d814c5d | 2013-11-04 12:26:50 -0500 | [diff] [blame] | 37 | endif |
Jean-Marc Valin | 3ab03e0 | 2013-09-06 16:00:39 -0400 | [diff] [blame] | 38 | |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 39 | if HAVE_SSE |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 40 | CELT_SOURCES += $(CELT_SOURCES_SSE) |
| 41 | endif |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 42 | if HAVE_SSE2 |
| 43 | CELT_SOURCES += $(CELT_SOURCES_SSE2) |
| 44 | endif |
| 45 | if HAVE_SSE4_1 |
| 46 | CELT_SOURCES += $(CELT_SOURCES_SSE4_1) |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 47 | endif |
| 48 | |
Aurélien Zanelli | cd4c824 | 2013-05-31 15:07:00 +0200 | [diff] [blame] | 49 | if CPU_ARM |
| 50 | CELT_SOURCES += $(CELT_SOURCES_ARM) |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 51 | SILK_SOURCES += $(SILK_SOURCES_ARM) |
Viswanath Puttagunta | 0b0a2b4 | 2014-12-19 17:25:55 -0600 | [diff] [blame] | 52 | |
Jonathan Lennox | 8cb1487 | 2015-11-20 23:02:55 -0500 | [diff] [blame] | 53 | if HAVE_ARM_NEON_INTR |
Viswanath Puttagunta | 0b0a2b4 | 2014-12-19 17:25:55 -0600 | [diff] [blame] | 54 | CELT_SOURCES += $(CELT_SOURCES_ARM_NEON_INTR) |
Jonathan Lennox | 44e8e73 | 2015-12-22 19:21:44 -0500 | [diff] [blame] | 55 | SILK_SOURCES += $(SILK_SOURCES_ARM_NEON_INTR) |
Viswanath Puttagunta | 0b0a2b4 | 2014-12-19 17:25:55 -0600 | [diff] [blame] | 56 | endif |
| 57 | |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 58 | if HAVE_ARM_NE10 |
| 59 | CELT_SOURCES += $(CELT_SOURCES_ARM_NE10) |
| 60 | endif |
| 61 | |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 62 | if OPUS_ARM_EXTERNAL_ASM |
Timothy B. Terriberry | 0fe5143 | 2015-10-06 13:16:24 -0400 | [diff] [blame] | 63 | noinst_LTLIBRARIES = libarmasm.la |
| 64 | libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 65 | BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ |
| 66 | $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \ |
Timothy B. Terriberry | 7a0b682 | 2013-11-18 14:10:57 -0500 | [diff] [blame] | 67 | $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 68 | endif |
Aurélien Zanelli | cd4c824 | 2013-05-31 15:07:00 +0200 | [diff] [blame] | 69 | endif |
| 70 | |
Ralph Giles | d5cb063 | 2013-11-19 17:50:05 +1300 | [diff] [blame] | 71 | CLEANFILES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ |
| 72 | $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) |
| 73 | |
Ralph Giles | cd539df | 2012-04-05 09:23:47 -0700 | [diff] [blame] | 74 | include celt_headers.mk |
| 75 | include silk_headers.mk |
| 76 | include opus_headers.mk |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 77 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 78 | libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) |
Gregory Maxwell | 8d2e9ad | 2012-08-10 17:21:28 -0400 | [diff] [blame] | 79 | libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@ |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 80 | libopus_la_LIBADD = $(NE10_LIBS) $(LIBM) |
Timothy B. Terriberry | 0fe5143 | 2015-10-06 13:16:24 -0400 | [diff] [blame] | 81 | if OPUS_ARM_EXTERNAL_ASM |
| 82 | libopus_la_LIBADD += libarmasm.la |
| 83 | endif |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 84 | |
Andrew Allen | f643c03 | 2017-11-07 13:26:23 -0800 | [diff] [blame] | 85 | pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h include/opus_projection.h |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 86 | |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 87 | noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD) |
| 88 | |
Aurélien Zanelli | faec673 | 2013-05-26 22:08:02 +0200 | [diff] [blame] | 89 | if EXTRA_PROGRAMS |
Jean-Marc Valin | 6868865 | 2017-02-14 19:06:10 -0500 | [diff] [blame] | 90 | noinst_PROGRAMS = celt/tests/test_unit_cwrs32 \ |
| 91 | celt/tests/test_unit_dft \ |
| 92 | celt/tests/test_unit_entropy \ |
| 93 | celt/tests/test_unit_laplace \ |
| 94 | celt/tests/test_unit_mathops \ |
| 95 | celt/tests/test_unit_mdct \ |
| 96 | celt/tests/test_unit_rotation \ |
| 97 | celt/tests/test_unit_types \ |
| 98 | opus_compare \ |
| 99 | opus_demo \ |
| 100 | repacketizer_demo \ |
| 101 | silk/tests/test_unit_LPC_inv_pred_gain \ |
| 102 | tests/test_opus_api \ |
| 103 | tests/test_opus_decode \ |
| 104 | tests/test_opus_encode \ |
Andrew Allen | f643c03 | 2017-11-07 13:26:23 -0800 | [diff] [blame] | 105 | tests/test_opus_padding \ |
Ralph Giles | 72a3a6c | 2020-05-30 21:22:09 -0700 | [diff] [blame] | 106 | tests/test_opus_projection \ |
| 107 | trivial_example |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 108 | |
Jean-Marc Valin | 6868865 | 2017-02-14 19:06:10 -0500 | [diff] [blame] | 109 | TESTS = celt/tests/test_unit_cwrs32 \ |
| 110 | celt/tests/test_unit_dft \ |
| 111 | celt/tests/test_unit_entropy \ |
| 112 | celt/tests/test_unit_laplace \ |
| 113 | celt/tests/test_unit_mathops \ |
| 114 | celt/tests/test_unit_mdct \ |
| 115 | celt/tests/test_unit_rotation \ |
| 116 | celt/tests/test_unit_types \ |
| 117 | silk/tests/test_unit_LPC_inv_pred_gain \ |
| 118 | tests/test_opus_api \ |
| 119 | tests/test_opus_decode \ |
| 120 | tests/test_opus_encode \ |
Andrew Allen | f643c03 | 2017-11-07 13:26:23 -0800 | [diff] [blame] | 121 | tests/test_opus_padding \ |
| 122 | tests/test_opus_projection |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 123 | |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 124 | opus_demo_SOURCES = src/opus_demo.c |
| 125 | |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 126 | opus_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 127 | |
Gregory Maxwell | 38805f3 | 2011-10-26 20:05:56 -0400 | [diff] [blame] | 128 | repacketizer_demo_SOURCES = src/repacketizer_demo.c |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 129 | |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 130 | repacketizer_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 131 | |
Jean-Marc Valin | c4ca21f | 2011-09-15 10:10:40 -0700 | [diff] [blame] | 132 | opus_compare_SOURCES = src/opus_compare.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 133 | opus_compare_LDADD = $(LIBM) |
Jean-Marc Valin | c4ca21f | 2011-09-15 10:10:40 -0700 | [diff] [blame] | 134 | |
Ralph Giles | 72a3a6c | 2020-05-30 21:22:09 -0700 | [diff] [blame] | 135 | trivial_example_SOURCES = doc/trivial_example.c |
| 136 | trivial_example_LDADD = libopus.la $(LIBM) |
| 137 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 138 | tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 139 | tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 140 | |
Jean-Marc Valin | d0d1cf3 | 2016-10-29 14:45:30 -0400 | [diff] [blame] | 141 | tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/opus_encode_regressions.c tests/test_opus_common.h |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 142 | tests_test_opus_encode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 143 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 144 | tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 145 | tests_test_opus_decode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 146 | |
Ralph Giles | e7ec933 | 2012-11-30 18:00:38 -0800 | [diff] [blame] | 147 | tests_test_opus_padding_SOURCES = tests/test_opus_padding.c tests/test_opus_common.h |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 148 | tests_test_opus_padding_LDADD = libopus.la $(NE10_LIBS) $(LIBM) |
Ralph Giles | e7ec933 | 2012-11-30 18:00:38 -0800 | [diff] [blame] | 149 | |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 150 | CELT_OBJ = $(CELT_SOURCES:.c=.lo) |
| 151 | SILK_OBJ = $(SILK_SOURCES:.c=.lo) |
Jean-Marc Valin | ef20313 | 2018-03-22 17:40:35 -0400 | [diff] [blame] | 152 | OPUS_OBJ = $(OPUS_SOURCES:.c=.lo) |
| 153 | |
| 154 | tests_test_opus_projection_SOURCES = tests/test_opus_projection.c tests/test_opus_common.h |
| 155 | tests_test_opus_projection_LDADD = $(OPUS_OBJ) $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
| 156 | if OPUS_ARM_EXTERNAL_ASM |
| 157 | tests_test_opus_projection_LDADD += libarmasm.la |
| 158 | endif |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 159 | |
Jean-Marc Valin | 6868865 | 2017-02-14 19:06:10 -0500 | [diff] [blame] | 160 | silk_tests_test_unit_LPC_inv_pred_gain_SOURCES = silk/tests/test_unit_LPC_inv_pred_gain.c |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 161 | silk_tests_test_unit_LPC_inv_pred_gain_LDADD = $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
| 162 | if OPUS_ARM_EXTERNAL_ASM |
| 163 | silk_tests_test_unit_LPC_inv_pred_gain_LDADD += libarmasm.la |
| 164 | endif |
Jean-Marc Valin | 6868865 | 2017-02-14 19:06:10 -0500 | [diff] [blame] | 165 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 166 | celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 167 | celt_tests_test_unit_cwrs32_LDADD = $(LIBM) |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 168 | |
| 169 | celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 170 | celt_tests_test_unit_dft_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 171 | if OPUS_ARM_EXTERNAL_ASM |
| 172 | celt_tests_test_unit_dft_LDADD += libarmasm.la |
| 173 | endif |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 174 | |
| 175 | celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 176 | celt_tests_test_unit_entropy_LDADD = $(LIBM) |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 177 | |
| 178 | celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 179 | celt_tests_test_unit_laplace_LDADD = $(LIBM) |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 180 | |
| 181 | celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 182 | celt_tests_test_unit_mathops_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
Tristan Matthews | fd562ee | 2014-10-12 15:12:52 -0400 | [diff] [blame] | 183 | if OPUS_ARM_EXTERNAL_ASM |
Timothy B. Terriberry | 0fe5143 | 2015-10-06 13:16:24 -0400 | [diff] [blame] | 184 | celt_tests_test_unit_mathops_LDADD += libarmasm.la |
Tristan Matthews | fd562ee | 2014-10-12 15:12:52 -0400 | [diff] [blame] | 185 | endif |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 186 | |
| 187 | celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 188 | celt_tests_test_unit_mdct_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 189 | if OPUS_ARM_EXTERNAL_ASM |
| 190 | celt_tests_test_unit_mdct_LDADD += libarmasm.la |
| 191 | endif |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 192 | |
| 193 | celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 194 | celt_tests_test_unit_rotation_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) |
Tristan Matthews | fd562ee | 2014-10-12 15:12:52 -0400 | [diff] [blame] | 195 | if OPUS_ARM_EXTERNAL_ASM |
Timothy B. Terriberry | 0fe5143 | 2015-10-06 13:16:24 -0400 | [diff] [blame] | 196 | celt_tests_test_unit_rotation_LDADD += libarmasm.la |
Tristan Matthews | fd562ee | 2014-10-12 15:12:52 -0400 | [diff] [blame] | 197 | endif |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 198 | |
| 199 | celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 200 | celt_tests_test_unit_types_LDADD = $(LIBM) |
Aurélien Zanelli | faec673 | 2013-05-26 22:08:02 +0200 | [diff] [blame] | 201 | endif |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 202 | |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 203 | if CUSTOM_MODES |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 204 | pkginclude_HEADERS += include/opus_custom.h |
Aurélien Zanelli | faec673 | 2013-05-26 22:08:02 +0200 | [diff] [blame] | 205 | if EXTRA_PROGRAMS |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 206 | noinst_PROGRAMS += opus_custom_demo |
| 207 | opus_custom_demo_SOURCES = celt/opus_custom_demo.c |
Ron | 5bac4f2 | 2013-06-29 02:06:53 +0930 | [diff] [blame] | 208 | opus_custom_demo_LDADD = libopus.la $(LIBM) |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 209 | endif |
Aurélien Zanelli | faec673 | 2013-05-26 22:08:02 +0200 | [diff] [blame] | 210 | endif |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 211 | |
Ricardo Constantino | 8fe210f | 2016-11-05 02:03:07 +0000 | [diff] [blame] | 212 | EXTRA_DIST = opus.pc.in \ |
Gregory Maxwell | e852c34 | 2012-08-09 07:29:58 -0400 | [diff] [blame] | 213 | opus-uninstalled.pc.in \ |
Gregory Maxwell | 6e2dd16 | 2012-08-30 12:26:34 -0400 | [diff] [blame] | 214 | opus.m4 \ |
Jean-Marc Valin | 45cbdff | 2015-02-11 14:10:03 -0500 | [diff] [blame] | 215 | Makefile.mips \ |
Jean-Marc Valin | e91dfa0 | 2012-08-31 23:10:12 -0400 | [diff] [blame] | 216 | Makefile.unix \ |
Marcus Asteborg | f9d3d43 | 2018-11-15 19:48:38 -0800 | [diff] [blame] | 217 | CMakeLists.txt \ |
Marcus Asteborg | a0e14e7 | 2020-04-13 15:51:48 -0700 | [diff] [blame] | 218 | cmake/CFeatureCheck.cmake \ |
Marcus Asteborg | 48055cc | 2020-04-22 22:06:11 -0700 | [diff] [blame] | 219 | cmake/OpusBuildtype.cmake \ |
| 220 | cmake/OpusConfig.cmake \ |
| 221 | cmake/OpusConfig.cmake.in \ |
| 222 | cmake/OpusFunctions.cmake \ |
Marcus Asteborg | 8ad827c | 2020-06-24 21:25:57 -0700 | [diff] [blame] | 223 | cmake/OpusPackageVersion.cmake \ |
Marcus Asteborg | 48055cc | 2020-04-22 22:06:11 -0700 | [diff] [blame] | 224 | cmake/OpusSources.cmake \ |
| 225 | cmake/config.h.cmake.in \ |
Marcus Asteborg | a0e14e7 | 2020-04-13 15:51:48 -0700 | [diff] [blame] | 226 | cmake/vla.c \ |
Tim-Philipp Müller | c2b542b | 2016-03-19 15:40:22 +0000 | [diff] [blame] | 227 | meson/get-version.py \ |
| 228 | meson/read-sources-list.py \ |
| 229 | meson.build \ |
| 230 | meson_options.txt \ |
| 231 | include/meson.build \ |
| 232 | celt/meson.build \ |
| 233 | celt/tests/meson.build \ |
| 234 | silk/meson.build \ |
| 235 | silk/tests/meson.build \ |
| 236 | src/meson.build \ |
| 237 | tests/meson.build \ |
| 238 | doc/meson.build \ |
Gregory Maxwell | 1b58bc7 | 2012-08-19 16:45:20 -0400 | [diff] [blame] | 239 | tests/run_vectors.sh \ |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 240 | celt/arm/arm2gnu.pl \ |
Ron | 135d1c9 | 2013-11-19 17:34:12 +1030 | [diff] [blame] | 241 | celt/arm/celt_pitch_xcorr_arm.s \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 242 | win32/VS2015/opus.vcxproj \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 243 | win32/VS2015/test_opus_encode.vcxproj.filters \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 244 | win32/VS2015/test_opus_encode.vcxproj \ |
| 245 | win32/VS2015/opus_demo.vcxproj \ |
| 246 | win32/VS2015/test_opus_api.vcxproj.filters \ |
| 247 | win32/VS2015/test_opus_api.vcxproj \ |
| 248 | win32/VS2015/test_opus_decode.vcxproj.filters \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 249 | win32/VS2015/opus_demo.vcxproj.filters \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 250 | win32/VS2015/opus.vcxproj.filters \ |
| 251 | win32/VS2015/test_opus_decode.vcxproj \ |
Ralph Giles | a8f6115 | 2016-05-18 12:24:15 -0700 | [diff] [blame] | 252 | win32/VS2015/opus.sln \ |
Ricardo Constantino | 8056706 | 2017-02-21 02:24:27 +0000 | [diff] [blame] | 253 | win32/VS2015/common.props \ |
Gregory Maxwell | e852c34 | 2012-08-09 07:29:58 -0400 | [diff] [blame] | 254 | win32/genversion.bat \ |
| 255 | win32/config.h |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 256 | |
| 257 | pkgconfigdir = $(libdir)/pkgconfig |
| 258 | pkgconfig_DATA = opus.pc |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 259 | |
Gregory Maxwell | 6e2dd16 | 2012-08-30 12:26:34 -0400 | [diff] [blame] | 260 | m4datadir = $(datadir)/aclocal |
| 261 | m4data_DATA = opus.m4 |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 262 | |
| 263 | # Targets to build and install just the library without the docs |
| 264 | opus check-opus install-opus: export NO_DOXYGEN = 1 |
| 265 | |
| 266 | opus: all |
| 267 | check-opus: check |
| 268 | install-opus: install |
| 269 | |
| 270 | |
| 271 | # Or just the docs |
| 272 | docs: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 273 | ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 274 | |
| 275 | install-docs: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 276 | ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 277 | |
| 278 | |
| 279 | # Or everything (by default) |
| 280 | all-local: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 281 | @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 282 | |
| 283 | install-data-local: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 284 | @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 285 | |
| 286 | clean-local: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 287 | -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 288 | |
| 289 | uninstall-local: |
Ron | b371cf8 | 2012-10-18 14:05:55 +1030 | [diff] [blame] | 290 | ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall ) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 291 | |
| 292 | |
Ron | 2f2f9d6 | 2013-05-11 02:05:24 +0930 | [diff] [blame] | 293 | # We check this every time make is run, with configure.ac being touched to |
| 294 | # trigger an update of the build system files if update_version changes the |
| 295 | # current PACKAGE_VERSION (or if package_version was modified manually by a |
| 296 | # user with either AUTO_UPDATE=no or no update_version script present - the |
| 297 | # latter being the normal case for tarball releases). |
| 298 | # |
| 299 | # We can't just add the package_version file to CONFIGURE_DEPENDENCIES since |
| 300 | # simply running autoconf will not actually regenerate configure for us when |
| 301 | # the content of that file changes (due to autoconf dependency checking not |
| 302 | # knowing about that without us creating yet another file for it to include). |
| 303 | # |
| 304 | # The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for |
| 305 | # makes that don't support it. The only loss of functionality is not forcing |
| 306 | # an update of package_version for `make dist` if AUTO_UPDATE=no, but that is |
| 307 | # unlikely to be a real problem for any real user. |
| 308 | $(top_srcdir)/configure.ac: force |
| 309 | @case "$(MAKECMDGOALS)" in \ |
| 310 | dist-hook) exit 0 ;; \ |
| 311 | dist-* | dist | distcheck | distclean) _arg=release ;; \ |
| 312 | esac; \ |
| 313 | if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \ |
Ron | 8d925ec | 2013-05-11 07:33:03 +0930 | [diff] [blame] | 314 | if [ ! -e $(top_srcdir)/package_version ]; then \ |
| 315 | echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \ |
| 316 | fi; \ |
Ron | 2f2f9d6 | 2013-05-11 02:05:24 +0930 | [diff] [blame] | 317 | . $(top_srcdir)/package_version || exit 1; \ |
| 318 | [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \ |
| 319 | fi; \ |
| 320 | touch $@ |
| 321 | |
| 322 | force: |
| 323 | |
| 324 | # Create a minimal package_version file when make dist is run. |
| 325 | dist-hook: |
| 326 | echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version |
| 327 | |
| 328 | |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 329 | .PHONY: opus check-opus install-opus docs install-docs |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 330 | |
| 331 | # automake doesn't do dependency tracking for asm files, that I can tell |
| 332 | $(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): celt/arm/armopts-gnu.S |
| 333 | $(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): $(top_srcdir)/celt/arm/arm2gnu.pl |
| 334 | |
| 335 | # convert ARM asm to GNU as format |
| 336 | %-gnu.S: $(top_srcdir)/%.s |
Martin Storsjo | 76e831d | 2014-03-19 21:36:39 +0200 | [diff] [blame] | 337 | $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ |
Timothy B. Terriberry | 39386e0 | 2013-11-18 13:30:13 -0500 | [diff] [blame] | 338 | # For autoconf-modified sources (e.g., armopts.s) |
| 339 | %-gnu.S: %.s |
Timothy B. Terriberry | 4ae4bc6 | 2014-03-26 12:58:04 -0700 | [diff] [blame] | 340 | $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 341 | |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 342 | OPT_UNIT_TEST_OBJ = $(celt_tests_test_unit_mathops_SOURCES:.c=.o) \ |
| 343 | $(celt_tests_test_unit_rotation_SOURCES:.c=.o) \ |
| 344 | $(celt_tests_test_unit_mdct_SOURCES:.c=.o) \ |
Jean-Marc Valin | 6868865 | 2017-02-14 19:06:10 -0500 | [diff] [blame] | 345 | $(celt_tests_test_unit_dft_SOURCES:.c=.o) \ |
| 346 | $(silk_tests_test_unit_LPC_inv_pred_gain_SOURCES:.c=.o) |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 347 | |
| 348 | if HAVE_SSE |
| 349 | SSE_OBJ = $(CELT_SOURCES_SSE:.c=.lo) |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 350 | $(SSE_OBJ): CFLAGS += $(OPUS_X86_SSE_CFLAGS) |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 351 | endif |
| 352 | |
| 353 | if HAVE_SSE2 |
| 354 | SSE2_OBJ = $(CELT_SOURCES_SSE2:.c=.lo) |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 355 | $(SSE2_OBJ): CFLAGS += $(OPUS_X86_SSE2_CFLAGS) |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 356 | endif |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 357 | |
| 358 | if HAVE_SSE4_1 |
Jonathan Lennox | cb0875e | 2015-08-03 17:04:26 -0400 | [diff] [blame] | 359 | SSE4_1_OBJ = $(CELT_SOURCES_SSE4_1:.c=.lo) \ |
| 360 | $(SILK_SOURCES_SSE4_1:.c=.lo) \ |
| 361 | $(SILK_SOURCES_FIXED_SSE4_1:.c=.lo) |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 362 | $(SSE4_1_OBJ): CFLAGS += $(OPUS_X86_SSE4_1_CFLAGS) |
xiangmingzhu | c95c9a0 | 2014-04-30 15:48:07 +0800 | [diff] [blame] | 363 | endif |
Viswanath Puttagunta | 0b0a2b4 | 2014-12-19 17:25:55 -0600 | [diff] [blame] | 364 | |
Jonathan Lennox | 8cb1487 | 2015-11-20 23:02:55 -0500 | [diff] [blame] | 365 | if HAVE_ARM_NEON_INTR |
Linfeng Zhang | 8e19536 | 2016-07-13 16:40:48 -0700 | [diff] [blame] | 366 | ARM_NEON_INTR_OBJ = $(CELT_SOURCES_ARM_NEON_INTR:.c=.lo) \ |
| 367 | $(SILK_SOURCES_ARM_NEON_INTR:.c=.lo) \ |
| 368 | $(SILK_SOURCES_FIXED_ARM_NEON_INTR:.c=.lo) |
Jean-Marc Valin | 4507637 | 2017-05-25 16:28:53 -0400 | [diff] [blame] | 369 | $(ARM_NEON_INTR_OBJ): CFLAGS += \ |
Viswanath Puttagunta | f48abe8 | 2015-05-15 12:42:19 -0500 | [diff] [blame] | 370 | $(OPUS_ARM_NEON_INTR_CFLAGS) $(NE10_CFLAGS) |
Viswanath Puttagunta | 0b0a2b4 | 2014-12-19 17:25:55 -0600 | [diff] [blame] | 371 | endif |