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