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