OSDN Git Service

Update aosp/master LLVM for rebase to r256229
[android-x86/external-llvm.git] / lib / Target / Mips / Disassembler / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 mips_disassembler_TBLGEN_TABLES := \
4   MipsGenDisassemblerTables.inc \
5   MipsGenInstrInfo.inc \
6   MipsGenRegisterInfo.inc \
7   MipsGenSubtargetInfo.inc
8
9 mips_disassembler_SRC_FILES := \
10   MipsDisassembler.cpp
11
12 # For the device
13 # =====================================================
14 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
15 include $(CLEAR_VARS)
16 include $(CLEAR_TBLGEN_VARS)
17
18 LOCAL_MODULE:= libLLVMMipsDisassembler
19
20 LOCAL_SRC_FILES := $(mips_disassembler_SRC_FILES)
21 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
22
23 TBLGEN_TABLES := $(mips_disassembler_TBLGEN_TABLES)
24 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
25
26 include $(LLVM_DEVICE_BUILD_MK)
27 include $(LLVM_TBLGEN_RULES_MK)
28 include $(LLVM_GEN_ATTRIBUTES_MK)
29 include $(LLVM_GEN_INTRINSICS_MK)
30 include $(BUILD_STATIC_LIBRARY)
31 endif
32
33 # For the host
34 # =====================================================
35 include $(CLEAR_VARS)
36 include $(CLEAR_TBLGEN_VARS)
37
38 LOCAL_MODULE:= libLLVMMipsDisassembler
39 LOCAL_MODULE_HOST_OS := darwin linux windows
40
41 LOCAL_SRC_FILES := $(mips_disassembler_SRC_FILES)
42 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
43
44 TBLGEN_TABLES := $(mips_disassembler_TBLGEN_TABLES)
45 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
46
47 include $(LLVM_HOST_BUILD_MK)
48 include $(LLVM_TBLGEN_RULES_MK)
49 include $(LLVM_GEN_ATTRIBUTES_MK)
50 include $(LLVM_GEN_INTRINSICS_MK)
51 include $(BUILD_HOST_STATIC_LIBRARY)