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