2014-03-06 00:44:42 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2014-06-13 01:05:26 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2014-03-06 00:44:42 +00:00
|
|
|
|
|
|
|
ifdef GNU_AS
|
|
|
|
ifeq ($(CPU_ARCH),arm)
|
|
|
|
|
|
|
|
# These flags are a lie; they're just used to enable the requisite
|
|
|
|
# opcodes; actual arch detection is done at runtime.
|
|
|
|
ASFLAGS = -march=armv7-a -mfpu=neon
|
|
|
|
|
2014-06-13 01:05:26 +00:00
|
|
|
celt_pitch_xcorr_arm-gnu.$(ASM_SUFFIX): celt/arm/armopts-gnu.S
|
2014-03-06 00:44:42 +00:00
|
|
|
|
|
|
|
# armopts needs a specific rule, because arm2gnu.pl will always add the .S
|
|
|
|
# suffix when translating the files that include it.
|
2014-06-13 01:05:26 +00:00
|
|
|
celt/arm/armopts-gnu.S: celt/arm/armopts.s $(call mkdir_deps,celt/arm) $(GLOBAL_DEPS)
|
2014-03-06 00:44:42 +00:00
|
|
|
$(PERL) $(srcdir)/celt/arm/arm2gnu.pl < $< > $@
|
|
|
|
# For all others, we can use an implicit rule with the configured $(ASM_SUFFIX).
|
2014-06-13 01:05:26 +00:00
|
|
|
%-gnu.$(ASM_SUFFIX): celt/arm/%.s $(GLOBAL_DEPS)
|
2014-03-06 00:44:42 +00:00
|
|
|
$(PERL) $(srcdir)/celt/arm/arm2gnu.pl < $< > $@
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|