1LOCAL_PATH := $(call my-dir) 2 3arm_disassembler_TBLGEN_TABLES := \ 4 ARMGenDecoderTables.inc \ 5 ARMGenEDInfo.inc \ 6 ARMGenInstrInfo.inc \ 7 ARMGenSubtargetInfo.inc \ 8 ARMGenRegisterInfo.inc 9 10arm_disassembler_SRC_FILES := \ 11 ARMDisassembler.cpp \ 12 ARMDisassemblerCore.cpp 13 14# For the device 15# ===================================================== 16ifeq ($(TARGET_ARCH),arm) 17include $(CLEAR_VARS) 18include $(CLEAR_TBLGEN_VARS) 19 20TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES) 21 22TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 23 24LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES) 25 26LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 27 28LOCAL_MODULE:= libLLVMARMDisassembler 29 30LOCAL_MODULE_TAGS := optional 31 32include $(LLVM_DEVICE_BUILD_MK) 33include $(LLVM_TBLGEN_RULES_MK) 34include $(BUILD_STATIC_LIBRARY) 35endif 36 37# For the host 38# ===================================================== 39include $(CLEAR_VARS) 40include $(CLEAR_TBLGEN_VARS) 41 42TBLGEN_TABLES := $(arm_disassembler_TBLGEN_TABLES) 43 44TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 45 46LOCAL_SRC_FILES := $(arm_disassembler_SRC_FILES) 47 48LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 49 50LOCAL_MODULE:= libLLVMARMDisassembler 51 52LOCAL_MODULE_TAGS := optional 53 54include $(LLVM_HOST_BUILD_MK) 55include $(LLVM_TBLGEN_RULES_MK) 56include $(BUILD_HOST_STATIC_LIBRARY) 57 58