1 LOCAL_PATH := $(call my-dir) 2 3 x86_mc_desc_TBLGEN_TABLES := \ 4 X86GenRegisterInfo.inc \ 5 X86GenInstrInfo.inc \ 6 X86GenSubtargetInfo.inc 7 8 x86_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 19 # For the host 20 # ===================================================== 21 include $(CLEAR_VARS) 22 include $(CLEAR_TBLGEN_VARS) 23 24 LOCAL_MODULE:= libLLVMX86Desc 25 LOCAL_MODULE_TAGS := optional 26 27 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 28 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 29 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 30 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 31 32 include $(LLVM_HOST_BUILD_MK) 33 include $(LLVM_TBLGEN_RULES_MK) 34 include $(LLVM_GEN_INTRINSICS_MK) 35 include $(BUILD_HOST_STATIC_LIBRARY) 36 37 # For the device only 38 # ===================================================== 39 ifeq ($(TARGET_ARCH),x86) 40 include $(CLEAR_VARS) 41 include $(CLEAR_TBLGEN_VARS) 42 43 44 LOCAL_MODULE:= libLLVMX86Desc 45 LOCAL_MODULE_TAGS := optional 46 47 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 48 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 49 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 50 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 51 52 include $(LLVM_DEVICE_BUILD_MK) 53 include $(LLVM_TBLGEN_RULES_MK) 54 include $(LLVM_GEN_INTRINSICS_MK) 55 include $(BUILD_STATIC_LIBRARY) 56 endif 57