1LOCAL_PATH := $(call my-dir)
2
3mips_codegen_TBLGEN_TABLES := \
4  MipsGenRegisterInfo.inc \
5  MipsGenInstrInfo.inc \
6  MipsGenCodeEmitter.inc \
7  MipsGenMCCodeEmitter.inc \
8  MipsGenMCPseudoLowering.inc \
9  MipsGenAsmWriter.inc \
10  MipsGenDAGISel.inc \
11  MipsGenFastISel.inc \
12  MipsGenCallingConv.inc \
13  MipsGenSubtargetInfo.inc
14
15mips_codegen_SRC_FILES := \
16  Mips16FrameLowering.cpp \
17  Mips16HardFloat.cpp \
18  Mips16HardFloatInfo.cpp \
19  Mips16ISelDAGToDAG.cpp \
20  Mips16ISelLowering.cpp \
21  Mips16InstrInfo.cpp \
22  Mips16RegisterInfo.cpp \
23  MipsAnalyzeImmediate.cpp \
24  MipsAsmPrinter.cpp \
25  MipsCCState.cpp \
26  MipsConstantIslandPass.cpp \
27  MipsDelaySlotFiller.cpp \
28  MipsFastISel.cpp \
29  MipsFrameLowering.cpp \
30  MipsInstrInfo.cpp \
31  MipsISelDAGToDAG.cpp \
32  MipsISelLowering.cpp \
33  MipsLongBranch.cpp \
34  MipsMachineFunction.cpp \
35  MipsMCInstLower.cpp \
36  MipsModuleISelDAGToDAG.cpp \
37  MipsOs16.cpp \
38  MipsOptimizePICCall.cpp \
39  MipsRegisterInfo.cpp \
40  MipsSEFrameLowering.cpp \
41  MipsSEISelDAGToDAG.cpp \
42  MipsSEISelLowering.cpp \
43  MipsSEInstrInfo.cpp \
44  MipsSERegisterInfo.cpp \
45  MipsSubtarget.cpp \
46  MipsTargetMachine.cpp \
47  MipsTargetObjectFile.cpp
48
49# For the host
50# =====================================================
51include $(CLEAR_VARS)
52include $(CLEAR_TBLGEN_VARS)
53
54LOCAL_MODULE:= libLLVMMipsCodeGen
55LOCAL_MODULE_HOST_OS := darwin linux windows
56
57LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
58LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
59
60TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
61
62include $(LLVM_HOST_BUILD_MK)
63include $(LLVM_TBLGEN_RULES_MK)
64include $(LLVM_GEN_ATTRIBUTES_MK)
65include $(LLVM_GEN_INTRINSICS_MK)
66include $(BUILD_HOST_STATIC_LIBRARY)
67
68# For the device only
69# =====================================================
70ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
71include $(CLEAR_VARS)
72include $(CLEAR_TBLGEN_VARS)
73
74LOCAL_MODULE:= libLLVMMipsCodeGen
75
76LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
77LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
78
79TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
80
81include $(LLVM_DEVICE_BUILD_MK)
82include $(LLVM_TBLGEN_RULES_MK)
83include $(LLVM_GEN_ATTRIBUTES_MK)
84include $(LLVM_GEN_INTRINSICS_MK)
85include $(BUILD_STATIC_LIBRARY)
86endif
87