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