blob: 6bf146a39720f2e63de4c8ec6a07b3cc7322d340 [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 \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070018 MipsFrameLowering.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080019 MipsInstrInfo.cpp \
20 MipsISelDAGToDAG.cpp \
21 MipsISelLowering.cpp \
Shih-wei Liaoc3f0e982012-08-03 01:17:37 -070022 MipsJITInfo.cpp \
23 MipsLongBranch.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080024 MipsMachineFunction.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080025 MipsMCInstLower.cpp \
26 MipsRegisterInfo.cpp \
27 MipsSubtarget.cpp \
28 MipsTargetMachine.cpp \
29 MipsTargetObjectFile.cpp \
30 MipsSelectionDAGInfo.cpp
31
32# For the host
33# =====================================================
34include $(CLEAR_VARS)
35include $(CLEAR_TBLGEN_VARS)
36
37LOCAL_MODULE:= libLLVMMipsCodeGen
38LOCAL_MODULE_TAGS := optional
39
40LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
41LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
42
43TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
44
45include $(LLVM_HOST_BUILD_MK)
46include $(LLVM_TBLGEN_RULES_MK)
47include $(LLVM_GEN_INTRINSICS_MK)
48include $(BUILD_HOST_STATIC_LIBRARY)
49
50# For the device only
51# =====================================================
52ifeq ($(TARGET_ARCH),mips)
53include $(CLEAR_VARS)
54include $(CLEAR_TBLGEN_VARS)
55
56LOCAL_MODULE:= libLLVMMipsCodeGen
57LOCAL_MODULE_TAGS := optional
58
59LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
60LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
61
62TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
63
64include $(LLVM_DEVICE_BUILD_MK)
65include $(LLVM_TBLGEN_RULES_MK)
66include $(LLVM_GEN_INTRINSICS_MK)
67include $(BUILD_STATIC_LIBRARY)
68endif