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