Home | History | Annotate | Download | only in qemu
      1 # this sub-Makefile is included to define a dynamic translating library
      2 #
      3 EMULATOR_OP_LIBRARIES := $(EMULATOR_OP_LIBRARIES) $(LOCAL_MODULE)
      4 
      5 # we need to compile this with GCC-3.3 preferabbly
      6 #
      7 LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
      8 LOCAL_CC                        := $(MY_CC)
      9 
     10 LOCAL_LDFLAGS += $(my_32bit_ldflags)
     11 LOCAL_CFLAGS += $(my_32bit_cflags) $(OP_CFLAGS)
     12 
     13 INTERMEDIATE := $(call intermediates-dir-for,STATIC_LIBRARIES,$(LOCAL_MODULE),true)
     14 OP_OBJ       := $(INTERMEDIATE)/target-arm/op.o
     15 
     16 LOCAL_CFLAGS += -I$(INTERMEDIATE)
     17 
     18 OP_H     := $(INTERMEDIATE)/op$(OP_SUFFIX).h
     19 OPC_H    := $(INTERMEDIATE)/opc$(OP_SUFFIX).h
     20 GEN_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 
     31 TRANSLATE_SOURCES := target-arm/translate.c \
     32                      translate-all.c \
     33                      translate-op.c
     34 
     35 LOCAL_SRC_FILES += target-arm/op.c  $(TRANSLATE_SOURCES)
     36 
     37 $(TRANSLATE_SOURCES:%.c=$(INTERMEDIATE)/%.o): $(OP_H) $(OPC_H) $(GEN_OP_H)
     38