From 8b23a6c7e1aee255004dd19098d4c2462b61b849 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Tue, 3 Mar 2009 19:30:32 -0800 Subject: auto import from //depot/cupcake/@135843 --- translate.make | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 translate.make (limited to 'translate.make') diff --git a/translate.make b/translate.make new file mode 100644 index 0000000..cba105f --- /dev/null +++ b/translate.make @@ -0,0 +1,37 @@ +# this sub-Makefile is included to define a dynamic translating library +# +EMULATOR_OP_LIBRARIES := $(EMULATOR_OP_LIBRARIES) $(LOCAL_MODULE) + +# we need to compile this with GCC-3.3 preferabbly +# +LOCAL_NO_DEFAULT_COMPILER_FLAGS := true +LOCAL_CC := $(MY_CC) + +LOCAL_LDFLAGS += $(my_32bit_ldflags) +LOCAL_CFLAGS += $(my_32bit_cflags) $(OP_CFLAGS) + +INTERMEDIATE := $(call intermediates-dir-for,STATIC_LIBRARIES,$(LOCAL_MODULE),true) +OP_OBJ := $(INTERMEDIATE)/target-arm/op.o + +LOCAL_CFLAGS += -I$(INTERMEDIATE) + +OP_H := $(INTERMEDIATE)/op$(OP_SUFFIX).h +OPC_H := $(INTERMEDIATE)/opc$(OP_SUFFIX).h +GEN_OP_H := $(INTERMEDIATE)/gen-op$(OP_SUFFIX).h + +$(OP_H): $(OP_OBJ) $(DYNGEN) + $(DYNGEN) -o $@ $< + +$(OPC_H): $(OP_OBJ) $(DYNGEN) + $(DYNGEN) -c -o $@ $< + +$(GEN_OP_H): $(OP_OBJ) $(DYNGEN) + $(DYNGEN) -g -o $@ $< + +TRANSLATE_SOURCES := target-arm/translate.c \ + translate-all.c \ + translate-op.c + +LOCAL_SRC_FILES += target-arm/op.c $(TRANSLATE_SOURCES) + +$(TRANSLATE_SOURCES:%.c=$(INTERMEDIATE)/%.o): $(OP_H) $(OPC_H) $(GEN_OP_H) -- cgit v1.1