1LOCAL_PATH := $(call my-dir) 2 3aarch64_disassembler_TBLGEN_TABLES := \ 4 AArch64GenDisassemblerTables.inc \ 5 AArch64GenInstrInfo.inc \ 6 AArch64GenSubtargetInfo.inc \ 7 AArch64GenRegisterInfo.inc 8 9aarch64_disassembler_SRC_FILES := \ 10 AArch64Disassembler.cpp \ 11 AArch64ExternalSymbolizer.cpp 12 13# For the device 14# ===================================================== 15ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 16include $(CLEAR_VARS) 17include $(CLEAR_TBLGEN_VARS) 18 19TBLGEN_TABLES := $(aarch64_disassembler_TBLGEN_TABLES) 20 21TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 22 23LOCAL_SRC_FILES := $(aarch64_disassembler_SRC_FILES) 24 25LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 26 27LOCAL_MODULE:= libLLVMAArch64Disassembler 28 29include $(LLVM_DEVICE_BUILD_MK) 30include $(LLVM_TBLGEN_RULES_MK) 31include $(LLVM_GEN_ATTRIBUTES_MK) 32include $(LLVM_GEN_INTRINSICS_MK) 33include $(BUILD_STATIC_LIBRARY) 34endif 35 36# For the host 37# ===================================================== 38include $(CLEAR_VARS) 39include $(CLEAR_TBLGEN_VARS) 40 41TBLGEN_TABLES := $(aarch64_disassembler_TBLGEN_TABLES) 42 43TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 44 45LOCAL_SRC_FILES := $(aarch64_disassembler_SRC_FILES) 46 47LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. 48 49LOCAL_MODULE:= libLLVMAArch64Disassembler 50 51LOCAL_MODULE_HOST_OS := darwin linux windows 52 53include $(LLVM_HOST_BUILD_MK) 54include $(LLVM_TBLGEN_RULES_MK) 55include $(LLVM_GEN_ATTRIBUTES_MK) 56include $(LLVM_GEN_INTRINSICS_MK) 57include $(BUILD_HOST_STATIC_LIBRARY) 58 59