1LOCAL_PATH := $(call my-dir)
2
3mips_target_info_TBLGEN_TABLES := \
4  MipsGenInstrInfo.inc \
5  MipsGenRegisterInfo.inc \
6  MipsGenSubtargetInfo.inc
7
8mips_target_info_SRC_FILES := \
9  MipsTargetInfo.cpp
10
11# For the host
12# =====================================================
13include $(CLEAR_VARS)
14include $(CLEAR_TBLGEN_VARS)
15
16LOCAL_MODULE:= libLLVMMipsInfo
17LOCAL_MODULE_TAGS := optional
18
19TBLGEN_TABLES := $(mips_target_info_TBLGEN_TABLES)
20TBLGEN_TD_DIR := $(LOCAL_PATH)/..
21
22LOCAL_SRC_FILES := $(mips_target_info_SRC_FILES)
23LOCAL_C_INCLUDES +=	$(LOCAL_PATH)/..
24
25include $(LLVM_HOST_BUILD_MK)
26include $(LLVM_TBLGEN_RULES_MK)
27include $(BUILD_HOST_STATIC_LIBRARY)
28
29# For the device
30# =====================================================
31ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
32include $(CLEAR_VARS)
33include $(CLEAR_TBLGEN_VARS)
34
35LOCAL_MODULE:= libLLVMMipsInfo
36LOCAL_MODULE_TAGS := optional
37
38TBLGEN_TABLES := $(mips_target_info_TBLGEN_TABLES)
39TBLGEN_TD_DIR := $(LOCAL_PATH)/..
40
41LOCAL_SRC_FILES := $(mips_target_info_SRC_FILES)
42LOCAL_C_INCLUDES +=	$(LOCAL_PATH)/..
43
44include $(LLVM_DEVICE_BUILD_MK)
45include $(LLVM_TBLGEN_RULES_MK)
46include $(BUILD_STATIC_LIBRARY)
47endif