Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 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 \ |
Stephen Hines | 3aef703 | 2013-01-08 23:43:13 -0800 | [diff] [blame] | 11 | MipsDirectObjLower.cpp \ |
Stephen Hines | 8019aac | 2012-03-05 15:03:32 -0800 | [diff] [blame] | 12 | MipsELFObjectWriter.cpp \ |
Stephen Hines | 2123c1c | 2013-03-05 23:29:52 -0800 | [diff] [blame^] | 13 | MipsELFStreamer.cpp \ |
Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 14 | MipsMCAsmInfo.cpp \ |
| 15 | MipsMCCodeEmitter.cpp \ |
Stephen Hines | 2123c1c | 2013-03-05 23:29:52 -0800 | [diff] [blame^] | 16 | MipsMCTargetDesc.cpp \ |
| 17 | MipsReginfo.cpp |
Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 18 | |
| 19 | # For the host |
| 20 | # ===================================================== |
| 21 | include $(CLEAR_VARS) |
| 22 | include $(CLEAR_TBLGEN_VARS) |
| 23 | |
| 24 | LOCAL_MODULE:= libLLVMMipsDesc |
| 25 | LOCAL_MODULE_TAGS := optional |
| 26 | |
| 27 | LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) |
| 28 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. |
| 29 | |
| 30 | TBLGEN_TD_DIR := $(LOCAL_PATH)/.. |
| 31 | TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) |
| 32 | |
| 33 | include $(LLVM_HOST_BUILD_MK) |
| 34 | include $(LLVM_TBLGEN_RULES_MK) |
| 35 | include $(LLVM_GEN_INTRINSICS_MK) |
| 36 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 37 | |
| 38 | # For the device only |
| 39 | # ===================================================== |
| 40 | ifeq ($(TARGET_ARCH),mips) |
| 41 | include $(CLEAR_VARS) |
| 42 | include $(CLEAR_TBLGEN_VARS) |
| 43 | |
| 44 | LOCAL_MODULE:= libLLVMMipsDesc |
| 45 | LOCAL_MODULE_TAGS := optional |
| 46 | |
| 47 | LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES) |
| 48 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. |
| 49 | |
| 50 | TBLGEN_TD_DIR := $(LOCAL_PATH)/.. |
| 51 | TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES) |
| 52 | |
| 53 | include $(LLVM_DEVICE_BUILD_MK) |
| 54 | include $(LLVM_TBLGEN_RULES_MK) |
| 55 | include $(LLVM_GEN_INTRINSICS_MK) |
| 56 | include $(BUILD_STATIC_LIBRARY) |
| 57 | endif |