OSDN Git Service

5f88cc3f3b1603194e61855537577fcf3c97baa8
[android-x86/external-llvm.git] / lib / Target / ARM / AsmParser / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 #===---------------------------------------------------------------===
4 # libARMAsmParser (common)
5 #===---------------------------------------------------------------===
6
7 arm_asm_parser_SRC_FILES := \
8   ARMAsmParser.cpp
9
10 arm_asm_parser_TBLGEN_TABLES := \
11   ARMGenInstrInfo.inc \
12   ARMGenRegisterInfo.inc \
13   ARMGenAsmMatcher.inc \
14   ARMGenSubtargetInfo.inc
15
16 arm_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
17
18 arm_asm_parser_C_INCLUDES := $(LOCAL_PATH)/..
19
20
21 #===---------------------------------------------------------------===
22 # libARMAsmParser (host)
23 #===---------------------------------------------------------------===
24 include $(CLEAR_VARS)
25 include $(CLEAR_TBLGEN_VARS)
26
27 LOCAL_MODULE:= libLLVMARMAsmParser
28 LOCAL_MODULE_TAGS := optional
29 LOCAL_SRC_FILES := $(arm_asm_parser_SRC_FILES)
30 LOCAL_C_INCLUDES += $(arm_asm_parser_C_INCLUDES)
31 TBLGEN_TABLES := $(arm_asm_parser_TBLGEN_TABLES)
32 TBLGEN_TD_DIR := $(arm_asm_parser_TBLGEN_TD_DIR)
33
34 include $(LLVM_HOST_BUILD_MK)
35 include $(LLVM_TBLGEN_RULES_MK)
36 ifneq (,$(filter windows darwin,$(HOST_OS)))
37 # Override the default optimization level to work around taking forever (~50m)
38 # to compile ARMAsmParser.cpp on Mac with gcc 4.2,
39 # or on Linux with mingw32msvc-gcc 4.2, which is used to cross-compile
40 # the win_sdk.
41 LOCAL_CFLAGS += -O0
42 endif
43 include $(BUILD_HOST_STATIC_LIBRARY)
44
45
46 #===---------------------------------------------------------------===
47 # libARMAsmParser (target)
48 #===---------------------------------------------------------------===
49 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
50 include $(CLEAR_VARS)
51 include $(CLEAR_TBLGEN_VARS)
52
53 LOCAL_MODULE:= libLLVMARMAsmParser
54 LOCAL_MODULE_TAGS := optional
55 LOCAL_SRC_FILES := $(arm_asm_parser_SRC_FILES)
56 LOCAL_C_INCLUDES += $(arm_asm_parser_C_INCLUDES)
57 TBLGEN_TABLES := $(arm_asm_parser_TBLGEN_TABLES)
58 TBLGEN_TD_DIR := $(arm_asm_parser_TBLGEN_TD_DIR)
59
60 include $(LLVM_DEVICE_BUILD_MK)
61 include $(LLVM_TBLGEN_RULES_MK)
62 include $(BUILD_STATIC_LIBRARY)
63 endif