blob: 733acdb80d3ae34296a2d49d80d939ec1ca5e552 [file] [log] [blame]
Logan Chien79f06f32011-11-26 14:18:36 +08001LOCAL_PATH := $(call my-dir)
2
3mips_mc_desc_TBLGEN_TABLES := \
4 MipsGenRegisterInfo.inc \
5 MipsGenInstrInfo.inc \
6 MipsGenMCCodeEmitter.inc \
7 MipsGenSubtargetInfo.inc
8
9mips_mc_desc_SRC_FILES := \
10 MipsAsmBackend.cpp \
Stephen Hines3aef7032013-01-08 23:43:13 -080011 MipsDirectObjLower.cpp \
Stephen Hines8019aac2012-03-05 15:03:32 -080012 MipsELFObjectWriter.cpp \
Stephen Hines2123c1c2013-03-05 23:29:52 -080013 MipsELFStreamer.cpp \
Logan Chien79f06f32011-11-26 14:18:36 +080014 MipsMCAsmInfo.cpp \
15 MipsMCCodeEmitter.cpp \
Stephen Hines2123c1c2013-03-05 23:29:52 -080016 MipsMCTargetDesc.cpp \
17 MipsReginfo.cpp
Logan Chien79f06f32011-11-26 14:18:36 +080018
19# For the host
20# =====================================================
21include $(CLEAR_VARS)
22include $(CLEAR_TBLGEN_VARS)
23
24LOCAL_MODULE:= libLLVMMipsDesc
25LOCAL_MODULE_TAGS := optional
26
27LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
28LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
29
30TBLGEN_TD_DIR := $(LOCAL_PATH)/..
31TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
32
33include $(LLVM_HOST_BUILD_MK)
34include $(LLVM_TBLGEN_RULES_MK)
35include $(LLVM_GEN_INTRINSICS_MK)
36include $(BUILD_HOST_STATIC_LIBRARY)
37
38# For the device only
39# =====================================================
40ifeq ($(TARGET_ARCH),mips)
41include $(CLEAR_VARS)
42include $(CLEAR_TBLGEN_VARS)
43
44LOCAL_MODULE:= libLLVMMipsDesc
45LOCAL_MODULE_TAGS := optional
46
47LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
48LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
49
50TBLGEN_TD_DIR := $(LOCAL_PATH)/..
51TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
52
53include $(LLVM_DEVICE_BUILD_MK)
54include $(LLVM_TBLGEN_RULES_MK)
55include $(LLVM_GEN_INTRINSICS_MK)
56include $(BUILD_STATIC_LIBRARY)
57endif