OSDN Git Service

Merge "Switch to x86_64 instead of i386 for default host compilation."
[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 $(BUILD_STATIC_LIBRARY)
29 endif
30
31 # For the host
32 # =====================================================
33 include $(CLEAR_VARS)
34 include $(CLEAR_TBLGEN_VARS)
35
36 LOCAL_MODULE:= libLLVMMipsDisassembler
37 LOCAL_MODULE_HOST_OS := darwin linux windows
38
39 LOCAL_SRC_FILES := $(mips_disassembler_SRC_FILES)
40 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
41
42 TBLGEN_TABLES := $(mips_disassembler_TBLGEN_TABLES)
43 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
44
45 include $(LLVM_HOST_BUILD_MK)
46 include $(LLVM_TBLGEN_RULES_MK)
47 include $(BUILD_HOST_STATIC_LIBRARY)