OSDN Git Service

Merge "Switch to x86_64 instead of i386 for default host compilation."
[android-x86/external-llvm.git] / lib / Target / ARM / InstPrinter / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 arm_asm_printer_TBLGEN_TABLES := \
4   ARMGenAsmWriter.inc \
5   ARMGenRegisterInfo.inc \
6   ARMGenSubtargetInfo.inc \
7   ARMGenInstrInfo.inc
8
9 arm_asm_printer_SRC_FILES := \
10   ARMInstPrinter.cpp
11
12 # For the host
13 # =====================================================
14 include $(CLEAR_VARS)
15 include $(CLEAR_TBLGEN_VARS)
16
17 TBLGEN_TABLES := $(arm_asm_printer_TBLGEN_TABLES)
18
19 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
20
21 LOCAL_SRC_FILES := $(arm_asm_printer_SRC_FILES)
22
23 LOCAL_MODULE:= libLLVMARMAsmPrinter
24
25 LOCAL_C_INCLUDES += \
26     $(LOCAL_PATH)/..
27
28 LOCAL_MODULE_HOST_OS := darwin linux windows
29
30 include $(LLVM_HOST_BUILD_MK)
31 include $(LLVM_TBLGEN_RULES_MK)
32 include $(BUILD_HOST_STATIC_LIBRARY)
33
34 # For the device only
35 # =====================================================
36 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
37 include $(CLEAR_VARS)
38 include $(CLEAR_TBLGEN_VARS)
39
40 TBLGEN_TABLES := $(arm_asm_printer_TBLGEN_TABLES)
41
42 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
43
44 LOCAL_SRC_FILES := $(arm_asm_printer_SRC_FILES)
45
46 LOCAL_C_INCLUDES+= \
47     $(LOCAL_PATH)/..
48
49 LOCAL_MODULE:= libLLVMARMAsmPrinter
50
51 include $(LLVM_DEVICE_BUILD_MK)
52 include $(LLVM_TBLGEN_RULES_MK)
53 include $(BUILD_STATIC_LIBRARY)
54 endif
55