2012-05-29 15:52:43 +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/.
|
2008-07-30 06:38:23 +00:00
|
|
|
|
|
|
|
|
2010-11-08 07:47:34 +00:00
|
|
|
ifdef GNU_AS
|
2014-01-23 07:50:30 +00:00
|
|
|
ifeq ($(CPU_ARCH),arm)
|
2010-11-08 07:47:34 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
armfrag-gnu.$(ASM_SUFFIX): armopts-gnu.S
|
|
|
|
armidct-gnu.$(ASM_SUFFIX): armopts-gnu.S
|
|
|
|
armloop-gnu.$(ASM_SUFFIX): armopts-gnu.S
|
|
|
|
|
|
|
|
# armopts needs a specific rule, because arm2gnu.pl will always add the .S
|
|
|
|
# suffix when translating the files that include it.
|
2013-11-01 01:30:45 +00:00
|
|
|
armopts-gnu.S: arm/armopts.s
|
2010-11-08 07:47:34 +00:00
|
|
|
$(PERL) $(srcdir)/arm/arm2gnu.pl < $< > $@
|
|
|
|
# For all others, we can use an implicit rule with the configured $(ASM_SUFFIX).
|
2013-11-01 01:30:45 +00:00
|
|
|
%-gnu.$(ASM_SUFFIX): arm/%.s
|
2010-11-08 07:47:34 +00:00
|
|
|
$(PERL) $(srcdir)/arm/arm2gnu.pl < $< > $@
|
|
|
|
|
2008-07-30 06:38:23 +00:00
|
|
|
endif
|
2009-06-19 03:03:45 +00:00
|
|
|
endif
|
2008-07-30 06:38:23 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|