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