blob: 44271e90ca8b24ffeb8a8c52641f37b356af9df6 [file] [log] [blame]
Logan Chien79f06f32011-11-26 14:18:36 +08001LOCAL_PATH := $(call my-dir)
2
3mips_codegen_TBLGEN_TABLES := \
4 MipsGenRegisterInfo.inc \
5 MipsGenInstrInfo.inc \
6 MipsGenCodeEmitter.inc \
7 MipsGenMCCodeEmitter.inc \
Stephen Hines3aef7032013-01-08 23:43:13 -08008 MipsGenMCPseudoLowering.inc \
Logan Chien79f06f32011-11-26 14:18:36 +08009 MipsGenAsmWriter.inc \
10 MipsGenDAGISel.inc \
11 MipsGenCallingConv.inc \
12 MipsGenSubtargetInfo.inc
13
14mips_codegen_SRC_FILES := \
Stephen Hines68aeecc2012-09-10 20:13:51 -070015 Mips16FrameLowering.cpp \
16 Mips16InstrInfo.cpp \
17 Mips16RegisterInfo.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080018 MipsAnalyzeImmediate.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080019 MipsAsmPrinter.cpp \
20 MipsCodeEmitter.cpp \
21 MipsDelaySlotFiller.cpp \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070022 MipsFrameLowering.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080023 MipsInstrInfo.cpp \
24 MipsISelDAGToDAG.cpp \
25 MipsISelLowering.cpp \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070026 MipsJITInfo.cpp \
27 MipsLongBranch.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080028 MipsMachineFunction.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080029 MipsMCInstLower.cpp \
30 MipsRegisterInfo.cpp \
Stephen Hinesd62cdbe2012-08-22 17:56:25 -070031 MipsSEFrameLowering.cpp \
32 MipsSEInstrInfo.cpp \
33 MipsSERegisterInfo.cpp \
Stephen Hinesd62cdbe2012-08-22 17:56:25 -070034 MipsSelectionDAGInfo.cpp \
Stephen Hines68aeecc2012-09-10 20:13:51 -070035 MipsSubtarget.cpp \
36 MipsTargetMachine.cpp \
37 MipsTargetObjectFile.cpp
Logan Chien79f06f32011-11-26 14:18:36 +080038
39# For the host
40# =====================================================
41include $(CLEAR_VARS)
42include $(CLEAR_TBLGEN_VARS)
43
44LOCAL_MODULE:= libLLVMMipsCodeGen
45LOCAL_MODULE_TAGS := optional
46
47LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
48LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
49
50TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
51
52include $(LLVM_HOST_BUILD_MK)
53include $(LLVM_TBLGEN_RULES_MK)
54include $(LLVM_GEN_INTRINSICS_MK)
55include $(BUILD_HOST_STATIC_LIBRARY)
56
57# For the device only
58# =====================================================
59ifeq ($(TARGET_ARCH),mips)
60include $(CLEAR_VARS)
61include $(CLEAR_TBLGEN_VARS)
62
63LOCAL_MODULE:= libLLVMMipsCodeGen
64LOCAL_MODULE_TAGS := optional
65
66LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
67LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
68
69TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
70
71include $(LLVM_DEVICE_BUILD_MK)
72include $(LLVM_TBLGEN_RULES_MK)
73include $(LLVM_GEN_INTRINSICS_MK)
74include $(BUILD_STATIC_LIBRARY)
75endif