summaryrefslogtreecommitdiff
path: root/libs.mk
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2011-02-04 17:44:31 -0500
committerJohann <johannkoenig@google.com>2011-02-08 16:35:43 -0500
commit40dcae9c2e55185f94dd9d02810bb0756adcce57 (patch)
tree7596bfddbca394a2517bcb38d77e508a2d37b004 /libs.mk
parent3273c7b679df4d2f51adaee8ea5fec4ede6e4109 (diff)
downloadlibvpx-40dcae9c2e55185f94dd9d02810bb0756adcce57.tar
libvpx-40dcae9c2e55185f94dd9d02810bb0756adcce57.tar.gz
libvpx-40dcae9c2e55185f94dd9d02810bb0756adcce57.tar.bz2
libvpx-40dcae9c2e55185f94dd9d02810bb0756adcce57.zip
clarify *_offsets.asm differences
it's difficult to mux the *_offsets.c files because of header conflicts. make three instead, name them consistently and partititon the contents to allow building them as required. Change-Id: I8f9768c09279f934f44b6c5b0ec363f7943bb796
Diffstat (limited to 'libs.mk')
-rw-r--r--libs.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/libs.mk b/libs.mk
index d966f3477..338822cda 100644
--- a/libs.mk
+++ b/libs.mk
@@ -233,6 +233,36 @@ endif
$(filter %.s.o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm
$(filter %.asm.o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm
+#
+# Calculate platform- and compiler-specific offsets for hand coded assembly
+#
+ifeq ($(ARCH_ARM), yes)
+ asm_com_offsets.asm: obj_int_extract
+ asm_com_offsets.asm: $(VP8_PREFIX)common/asm_com_offsets.c.o
+ ./obj_int_extract rvds $< $(ADS2GAS) > $@
+ OBJS-yes += $(VP8_PREFIX)common/asm_com_offsets.c.o
+ CLEAN-OBJS += asm_com_offsets.asm
+ $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_com_offsets.asm
+
+ ifeq ($(CONFIG_VP8_ENCODER), yes)
+ asm_enc_offsets.asm: obj_int_extract
+ asm_enc_offsets.asm: $(VP8_PREFIX)encoder/asm_enc_offsets.c.o
+ ./obj_int_extract rvds $< $(ADS2GAS) > $@
+ OBJS-yes += $(VP8_PREFIX)encoder/asm_enc_offsets.c.o
+ CLEAN-OBJS += asm_enc_offsets.asm
+ $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_enc_offsets.asm
+ endif
+
+ ifeq ($(CONFIG_VP8_DECODER), yes)
+ asm_dec_offsets.asm: obj_int_extract
+ asm_dec_offsets.asm: $(VP8_PREFIX)decoder/asm_dec_offsets.c.o
+ ./obj_int_extract rvds $< $(ADS2GAS) > $@
+ OBJS-yes += $(VP8_PREFIX)decoder/asm_dec_offsets.c.o
+ CLEAN-OBJS += asm_dec_offsets.asm
+ $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_dec_offsets.asm
+ endif
+endif
+
$(shell $(SRC_PATH_BARE)/build/make/version.sh "$(SRC_PATH_BARE)" $(BUILD_PFX)vpx_version.h)
CLEAN-OBJS += $(BUILD_PFX)vpx_version.h