1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 4.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/nvpair 5 6LIB= nvpair 7 8INCS= libnvpair.h 9SRCS= libnvpair.c \ 10 nvpair_alloc_system.c \ 11 nvpair_json.c \ 12 opensolaris_fnvpair.c \ 13 opensolaris_nvpair.c \ 14 opensolaris_nvpair_alloc_fixed.c 15 16WARNS?= 1 17CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 18CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common 19CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris 20CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 21CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 22CFLAGS+= -I${SRCTOP}/sys 23CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 24CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem 25 26# This library uses macros to define fprintf behavior for several object types 27# The compiler will see the non-string literal arguments to the fprintf calls and 28# omit warnings for them. Quiesce these warnings in contrib code: 29# 30# cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format 31# string is not a string literal (potentially insecure) [-Wformat-security] 32# ARENDER(pctl, nvlist_array, nvl, name, val, nelem); 33# 34CFLAGS+= -Wno-format-security 35.include <bsd.lib.mk> 36