OSDN Git Service

DO NOT MERGE: android: translate Android.mk build rules for libLLVM80
[android-x86/external-llvm.git] / lib / Target / Mips / InstPrinter / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 mips_asm_printer_TBLGEN_TABLES80 := \
4   MipsGenAsmWriter.inc \
5   MipsGenRegisterInfo.inc \
6   MipsGenSubtargetInfo.inc \
7   MipsGenInstrInfo.inc
8
9 mips_asm_printer_SRC_FILES := \
10   MipsInstPrinter.cpp
11
12 # For the host
13 # =====================================================
14 include $(CLEAR_VARS)
15 include $(CLEAR_TBLGEN_VARS80)
16
17 LOCAL_MODULE:= libLLVM80MipsAsmPrinter
18 LOCAL_MODULE_HOST_OS := darwin linux windows
19
20 TBLGEN_TABLES80 := $(mips_asm_printer_TBLGEN_TABLES80)
21 TBLGEN_TD_DIR80 := $(LOCAL_PATH)/..
22
23 LOCAL_SRC_FILES := $(mips_asm_printer_SRC_FILES)
24 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
25
26 include $(LLVM80_HOST_BUILD_MK)
27 include $(LLVM80_TBLGEN_RULES_MK)
28 include $(LLVM80_GEN_ATTRIBUTES_MK)
29 include $(LLVM80_GEN_INTRINSICS_MK)
30 include $(BUILD_HOST_STATIC_LIBRARY)
31
32 # For the device only
33 # =====================================================
34 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
35 include $(CLEAR_VARS)
36 include $(CLEAR_TBLGEN_VARS80)
37
38 LOCAL_MODULE:= libLLVM80MipsAsmPrinter
39
40 TBLGEN_TABLES80 := $(mips_asm_printer_TBLGEN_TABLES80)
41 TBLGEN_TD_DIR80 := $(LOCAL_PATH)/..
42
43 LOCAL_SRC_FILES := $(mips_asm_printer_SRC_FILES)
44 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
45
46 include $(LLVM80_DEVICE_BUILD_MK)
47 include $(LLVM80_TBLGEN_RULES_MK)
48 include $(LLVM80_GEN_ATTRIBUTES_MK)
49 include $(LLVM80_GEN_INTRINSICS_MK)
50 include $(BUILD_STATIC_LIBRARY)
51 endif