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 X86WinCOFFStreamer.cpp 19 20 # For the host 21 # ===================================================== 22 include $(CLEAR_VARS) 23 include $(CLEAR_TBLGEN_VARS) 24 25 LOCAL_MODULE:= libLLVMX86Desc 26 LOCAL_MODULE_TAGS := optional 27 28 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 29 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 30 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 31 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 32 33 include $(LLVM_HOST_BUILD_MK) 34 include $(LLVM_TBLGEN_RULES_MK) 35 include $(LLVM_GEN_INTRINSICS_MK) 36 include $(BUILD_HOST_STATIC_LIBRARY) 37 38 # For the device only 39 # ===================================================== 40 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 41 include $(CLEAR_VARS) 42 include $(CLEAR_TBLGEN_VARS) 43 44 45 LOCAL_MODULE:= libLLVMX86Desc 46 LOCAL_MODULE_TAGS := optional 47 48 LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 49 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 50 TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 51 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 52 53 include $(LLVM_DEVICE_BUILD_MK) 54 include $(LLVM_TBLGEN_RULES_MK) 55 include $(LLVM_GEN_INTRINSICS_MK) 56 include $(BUILD_STATIC_LIBRARY) 57 endif 58