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