1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libopus/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 + 1.9 +ifdef GNU_AS 1.10 +ifeq ($(CPU_ARCH),arm) 1.11 + 1.12 +# These flags are a lie; they're just used to enable the requisite 1.13 +# opcodes; actual arch detection is done at runtime. 1.14 +ASFLAGS = -march=armv7-a -mfpu=neon 1.15 + 1.16 +celt_pitch_xcorr_arm-gnu.$(ASM_SUFFIX): celt_arm_dir celt/arm/armopts-gnu.S 1.17 + 1.18 +# we need to throw this here because upstream has this path hardcoded 1.19 +celt_arm_dir: 1.20 + mkdir -p celt/arm 1.21 + 1.22 +# armopts needs a specific rule, because arm2gnu.pl will always add the .S 1.23 +# suffix when translating the files that include it. 1.24 +celt/arm/armopts-gnu.S: celt/arm/armopts.s 1.25 + $(PERL) $(srcdir)/celt/arm/arm2gnu.pl < $< > $@ 1.26 +# For all others, we can use an implicit rule with the configured $(ASM_SUFFIX). 1.27 +%-gnu.$(ASM_SUFFIX): celt/arm/%.s 1.28 + $(PERL) $(srcdir)/celt/arm/arm2gnu.pl < $< > $@ 1.29 + 1.30 +endif 1.31 +endif 1.32 + 1.33 +include $(topsrcdir)/config/rules.mk