blob: 34cea3bcc5879eb7786535c7c7104581988bdda7 [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 \
18 MipsEmitGPRestore.cpp \
19 MipsExpandPseudo.cpp \
20 MipsJITInfo.cpp \
21 MipsInstrInfo.cpp \
22 MipsISelDAGToDAG.cpp \
23 MipsISelLowering.cpp \
24 MipsFrameLowering.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 \
29 MipsTargetMachine.cpp \
30 MipsTargetObjectFile.cpp \
31 MipsSelectionDAGInfo.cpp
32
33# For the host
34# =====================================================
35include $(CLEAR_VARS)
36include $(CLEAR_TBLGEN_VARS)
37
38LOCAL_MODULE:= libLLVMMipsCodeGen
39LOCAL_MODULE_TAGS := optional
40
41LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
42LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
43
44TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
45
46include $(LLVM_HOST_BUILD_MK)
47include $(LLVM_TBLGEN_RULES_MK)
48include $(LLVM_GEN_INTRINSICS_MK)
49include $(BUILD_HOST_STATIC_LIBRARY)
50
51# For the device only
52# =====================================================
53ifeq ($(TARGET_ARCH),mips)
54include $(CLEAR_VARS)
55include $(CLEAR_TBLGEN_VARS)
56
57LOCAL_MODULE:= libLLVMMipsCodeGen
58LOCAL_MODULE_TAGS := optional
59
60LOCAL_SRC_FILES := $(mips_codegen_SRC_FILES)
61LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
62
63TBLGEN_TABLES := $(mips_codegen_TBLGEN_TABLES)
64
65include $(LLVM_DEVICE_BUILD_MK)
66include $(LLVM_TBLGEN_RULES_MK)
67include $(LLVM_GEN_INTRINSICS_MK)
68include $(BUILD_STATIC_LIBRARY)
69endif