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 := 10 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 fd_group.c file.c hexlify.c iov.c math.c net.c \ 14 pipe.c strerror_tls.c string.c uuid.c xor.c zipf.c 15LIBNAME = util 16 17ifneq ($(OS),FreeBSD) 18LOCAL_SYS_LIBS = -luuid 19endif 20 21ifeq ($(CONFIG_HAVE_UUID_GENERATE_SHA1), n) 22LOCAL_SYS_LIBS += -lssl 23endif 24 25CFLAGS += -Wpointer-arith 26 27SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_util.map) 28 29include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk 30