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