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