1 LOCAL_PATH := $(call my-dir) 2 3 mips_disassembler_TBLGEN_TABLES := \ 4 MipsGenDisassemblerTables.inc \ 5 MipsGenInstrInfo.inc \ 6 MipsGenRegisterInfo.inc \ 7 MipsGenSubtargetInfo.inc 8 9 mips_disassembler_SRC_FILES := \ 10 MipsDisassembler.cpp 11 12 # For the device 13 # ===================================================== 14 ifeq ($(TARGET_ARCH),mips) 15 include $(CLEAR_VARS) 16 include $(CLEAR_TBLGEN_VARS) 17 18 LOCAL_MODULE:= libLLVMMipsDisassembler 19 LOCAL_MODULE_TAGS := optional 20 21 LOCAL_SRC_FILES := $(mips_disassembler_SRC_FILES) 22 LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 23 24 TBLGEN_TABLES := $(mips_disassembler_TBLGEN_TABLES) 25 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 26 27 include $(LLVM_DEVICE_BUILD_MK) 28 include $(LLVM_TBLGEN_RULES_MK) 29 include $(BUILD_STATIC_LIBRARY) 30 endif 31 32 # For the host 33 # ===================================================== 34 include $(CLEAR_VARS) 35 include $(CLEAR_TBLGEN_VARS) 36 37 LOCAL_MODULE:= libLLVMMipsDisassembler 38 LOCAL_MODULE_TAGS := optional 39 40 LOCAL_SRC_FILES := $(mips_disassembler_SRC_FILES) 41 LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 42 43 TBLGEN_TABLES := $(mips_disassembler_TBLGEN_TABLES) 44 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 45 46 include $(LLVM_HOST_BUILD_MK) 47 include $(LLVM_TBLGEN_RULES_MK) 48 include $(BUILD_HOST_STATIC_LIBRARY) 49