Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | mips_codegen_TBLGEN_TABLES := \ |
| 4 | MipsGenRegisterInfo.inc \ |
| 5 | MipsGenInstrInfo.inc \ |
| 6 | MipsGenCodeEmitter.inc \ |
| 7 | MipsGenMCCodeEmitter.inc \ |
| 8 | MipsGenAsmWriter.inc \ |
| 9 | MipsGenDAGISel.inc \ |
| 10 | MipsGenCallingConv.inc \ |
| 11 | MipsGenSubtargetInfo.inc |
| 12 | |
| 13 | mips_codegen_SRC_FILES := \ |
| 14 | MipsAsmPrinter.cpp \ |
| 15 | MipsCodeEmitter.cpp \ |
| 16 | MipsDelaySlotFiller.cpp \ |
| 17 | MipsEmitGPRestore.cpp \ |
| 18 | MipsExpandPseudo.cpp \ |
| 19 | MipsJITInfo.cpp \ |
| 20 | MipsInstrInfo.cpp \ |
| 21 | MipsISelDAGToDAG.cpp \ |
| 22 | MipsISelLowering.cpp \ |
| 23 | MipsFrameLowering.cpp \ |
| 24 | MipsMCInstLower.cpp \ |
| 25 | MipsRegisterInfo.cpp \ |
| 26 | MipsSubtarget.cpp \ |
| 27 | MipsTargetMachine.cpp \ |
| 28 | MipsTargetObjectFile.cpp \ |
| 29 | MipsSelectionDAGInfo.cpp |
| 30 | |
| 31 | # For the host |
| 32 | # ===================================================== |
| 33 | include $(CLEAR_VARS) |
| 34 | include $(CLEAR_TBLGEN_VARS) |
| 35 | |
| 36 | LOCAL_MODULE:= libLLVMMipsCodeGen |
| 37 | LOCAL_MODULE_TAGS := optional |
| 38 | |
| 39 | LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES) |
| 40 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc |
| 41 | |
| 42 | TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES) |
| 43 | |
| 44 | include $(LLVM_HOST_BUILD_MK) |
| 45 | include $(LLVM_TBLGEN_RULES_MK) |
| 46 | include $(LLVM_GEN_INTRINSICS_MK) |
| 47 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 48 | |
| 49 | # For the device only |
| 50 | # ===================================================== |
| 51 | ifeq ($(TARGET_ARCH),mips) |
| 52 | include $(CLEAR_VARS) |
| 53 | include $(CLEAR_TBLGEN_VARS) |
| 54 | |
| 55 | LOCAL_MODULE:= libLLVMMipsCodeGen |
| 56 | LOCAL_MODULE_TAGS := optional |
| 57 | |
| 58 | LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES) |
| 59 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc |
| 60 | |
| 61 | TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES) |
| 62 | |
| 63 | include $(LLVM_DEVICE_BUILD_MK) |
| 64 | include $(LLVM_TBLGEN_RULES_MK) |
| 65 | include $(LLVM_GEN_INTRINSICS_MK) |
| 66 | include $(BUILD_STATIC_LIBRARY) |
| 67 | endif |