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