1LOCAL_PATH := $(call my-dir) 2 3#===---------------------------------------------------------------=== 4# libARMAsmParser (common) 5#===---------------------------------------------------------------=== 6 7aarch64_asm_parser_SRC_FILES := \ 8 AArch64AsmParser.cpp 9 10aarch64_asm_parser_TBLGEN_TABLES := \ 11 AArch64GenInstrInfo.inc \ 12 AArch64GenRegisterInfo.inc \ 13 AArch64GenAsmMatcher.inc \ 14 AArch64GenSubtargetInfo.inc 15 16aarch64_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 17 18aarch64_asm_parser_C_INCLUDES := $(LOCAL_PATH)/.. 19 20 21#===---------------------------------------------------------------=== 22# libAArch64AsmParser (host) 23#===---------------------------------------------------------------=== 24include $(CLEAR_VARS) 25include $(CLEAR_TBLGEN_VARS) 26 27LOCAL_MODULE:= libLLVMAArch64AsmParser 28LOCAL_MODULE_TAGS := optional 29LOCAL_SRC_FILES := $(aarch64_asm_parser_SRC_FILES) 30LOCAL_C_INCLUDES += $(aarch64_asm_parser_C_INCLUDES) 31TBLGEN_TABLES := $(aarch64_asm_parser_TBLGEN_TABLES) 32TBLGEN_TD_DIR := $(aarch64_asm_parser_TBLGEN_TD_DIR) 33 34include $(LLVM_HOST_BUILD_MK) 35include $(LLVM_TBLGEN_RULES_MK) 36ifneq (,$(filter windows darwin,$(HOST_OS))) 37# Override the default optimization level to work around taking forever (~50m) 38# to compile AArch64AsmParser.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. 41LOCAL_CFLAGS += -O0 42endif 43include $(BUILD_HOST_STATIC_LIBRARY) 44 45 46#===---------------------------------------------------------------=== 47# libAArch64AsmParser (target) 48#===---------------------------------------------------------------=== 49ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 50include $(CLEAR_VARS) 51include $(CLEAR_TBLGEN_VARS) 52 53LOCAL_MODULE:= libLLVMAArch64AsmParser 54LOCAL_MODULE_TAGS := optional 55LOCAL_SRC_FILES := $(aarch64_asm_parser_SRC_FILES) 56LOCAL_C_INCLUDES += $(aarch64_asm_parser_C_INCLUDES) 57TBLGEN_TABLES := $(aarch64_asm_parser_TBLGEN_TABLES) 58TBLGEN_TD_DIR := $(aarch64_asm_parser_TBLGEN_TD_DIR) 59 60include $(LLVM_DEVICE_BUILD_MK) 61include $(LLVM_TBLGEN_RULES_MK) 62include $(BUILD_STATIC_LIBRARY) 63endif 64