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