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