• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_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 := \
14  Mips16FrameLowering.cpp \
15  Mips16InstrInfo.cpp \
16  Mips16RegisterInfo.cpp \
17  MipsAnalyzeImmediate.cpp \
18  MipsAsmPrinter.cpp \
19  MipsCodeEmitter.cpp \
20  MipsDelaySlotFiller.cpp \
21  MipsDirectObjLower.cpp \
22  MipsELFWriterInfo.cpp \
23  MipsFrameLowering.cpp \
24  MipsInstrInfo.cpp \
25  MipsISelDAGToDAG.cpp \
26  MipsISelLowering.cpp \
27  MipsJITInfo.cpp \
28  MipsLongBranch.cpp \
29  MipsMachineFunction.cpp \
30  MipsMCInstLower.cpp \
31  MipsRegisterInfo.cpp \
32  MipsSEFrameLowering.cpp \
33  MipsSEInstrInfo.cpp \
34  MipsSERegisterInfo.cpp \
35  MipsSelectionDAGInfo.cpp \
36  MipsSubtarget.cpp \
37  MipsTargetMachine.cpp \
38  MipsTargetObjectFile.cpp
39
40# For the host
41# =====================================================
42include $(CLEAR_VARS)
43include $(CLEAR_TBLGEN_VARS)
44
45LOCAL_MODULE:= libLLVMMipsCodeGen
46LOCAL_MODULE_TAGS := optional
47
48LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
49LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
50
51TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
52
53include $(LLVM_HOST_BUILD_MK)
54include $(LLVM_TBLGEN_RULES_MK)
55include $(LLVM_GEN_INTRINSICS_MK)
56include $(BUILD_HOST_STATIC_LIBRARY)
57
58# For the device only
59# =====================================================
60ifeq ($(TARGET_ARCH),mips)
61include $(CLEAR_VARS)
62include $(CLEAR_TBLGEN_VARS)
63
64LOCAL_MODULE:= libLLVMMipsCodeGen
65LOCAL_MODULE_TAGS := optional
66
67LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
68LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
69
70TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
71
72include $(LLVM_DEVICE_BUILD_MK)
73include $(LLVM_TBLGEN_RULES_MK)
74include $(LLVM_GEN_INTRINSICS_MK)
75include $(BUILD_STATIC_LIBRARY)
76endif
77