| 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 \ |
| Stephen Hines | 3aef703 | 2013-01-08 23:43:13 -0800 | [diff] [blame] | 8 | MipsGenMCPseudoLowering.inc \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 9 | MipsGenAsmWriter.inc \ |
| 10 | MipsGenDAGISel.inc \ |
| 11 | MipsGenCallingConv.inc \ |
| 12 | MipsGenSubtargetInfo.inc |
| 13 | |
| 14 | mips_codegen_SRC_FILES := \ |
| Stephen Hines | 68aeecc | 2012-09-10 20:13:51 -0700 | [diff] [blame] | 15 | Mips16FrameLowering.cpp \ |
| Stephen Hines | d212f3f | 2013-03-18 17:55:03 -0700 | [diff] [blame] | 16 | Mips16ISelDAGToDAG.cpp \ |
| 17 | Mips16ISelLowering.cpp \ |
| Stephen Hines | 68aeecc | 2012-09-10 20:13:51 -0700 | [diff] [blame] | 18 | Mips16InstrInfo.cpp \ |
| 19 | Mips16RegisterInfo.cpp \ |
| Stephen Hines | 8019aac | 2012-03-05 15:03:32 -0800 | [diff] [blame] | 20 | MipsAnalyzeImmediate.cpp \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 21 | MipsAsmPrinter.cpp \ |
| 22 | MipsCodeEmitter.cpp \ |
| Stephen Hines | d212f3f | 2013-03-18 17:55:03 -0700 | [diff] [blame] | 23 | MipsConstantIslandPass.cpp \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 24 | MipsDelaySlotFiller.cpp \ |
| Shih-wei Liao | c3f0e98 | 2012-08-03 01:17:37 -0700 | [diff] [blame] | 25 | MipsFrameLowering.cpp \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 26 | MipsInstrInfo.cpp \ |
| 27 | MipsISelDAGToDAG.cpp \ |
| 28 | MipsISelLowering.cpp \ |
| Shih-wei Liao | c3f0e98 | 2012-08-03 01:17:37 -0700 | [diff] [blame] | 29 | MipsJITInfo.cpp \ |
| 30 | MipsLongBranch.cpp \ |
| Stephen Hines | 8019aac | 2012-03-05 15:03:32 -0800 | [diff] [blame] | 31 | MipsMachineFunction.cpp \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 32 | MipsMCInstLower.cpp \ |
| Stephen Hines | 9dbeb69 | 2013-05-03 13:11:35 -0700 | [diff] [blame^] | 33 | MipsModuleISelDAGToDAG.cpp \ |
| 34 | MipsOs16.cpp \ |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 35 | MipsRegisterInfo.cpp \ |
| Stephen Hines | d62cdbe | 2012-08-22 17:56:25 -0700 | [diff] [blame] | 36 | MipsSEFrameLowering.cpp \ |
| Stephen Hines | d212f3f | 2013-03-18 17:55:03 -0700 | [diff] [blame] | 37 | MipsSEISelDAGToDAG.cpp \ |
| 38 | MipsSEISelLowering.cpp \ |
| Stephen Hines | d62cdbe | 2012-08-22 17:56:25 -0700 | [diff] [blame] | 39 | MipsSEInstrInfo.cpp \ |
| 40 | MipsSERegisterInfo.cpp \ |
| Stephen Hines | d62cdbe | 2012-08-22 17:56:25 -0700 | [diff] [blame] | 41 | MipsSelectionDAGInfo.cpp \ |
| Stephen Hines | 68aeecc | 2012-09-10 20:13:51 -0700 | [diff] [blame] | 42 | MipsSubtarget.cpp \ |
| 43 | MipsTargetMachine.cpp \ |
| 44 | MipsTargetObjectFile.cpp |
| Logan Chien | 79f06f3 | 2011-11-26 14:18:36 +0800 | [diff] [blame] | 45 | |
| 46 | # For the host |
| 47 | # ===================================================== |
| 48 | include $(CLEAR_VARS) |
| 49 | include $(CLEAR_TBLGEN_VARS) |
| 50 | |
| 51 | LOCAL_MODULE:= libLLVMMipsCodeGen |
| 52 | LOCAL_MODULE_TAGS := optional |
| 53 | |
| 54 | LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES) |
| 55 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc |
| 56 | |
| 57 | TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES) |
| 58 | |
| 59 | include $(LLVM_HOST_BUILD_MK) |
| 60 | include $(LLVM_TBLGEN_RULES_MK) |
| 61 | include $(LLVM_GEN_INTRINSICS_MK) |
| 62 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 63 | |
| 64 | # For the device only |
| 65 | # ===================================================== |
| 66 | ifeq ($(TARGET_ARCH),mips) |
| 67 | include $(CLEAR_VARS) |
| 68 | include $(CLEAR_TBLGEN_VARS) |
| 69 | |
| 70 | LOCAL_MODULE:= libLLVMMipsCodeGen |
| 71 | LOCAL_MODULE_TAGS := optional |
| 72 | |
| 73 | LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES) |
| 74 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc |
| 75 | |
| 76 | TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES) |
| 77 | |
| 78 | include $(LLVM_DEVICE_BUILD_MK) |
| 79 | include $(LLVM_TBLGEN_RULES_MK) |
| 80 | include $(LLVM_GEN_INTRINSICS_MK) |
| 81 | include $(BUILD_STATIC_LIBRARY) |
| 82 | endif |