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 31include $(LLVM_DEVICE_BUILD_MK) 32include $(LLVM_TBLGEN_RULES_MK) 33include $(BUILD_STATIC_LIBRARY) 34endif 35 36# For the host 37# ===================================================== 38include $(CLEAR_VARS) 39include $(CLEAR_TBLGEN_VARS) 40 41TBLGEN_TABLES := $(x86_instprinter_TBLGEN_TABLES) 42 43TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 44 45LOCAL_SRC_FILES := $(x86_instprinter_SRC_FILES) 46 47LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 48 49LOCAL_MODULE := libLLVMX86AsmPrinter 50 51LOCAL_MODULE_HOST_OS := darwin linux windows 52 53include $(LLVM_HOST_BUILD_MK) 54include $(LLVM_TBLGEN_RULES_MK) 55include $(BUILD_HOST_STATIC_LIBRARY) 56