blob: 11e8997d991f16aece7feb35c2deb08861c1f611 [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 \
8 MipsGenAsmWriter.inc \
9 MipsGenDAGISel.inc \
10 MipsGenCallingConv.inc \
11 MipsGenSubtargetInfo.inc
12
13mips_codegen_SRC_FILES := \
Stephen Hines8019aac2012-03-05 15:03:32 -080014 MipsAnalyzeImmediate.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080015 MipsAsmPrinter.cpp \
16 MipsCodeEmitter.cpp \
17 MipsDelaySlotFiller.cpp \
Stephen Hinesd62cdbe2012-08-22 17:56:25 -070018 MipsELFWriterInfo.cpp \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070019 MipsFrameLowering.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080020 MipsInstrInfo.cpp \
21 MipsISelDAGToDAG.cpp \
22 MipsISelLowering.cpp \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070023 MipsJITInfo.cpp \
24 MipsLongBranch.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080025 MipsMachineFunction.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080026 MipsMCInstLower.cpp \
27 MipsRegisterInfo.cpp \
28 MipsSubtarget.cpp \
Stephen Hinesd62cdbe2012-08-22 17:56:25 -070029 MipsSEFrameLowering.cpp \
30 MipsSEInstrInfo.cpp \
31 MipsSERegisterInfo.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080032 MipsTargetMachine.cpp \
33 MipsTargetObjectFile.cpp \
Stephen Hinesd62cdbe2012-08-22 17:56:25 -070034 MipsSelectionDAGInfo.cpp \
35 Mips16FrameLowering.cpp \
36 Mips16InstrInfo.cpp \
37 Mips16RegisterInfo.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