tenfourfox/media/libvpx/Makefile.in

58 lines
1.4 KiB
Makefile

# 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/.
# Alter the build settings here for VMX if enabled so that they propagate.
ifdef VPX_VMX_ASM
# For PPC, use the Tiger dumb-as.
VPX_AS=gcc
VPX_ASM_SUFFIX=s
endif
ifdef VPX_X86_ASM
# TO DO - pass these in as an environment variable
CC=clang-mp-3.4
CC += -arch i386
CC += -O3
VPX_AS=yasm
VPX_ASM_SUFFIX=asm
endif
# Set up the libvpx assembler config.
AS=$(VPX_AS)
ASM_SUFFIX=$(VPX_ASM_SUFFIX)
ifdef VPX_ARM_ASM
# Building on an ARM platform with a supported assembler, include
# the optimized assembly in the build.
ifeq ($(OS_TARGET),Android)
# For cpu-features.h
LOCAL_INCLUDES += -I$(ANDROID_NDK)/sources/android/cpufeatures
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.
GENERATED_DIRS += $(dir $(ASFILES))
%.asm.$(ASM_SUFFIX): %.asm $(ASM_OFFSETS)
$(VPX_AS_CONVERSION) < $< > $@
endif
endif
include $(topsrcdir)/config/rules.mk
# Workaround a bug of Sun Studio (CR 6963410)
ifdef SOLARIS_SUNPRO_CC
ifeq (86,$(findstring 86,$(OS_TEST)))
filter.o: filter.c Makefile.in
$(REPORT_BUILD)
@$(MAKE_DEPS_AUTO_CC)
$(CC) -o $@ -c $(patsubst -xO[45],-xO3,$(COMPILE_CFLAGS)) $<
endif
endif