1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (C) 2015 Intel Corporation. 3# All rights reserved. 4# 5 6SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..) 7include $(SPDK_ROOT_DIR)/mk/spdk.common.mk 8 9SO_VER := 7 10SO_MINOR := 0 11 12C_SRCS = base64.c bit_array.c cpuset.c crc16.c crc32.c crc32c.c crc32_ieee.c crc64.c \ 13 dif.c fd.c file.c hexlify.c iov.c math.c pipe.c strerror_tls.c string.c uuid.c \ 14 fd_group.c xor.c zipf.c 15LIBNAME = util 16 17ifneq ($(OS),FreeBSD) 18LOCAL_SYS_LIBS = -luuid 19endif 20 21ifeq ($(CONFIG_ISAL), y) 22LOCAL_SYS_LIBS += -L$(ISAL_DIR)/.libs -lisal 23endif 24 25ifeq ($(CONFIG_HAVE_UUID_GENERATE_SHA1), n) 26LOCAL_SYS_LIBS += -lssl 27endif 28 29CFLAGS += -Wpointer-arith 30 31SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_util.map) 32 33include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk 34