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 X86MCTargetDesc.cpp \ 12 X86MCAsmInfo.cpp \ 13 X86MCCodeEmitter.cpp \ 14 X86MachObjectWriter.cpp \ 15 X86WinCOFFObjectWriter.cpp 16 17# For the host 18# ===================================================== 19include $(CLEAR_VARS) 20include $(CLEAR_TBLGEN_VARS) 21 22LOCAL_MODULE:= libLLVMX86Desc 23LOCAL_MODULE_TAGS := optional 24 25LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 26LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 27TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 28TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 29 30include $(LLVM_HOST_BUILD_MK) 31include $(LLVM_TBLGEN_RULES_MK) 32include $(LLVM_GEN_INTRINSICS_MK) 33include $(BUILD_HOST_STATIC_LIBRARY) 34 35# For the device only 36# ===================================================== 37ifeq ($(TARGET_ARCH),x86) 38include $(CLEAR_VARS) 39include $(CLEAR_TBLGEN_VARS) 40 41 42LOCAL_MODULE:= libLLVMX86Desc 43LOCAL_MODULE_TAGS := optional 44 45LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES) 46LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 47TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES) 48TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 49 50include $(LLVM_DEVICE_BUILD_MK) 51include $(LLVM_TBLGEN_RULES_MK) 52include $(LLVM_GEN_INTRINSICS_MK) 53include $(BUILD_STATIC_LIBRARY) 54endif 55