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 MipsABIFlagsSection.cpp \ 11 MipsABIInfo.cpp \ 12 MipsAsmBackend.cpp \ 13 MipsELFObjectWriter.cpp \ 14 MipsELFStreamer.cpp \ 15 MipsMCAsmInfo.cpp \ 16 MipsMCCodeEmitter.cpp \ 17 MipsMCExpr.cpp \ 18 MipsMCTargetDesc.cpp \ 19 MipsOptionRecord.cpp \ 20 MipsNaClELFStreamer.cpp \ 21 MipsTargetStreamer.cpp 22 23 # For the host 24 # ===================================================== 25 include $(CLEAR_VARS) 26 include $(CLEAR_TBLGEN_VARS) 27 28 LOCAL_MODULE:= libLLVMMipsDesc 29 LOCAL_MODULE_HOST_OS := darwin linux windows 30 31 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) 32 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 33 34 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 35 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) 36 37 include $(LLVM_HOST_BUILD_MK) 38 include $(LLVM_TBLGEN_RULES_MK) 39 include $(LLVM_GEN_ATTRIBUTES_MK) 40 include $(LLVM_GEN_INTRINSICS_MK) 41 include $(BUILD_HOST_STATIC_LIBRARY) 42 43 # For the device only 44 # ===================================================== 45 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 46 include $(CLEAR_VARS) 47 include $(CLEAR_TBLGEN_VARS) 48 49 LOCAL_MODULE:= libLLVMMipsDesc 50 51 LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) 52 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 53 54 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 55 TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) 56 57 include $(LLVM_DEVICE_BUILD_MK) 58 include $(LLVM_TBLGEN_RULES_MK) 59 include $(LLVM_GEN_ATTRIBUTES_MK) 60 include $(LLVM_GEN_INTRINSICS_MK) 61 include $(BUILD_STATIC_LIBRARY) 62 endif 63