• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# this sub-Makefile is included to define a dynamic translating library
2#
3EMULATOR_OP_LIBRARIES := $(EMULATOR_OP_LIBRARIES) $(LOCAL_MODULE)
4
5# we need to compile this with GCC-3.3 preferabbly
6#
7LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
8LOCAL_CC                        := $(MY_CC)
9
10LOCAL_LDFLAGS += $(my_32bit_ldflags)
11LOCAL_CFLAGS += $(my_32bit_cflags) $(OP_CFLAGS)
12
13INTERMEDIATE := $(call intermediates-dir-for,STATIC_LIBRARIES,$(LOCAL_MODULE),true)
14OP_OBJ       := $(INTERMEDIATE)/target-arm/op.o
15
16LOCAL_CFLAGS += -I$(INTERMEDIATE)
17
18OP_H     := $(INTERMEDIATE)/op$(OP_SUFFIX).h
19OPC_H    := $(INTERMEDIATE)/opc$(OP_SUFFIX).h
20GEN_OP_H := $(INTERMEDIATE)/gen-op$(OP_SUFFIX).h
21
22$(OP_H): $(OP_OBJ) $(DYNGEN)
23	$(DYNGEN) -o $@ $<
24
25$(OPC_H): $(OP_OBJ) $(DYNGEN)
26	$(DYNGEN) -c -o $@ $<
27
28$(GEN_OP_H): $(OP_OBJ) $(DYNGEN)
29	$(DYNGEN) -g -o $@ $<
30
31TRANSLATE_SOURCES := target-arm/translate.c \
32                     translate-all.c \
33                     translate-op.c
34
35LOCAL_SRC_FILES += target-arm/op.c  $(TRANSLATE_SOURCES)
36
37$(TRANSLATE_SOURCES:%.c=$(INTERMEDIATE)/%.o): $(OP_H) $(OPC_H) $(GEN_OP_H)
38