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