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