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