1 LOCAL_PATH := $(call my-dir) 2 3 mips_mc_desc_TBLGEN_TABLES := \ 4 MipsGenRegisterInfo.inc \ 5 MipsGenInstrInfo.inc \ 6 MipsGenMCCodeEmitter.inc \ 7 MipsGenSubtargetInfo.inc 8 9 mips_mc_desc_SRC_FILES := \ 10 MipsAsmBackend.cpp \ 11 MipsELFObjectWriter.cpp \ 12 MipsELFStreamer.cpp \ 13 MipsMCAsmInfo.cpp \ 14 MipsMCCodeEmitter.cpp \ 15 MipsMCTargetDesc.cpp \ 16 MipsReginfo.cpp 17 18 # For the host 19 # ===================================================== 20 include $(CLEAR_VARS) 21 include $(CLEAR_TBLGEN_VARS) 22 23 LOCAL_MODULE:= libLLVMMipsDesc 24 LOCAL_MODULE_TAGS := optional 25 26 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) 27 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 28 29 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 30 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) 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),mips) 40 include $(CLEAR_VARS) 41 include $(CLEAR_TBLGEN_VARS) 42 43 LOCAL_MODULE:= libLLVMMipsDesc 44 LOCAL_MODULE_TAGS := optional 45 46 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) 47 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 48 49 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 50 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) 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