blob: 7a691140e553d4554c6ec2b7cbac0298e3d16b2c [file] [log] [blame]
Ron90a39032013-06-29 16:36:24 +09301# Provide the full test output for failed tests when using the parallel
2# test suite (which is enabled by default with automake 1.13+).
3export VERBOSE = yes
4
Gregory Maxwell135e5d32012-04-29 20:24:36 -04005AUTOMAKE_OPTIONS = subdir-objects
Ron50b395b2013-05-20 12:31:48 +09306ACLOCAL_AMFLAGS = -I m4
Ralph Giles2852cb12011-08-02 11:43:43 -07007
Jean-Marc Valine05aaf22011-04-29 19:48:42 -04008lib_LTLIBRARIES = libopus.la
Jean-Marc Valina0cbeca2010-07-08 11:27:20 -04009
Ron9a89d562012-06-12 04:40:42 +093010DIST_SUBDIRS = doc
11
Ron64b39852013-06-29 15:40:27 +093012AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk \
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -050013 -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed $(NE10_CFLAGS)
Jean-Marc Valina0cbeca2010-07-08 11:27:20 -040014
Jean-Marc Valin8e4f5a82011-04-30 00:35:55 -040015include celt_sources.mk
16include silk_sources.mk
17include opus_sources.mk
Jean-Marc Valine7a2a032011-02-14 21:18:08 -050018
Jean-Marc Valinb2c00d22011-08-02 08:13:42 -040019if FIXED_POINT
20SILK_SOURCES += $(SILK_SOURCES_FIXED)
xiangmingzhuc95c9a02014-04-30 15:48:07 +080021if HAVE_SSE4_1
22SILK_SOURCES += $(SILK_SOURCES_SSE4_1) $(SILK_SOURCES_FIXED_SSE4_1)
23endif
Jean-Marc Valinb2c00d22011-08-02 08:13:42 -040024else
25SILK_SOURCES += $(SILK_SOURCES_FLOAT)
Jonathan Lennox43120f02015-08-03 17:04:27 -040026if HAVE_SSE4_1
27SILK_SOURCES += $(SILK_SOURCES_SSE4_1)
28endif
Jean-Marc Valinb2c00d22011-08-02 08:13:42 -040029endif
30
Jean-Marc Valind814c5d2013-11-04 12:26:50 -050031if DISABLE_FLOAT_API
32else
Jean-Marc Valin3ab03e02013-09-06 16:00:39 -040033OPUS_SOURCES += $(OPUS_SOURCES_FLOAT)
Jean-Marc Valind814c5d2013-11-04 12:26:50 -050034endif
Jean-Marc Valin3ab03e02013-09-06 16:00:39 -040035
Jonathan Lennoxcb0875e2015-08-03 17:04:26 -040036if HAVE_SSE
xiangmingzhuc95c9a02014-04-30 15:48:07 +080037CELT_SOURCES += $(CELT_SOURCES_SSE)
38endif
Jonathan Lennoxcb0875e2015-08-03 17:04:26 -040039if HAVE_SSE2
40CELT_SOURCES += $(CELT_SOURCES_SSE2)
41endif
42if HAVE_SSE4_1
43CELT_SOURCES += $(CELT_SOURCES_SSE4_1)
xiangmingzhuc95c9a02014-04-30 15:48:07 +080044endif
45
Aurélien Zanellicd4c8242013-05-31 15:07:00 +020046if CPU_ARM
47CELT_SOURCES += $(CELT_SOURCES_ARM)
Timothy B. Terriberry39386e02013-11-18 13:30:13 -050048SILK_SOURCES += $(SILK_SOURCES_ARM)
Viswanath Puttagunta0b0a2b42014-12-19 17:25:55 -060049
Jonathan Lennox8cb14872015-11-20 23:02:55 -050050if HAVE_ARM_NEON_INTR
Viswanath Puttagunta0b0a2b42014-12-19 17:25:55 -060051CELT_SOURCES += $(CELT_SOURCES_ARM_NEON_INTR)
Jonathan Lennox44e8e732015-12-22 19:21:44 -050052SILK_SOURCES += $(SILK_SOURCES_ARM_NEON_INTR)
Viswanath Puttagunta0b0a2b42014-12-19 17:25:55 -060053endif
54
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -050055if HAVE_ARM_NE10
56CELT_SOURCES += $(CELT_SOURCES_ARM_NE10)
57endif
58
Timothy B. Terriberry39386e02013-11-18 13:30:13 -050059if OPUS_ARM_EXTERNAL_ASM
Timothy B. Terriberry0fe51432015-10-06 13:16:24 -040060noinst_LTLIBRARIES = libarmasm.la
61libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S)
Timothy B. Terriberry39386e02013-11-18 13:30:13 -050062BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \
63 $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \
Timothy B. Terriberry7a0b6822013-11-18 14:10:57 -050064 $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S)
Timothy B. Terriberry39386e02013-11-18 13:30:13 -050065endif
Aurélien Zanellicd4c8242013-05-31 15:07:00 +020066endif
67
Ralph Gilesd5cb0632013-11-19 17:50:05 +130068CLEANFILES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \
69 $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S)
70
Ralph Gilescd539df2012-04-05 09:23:47 -070071include celt_headers.mk
72include silk_headers.mk
73include opus_headers.mk
Jean-Marc Valin3596fed2011-07-09 09:20:51 -040074
Jean-Marc Valin8e4f5a82011-04-30 00:35:55 -040075libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
Gregory Maxwell8d2e9ad2012-08-10 17:21:28 -040076libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -050077libopus_la_LIBADD = $(NE10_LIBS) $(LIBM)
Timothy B. Terriberry0fe51432015-10-06 13:16:24 -040078if OPUS_ARM_EXTERNAL_ASM
79libopus_la_LIBADD += libarmasm.la
80endif
Jean-Marc Valine05aaf22011-04-29 19:48:42 -040081
Jean-Marc Valin4923f3f2011-10-26 21:36:57 -040082pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
Jean-Marc Valine05aaf22011-04-29 19:48:42 -040083
Jean-Marc Valin3596fed2011-07-09 09:20:51 -040084noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
85
Aurélien Zanellifaec6732013-05-26 22:08:02 +020086if EXTRA_PROGRAMS
Ralph Gilese7ec9332012-11-30 18:00:38 -080087noinst_PROGRAMS = opus_demo repacketizer_demo opus_compare tests/test_opus_api tests/test_opus_encode tests/test_opus_decode tests/test_opus_padding 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
Jean-Marc Valine05aaf22011-04-29 19:48:42 -040088
Ralph Gilese7ec9332012-11-30 18:00:38 -080089TESTS = 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 tests/test_opus_padding
Jean-Marc Valine05aaf22011-04-29 19:48:42 -040090
Gregory Maxwella5ff49e2011-10-26 19:56:00 -040091opus_demo_SOURCES = src/opus_demo.c
92
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -050093opus_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Jean-Marc Valine8dbcb82011-08-10 09:47:30 -040094
Gregory Maxwell38805f32011-10-26 20:05:56 -040095repacketizer_demo_SOURCES = src/repacketizer_demo.c
Jean-Marc Valine8dbcb82011-08-10 09:47:30 -040096
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -050097repacketizer_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Ralph Giles9f713092011-08-28 22:32:13 +120098
Jean-Marc Valinc4ca21f2011-09-15 10:10:40 -070099opus_compare_SOURCES = src/opus_compare.c
Ron5bac4f22013-06-29 02:06:53 +0930100opus_compare_LDADD = $(LIBM)
Jean-Marc Valinc4ca21f2011-09-15 10:10:40 -0700101
Gregory Maxwell9652f812011-10-26 23:55:33 -0400102tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500103tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Gregory Maxwella5ff49e2011-10-26 19:56:00 -0400104
Gregory Maxwell9652f812011-10-26 23:55:33 -0400105tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500106tests_test_opus_encode_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Gregory Maxwella5ff49e2011-10-26 19:56:00 -0400107
Gregory Maxwell9652f812011-10-26 23:55:33 -0400108tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500109tests_test_opus_decode_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Gregory Maxwell9652f812011-10-26 23:55:33 -0400110
Ralph Gilese7ec9332012-11-30 18:00:38 -0800111tests_test_opus_padding_SOURCES = tests/test_opus_padding.c tests/test_opus_common.h
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500112tests_test_opus_padding_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
Ralph Gilese7ec9332012-11-30 18:00:38 -0800113
Gregory Maxwell9652f812011-10-26 23:55:33 -0400114celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
Ron5bac4f22013-06-29 02:06:53 +0930115celt_tests_test_unit_cwrs32_LDADD = $(LIBM)
Gregory Maxwell9652f812011-10-26 23:55:33 -0400116
117celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500118celt_tests_test_unit_dft_LDADD = $(NE10_LIBS) $(LIBM)
119if OPUS_ARM_EXTERNAL_ASM
120celt_tests_test_unit_dft_LDADD += libarmasm.la
121endif
Gregory Maxwell9652f812011-10-26 23:55:33 -0400122
123celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
Ron5bac4f22013-06-29 02:06:53 +0930124celt_tests_test_unit_entropy_LDADD = $(LIBM)
Gregory Maxwell9652f812011-10-26 23:55:33 -0400125
126celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
Ron5bac4f22013-06-29 02:06:53 +0930127celt_tests_test_unit_laplace_LDADD = $(LIBM)
Gregory Maxwell9652f812011-10-26 23:55:33 -0400128
129celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500130celt_tests_test_unit_mathops_LDADD = $(NE10_LIBS) $(LIBM)
Tristan Matthewsfd562ee2014-10-12 15:12:52 -0400131if OPUS_ARM_EXTERNAL_ASM
Timothy B. Terriberry0fe51432015-10-06 13:16:24 -0400132celt_tests_test_unit_mathops_LDADD += libarmasm.la
Tristan Matthewsfd562ee2014-10-12 15:12:52 -0400133endif
Gregory Maxwell9652f812011-10-26 23:55:33 -0400134
135celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500136celt_tests_test_unit_mdct_LDADD = $(NE10_LIBS) $(LIBM)
137if OPUS_ARM_EXTERNAL_ASM
138celt_tests_test_unit_mdct_LDADD += libarmasm.la
139endif
Gregory Maxwell9652f812011-10-26 23:55:33 -0400140
141celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500142celt_tests_test_unit_rotation_LDADD = $(NE10_LIBS) $(LIBM)
Tristan Matthewsfd562ee2014-10-12 15:12:52 -0400143if OPUS_ARM_EXTERNAL_ASM
Timothy B. Terriberry0fe51432015-10-06 13:16:24 -0400144celt_tests_test_unit_rotation_LDADD += libarmasm.la
Tristan Matthewsfd562ee2014-10-12 15:12:52 -0400145endif
Gregory Maxwell9652f812011-10-26 23:55:33 -0400146
147celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
Ron5bac4f22013-06-29 02:06:53 +0930148celt_tests_test_unit_types_LDADD = $(LIBM)
Aurélien Zanellifaec6732013-05-26 22:08:02 +0200149endif
Gregory Maxwella5ff49e2011-10-26 19:56:00 -0400150
Jean-Marc Valin06237d72011-09-01 13:20:40 -0400151if CUSTOM_MODES
Jean-Marc Valin4923f3f2011-10-26 21:36:57 -0400152pkginclude_HEADERS += include/opus_custom.h
Aurélien Zanellifaec6732013-05-26 22:08:02 +0200153if EXTRA_PROGRAMS
Gregory Maxwella5ff49e2011-10-26 19:56:00 -0400154noinst_PROGRAMS += opus_custom_demo
155opus_custom_demo_SOURCES = celt/opus_custom_demo.c
Ron5bac4f22013-06-29 02:06:53 +0930156opus_custom_demo_LDADD = libopus.la $(LIBM)
Jean-Marc Valin06237d72011-09-01 13:20:40 -0400157endif
Aurélien Zanellifaec6732013-05-26 22:08:02 +0200158endif
Jean-Marc Valin06237d72011-09-01 13:20:40 -0400159
Ralph Giles59c5a822012-08-16 11:39:56 -0700160EXTRA_DIST = version.mk \
Timothy B. Terriberry39386e02013-11-18 13:30:13 -0500161 opus.pc.in \
Gregory Maxwelle852c342012-08-09 07:29:58 -0400162 opus-uninstalled.pc.in \
Gregory Maxwell6e2dd162012-08-30 12:26:34 -0400163 opus.m4 \
Jean-Marc Valin45cbdff2015-02-11 14:10:03 -0500164 Makefile.mips \
Jean-Marc Valine91dfa02012-08-31 23:10:12 -0400165 Makefile.unix \
Gregory Maxwell1b58bc72012-08-19 16:45:20 -0400166 tests/run_vectors.sh \
Timothy B. Terriberry39386e02013-11-18 13:30:13 -0500167 celt/arm/arm2gnu.pl \
Ron135d1c92013-11-19 17:34:12 +1030168 celt/arm/celt_pitch_xcorr_arm.s \
Ralph Gilesa8f61152016-05-18 12:24:15 -0700169 win32/VS2015/silk_float.vcxproj \
170 win32/VS2015/celt.vcxproj.filters \
171 win32/VS2015/opus.vcxproj \
172 win32/VS2015/silk_common.vcxproj.filters \
173 win32/VS2015/silk_float.vcxproj.filters \
174 win32/VS2015/test_opus_encode.vcxproj.filters \
175 win32/VS2015/silk_common.vcxproj \
176 win32/VS2015/test_opus_encode.vcxproj \
177 win32/VS2015/opus_demo.vcxproj \
178 win32/VS2015/test_opus_api.vcxproj.filters \
179 win32/VS2015/test_opus_api.vcxproj \
180 win32/VS2015/test_opus_decode.vcxproj.filters \
181 win32/VS2015/silk_fixed.vcxproj.filters \
182 win32/VS2015/opus_demo.vcxproj.filters \
183 win32/VS2015/silk_fixed.vcxproj \
184 win32/VS2015/opus.vcxproj.filters \
185 win32/VS2015/test_opus_decode.vcxproj \
186 win32/VS2015/celt.vcxproj \
187 win32/VS2015/opus.sln \
Gregory Maxwelle852c342012-08-09 07:29:58 -0400188 win32/genversion.bat \
189 win32/config.h
Ralph Giles9f713092011-08-28 22:32:13 +1200190
191pkgconfigdir = $(libdir)/pkgconfig
192pkgconfig_DATA = opus.pc
Ronb6512b42012-05-21 23:16:39 +0930193
Gregory Maxwell6e2dd162012-08-30 12:26:34 -0400194m4datadir = $(datadir)/aclocal
195m4data_DATA = opus.m4
Ronb6512b42012-05-21 23:16:39 +0930196
197# Targets to build and install just the library without the docs
198opus check-opus install-opus: export NO_DOXYGEN = 1
199
200opus: all
201check-opus: check
202install-opus: install
203
204
205# Or just the docs
206docs:
Ronb371cf82012-10-18 14:05:55 +1030207 ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
Ronb6512b42012-05-21 23:16:39 +0930208
209install-docs:
Ronb371cf82012-10-18 14:05:55 +1030210 ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
Ronb6512b42012-05-21 23:16:39 +0930211
212
213# Or everything (by default)
214all-local:
Ronb371cf82012-10-18 14:05:55 +1030215 @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
Ronb6512b42012-05-21 23:16:39 +0930216
217install-data-local:
Ronb371cf82012-10-18 14:05:55 +1030218 @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
Ronb6512b42012-05-21 23:16:39 +0930219
220clean-local:
Ronb371cf82012-10-18 14:05:55 +1030221 -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean )
Ronb6512b42012-05-21 23:16:39 +0930222
223uninstall-local:
Ronb371cf82012-10-18 14:05:55 +1030224 ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall )
Ronb6512b42012-05-21 23:16:39 +0930225
226
Ron2f2f9d62013-05-11 02:05:24 +0930227# We check this every time make is run, with configure.ac being touched to
228# trigger an update of the build system files if update_version changes the
229# current PACKAGE_VERSION (or if package_version was modified manually by a
230# user with either AUTO_UPDATE=no or no update_version script present - the
231# latter being the normal case for tarball releases).
232#
233# We can't just add the package_version file to CONFIGURE_DEPENDENCIES since
234# simply running autoconf will not actually regenerate configure for us when
235# the content of that file changes (due to autoconf dependency checking not
236# knowing about that without us creating yet another file for it to include).
237#
238# The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for
239# makes that don't support it. The only loss of functionality is not forcing
240# an update of package_version for `make dist` if AUTO_UPDATE=no, but that is
241# unlikely to be a real problem for any real user.
242$(top_srcdir)/configure.ac: force
243 @case "$(MAKECMDGOALS)" in \
244 dist-hook) exit 0 ;; \
245 dist-* | dist | distcheck | distclean) _arg=release ;; \
246 esac; \
247 if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \
Ron8d925ec2013-05-11 07:33:03 +0930248 if [ ! -e $(top_srcdir)/package_version ]; then \
249 echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \
250 fi; \
Ron2f2f9d62013-05-11 02:05:24 +0930251 . $(top_srcdir)/package_version || exit 1; \
252 [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \
253 fi; \
254 touch $@
255
256force:
257
258# Create a minimal package_version file when make dist is run.
259dist-hook:
260 echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version
261
262
Ronb6512b42012-05-21 23:16:39 +0930263.PHONY: opus check-opus install-opus docs install-docs
Timothy B. Terriberry39386e02013-11-18 13:30:13 -0500264
265# automake doesn't do dependency tracking for asm files, that I can tell
266$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): celt/arm/armopts-gnu.S
267$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): $(top_srcdir)/celt/arm/arm2gnu.pl
268
269# convert ARM asm to GNU as format
270%-gnu.S: $(top_srcdir)/%.s
Martin Storsjo76e831d2014-03-19 21:36:39 +0200271 $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@
Timothy B. Terriberry39386e02013-11-18 13:30:13 -0500272# For autoconf-modified sources (e.g., armopts.s)
273%-gnu.S: %.s
Timothy B. Terriberry4ae4bc62014-03-26 12:58:04 -0700274 $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@
xiangmingzhuc95c9a02014-04-30 15:48:07 +0800275
Jonathan Lennoxcb0875e2015-08-03 17:04:26 -0400276OPT_UNIT_TEST_OBJ = $(celt_tests_test_unit_mathops_SOURCES:.c=.o) \
277 $(celt_tests_test_unit_rotation_SOURCES:.c=.o) \
278 $(celt_tests_test_unit_mdct_SOURCES:.c=.o) \
279 $(celt_tests_test_unit_dft_SOURCES:.c=.o)
280
281if HAVE_SSE
282SSE_OBJ = $(CELT_SOURCES_SSE:.c=.lo)
283$(SSE_OBJ) $(OPT_UNIT_TEST_OBJ): CFLAGS += $(OPUS_X86_SSE_CFLAGS)
284endif
285
286if HAVE_SSE2
287SSE2_OBJ = $(CELT_SOURCES_SSE2:.c=.lo)
288$(SSE2_OBJ) $(OPT_UNIT_TEST_OBJ): CFLAGS += $(OPUS_X86_SSE2_CFLAGS)
289endif
xiangmingzhuc95c9a02014-04-30 15:48:07 +0800290
291if HAVE_SSE4_1
Jonathan Lennoxcb0875e2015-08-03 17:04:26 -0400292SSE4_1_OBJ = $(CELT_SOURCES_SSE4_1:.c=.lo) \
293 $(SILK_SOURCES_SSE4_1:.c=.lo) \
294 $(SILK_SOURCES_FIXED_SSE4_1:.c=.lo)
295$(SSE4_1_OBJ) $(OPT_UNIT_TEST_OBJ): CFLAGS += $(OPUS_X86_SSE4_1_CFLAGS)
xiangmingzhuc95c9a02014-04-30 15:48:07 +0800296endif
Viswanath Puttagunta0b0a2b42014-12-19 17:25:55 -0600297
Jonathan Lennox8cb14872015-11-20 23:02:55 -0500298if HAVE_ARM_NEON_INTR
Jonathan Lennox44e8e732015-12-22 19:21:44 -0500299ARM_NEON_INTR_OBJ = $(CELT_SOURCES_ARM_NEON_INTR:.c=.lo) $(SILK_SOURCES_ARM_NEON_INTR:.c=.lo)
300$(ARM_NEON_INTR_OBJ) $(OPT_UNIT_TEST_OBJ): CFLAGS += \
Viswanath Puttaguntaf48abe82015-05-15 12:42:19 -0500301 $(OPUS_ARM_NEON_INTR_CFLAGS) $(NE10_CFLAGS)
Viswanath Puttagunta0b0a2b42014-12-19 17:25:55 -0600302endif