1LOCAL_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  MipsABIFlagsSection.cpp \
11  MipsABIInfo.cpp \
12  MipsAsmBackend.cpp \
13  MipsELFObjectWriter.cpp \
14  MipsELFStreamer.cpp \
15  MipsMCAsmInfo.cpp \
16  MipsMCCodeEmitter.cpp \
17  MipsMCExpr.cpp \
18  MipsMCTargetDesc.cpp \
19  MipsOptionRecord.cpp \
20  MipsNaClELFStreamer.cpp \
21  MipsTargetStreamer.cpp
22
23# For the host
24# =====================================================
25include $(CLEAR_VARS)
26include $(CLEAR_TBLGEN_VARS)
27
28LOCAL_MODULE:= libLLVMMipsDesc
29LOCAL_MODULE_TAGS := optional
30
31LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
32LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
33
34TBLGEN_TD_DIR := $(LOCAL_PATH)/..
35TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
36
37include $(LLVM_HOST_BUILD_MK)
38include $(LLVM_TBLGEN_RULES_MK)
39include $(LLVM_GEN_INTRINSICS_MK)
40include $(BUILD_HOST_STATIC_LIBRARY)
41
42# For the device only
43# =====================================================
44ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
45include $(CLEAR_VARS)
46include $(CLEAR_TBLGEN_VARS)
47
48LOCAL_MODULE:= libLLVMMipsDesc
49LOCAL_MODULE_TAGS := optional
50
51LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
52LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
53
54TBLGEN_TD_DIR := $(LOCAL_PATH)/..
55TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
56
57include $(LLVM_DEVICE_BUILD_MK)
58include $(LLVM_TBLGEN_RULES_MK)
59include $(LLVM_GEN_INTRINSICS_MK)
60include $(BUILD_STATIC_LIBRARY)
61endif
62