2012-05-29 19:52:43 +04: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/.
|
2010-06-09 03:31:28 +04:00
|
|
|
|
2014-10-17 00:39:20 +04:00
|
|
|
# Set up the libvpx assembler config.
|
|
|
|
|
2010-06-09 03:31:28 +04:00
|
|
|
AS=$(VPX_AS)
|
2010-11-08 10:47:17 +03:00
|
|
|
ASM_SUFFIX=$(VPX_ASM_SUFFIX)
|
2010-06-09 03:31:28 +04:00
|
|
|
|
2010-11-08 10:47:17 +03:00
|
|
|
ifdef VPX_ARM_ASM
|
|
|
|
# Building on an ARM platform with a supported assembler, include
|
|
|
|
# the optimized assembly in the build.
|
|
|
|
|
|
|
|
ifeq ($(OS_TARGET),Android)
|
2012-04-30 07:51:44 +04:00
|
|
|
# For cpu-features.h
|
|
|
|
LOCAL_INCLUDES += -I$(ANDROID_NDK)/sources/android/cpufeatures
|
2010-11-08 10:47:17 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef VPX_AS_CONVERSION
|
|
|
|
# The ARM asm is written in ARM RVCT syntax, but we actually build it with
|
|
|
|
# gas using GNU syntax. Add some rules to perform the conversion.
|
|
|
|
|
2013-11-29 18:02:00 +04:00
|
|
|
GENERATED_DIRS += $(dir $(ASFILES))
|
2010-11-08 10:47:17 +03:00
|
|
|
|
2013-11-29 18:02:00 +04:00
|
|
|
%.asm.$(ASM_SUFFIX): %.asm $(ASM_OFFSETS)
|
2010-11-08 10:47:17 +03:00
|
|
|
$(VPX_AS_CONVERSION) < $< > $@
|
|
|
|
|
2012-04-30 07:51:44 +04:00
|
|
|
endif
|
2010-11-08 10:47:17 +03:00
|
|
|
endif
|
|
|
|
|
2010-06-09 03:31:28 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-08-06 11:03:02 +04:00
|
|
|
|
|
|
|
# Workaround a bug of Sun Studio (CR 6963410)
|
|
|
|
ifdef SOLARIS_SUNPRO_CC
|
|
|
|
ifeq (86,$(findstring 86,$(OS_TEST)))
|
2011-10-14 04:37:34 +04:00
|
|
|
filter.o: filter.c Makefile.in
|
2011-12-08 22:14:06 +04:00
|
|
|
$(REPORT_BUILD)
|
2010-08-06 11:03:02 +04:00
|
|
|
@$(MAKE_DEPS_AUTO_CC)
|
|
|
|
$(CC) -o $@ -c $(patsubst -xO[45],-xO3,$(COMPILE_CFLAGS)) $<
|
|
|
|
endif
|
|
|
|
endif
|