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