1 LOCAL_PATH := $(call my-dir) 2 3 aarch64_mc_desc_TBLGEN_TABLES := \ 4 AArch64GenRegisterInfo.inc \ 5 AArch64GenInstrInfo.inc \ 6 AArch64GenMCCodeEmitter.inc \ 7 AArch64GenSubtargetInfo.inc 8 9 aarch64_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 # ===================================================== 22 include $(CLEAR_VARS) 23 include $(CLEAR_TBLGEN_VARS) 24 25 26 LOCAL_MODULE:= libLLVMAArch64Desc 27 LOCAL_MODULE_HOST_OS := darwin linux windows 28 29 LOCAL_SRC_FILES := $(aarch64_mc_desc_SRC_FILES) 30 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 31 32 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 33 TBLGEN_TABLES := $(aarch64_mc_desc_TBLGEN_TABLES) 34 35 include $(LLVM_HOST_BUILD_MK) 36 include $(LLVM_TBLGEN_RULES_MK) 37 include $(LLVM_GEN_ATTRIBUTES_MK) 38 include $(LLVM_GEN_INTRINSICS_MK) 39 include $(BUILD_HOST_STATIC_LIBRARY) 40 41 # For the device only 42 # ===================================================== 43 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 44 include $(CLEAR_VARS) 45 include $(CLEAR_TBLGEN_VARS) 46 47 LOCAL_MODULE:= libLLVMAArch64Desc 48 49 LOCAL_SRC_FILES := $(aarch64_mc_desc_SRC_FILES) 50 LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. 51 52 TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 53 TBLGEN_TABLES := $(aarch64_mc_desc_TBLGEN_TABLES) 54 55 include $(LLVM_DEVICE_BUILD_MK) 56 include $(LLVM_TBLGEN_RULES_MK) 57 include $(LLVM_GEN_ATTRIBUTES_MK) 58 include $(LLVM_GEN_INTRINSICS_MK) 59 include $(BUILD_STATIC_LIBRARY) 60 endif 61