2007-04-06 01:09:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-03-27 23:21:25 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair
|
|
|
|
.PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/nvpair
|
2007-04-06 01:09:06 +00:00
|
|
|
|
|
|
|
LIB= nvpair
|
|
|
|
|
2007-04-16 21:20:26 +00:00
|
|
|
SRCS= libnvpair.c \
|
|
|
|
nvpair_alloc_system.c \
|
2014-12-06 01:01:51 +00:00
|
|
|
nvpair_json.c \
|
2015-07-09 21:53:40 +00:00
|
|
|
opensolaris_fnvpair.c \
|
|
|
|
opensolaris_nvpair.c \
|
|
|
|
opensolaris_nvpair_alloc_fixed.c
|
2007-04-06 01:09:06 +00:00
|
|
|
|
2010-03-02 19:04:07 +00:00
|
|
|
WARNS?= 0
|
2008-03-27 23:21:25 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/include
|
2012-06-11 11:35:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common
|
2008-03-27 23:21:25 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common
|
2012-06-11 11:35:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
2009-08-17 08:03:02 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys
|
2012-06-11 11:35:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem
|
2007-04-06 01:09:06 +00:00
|
|
|
|
2013-11-04 19:32:35 +00:00
|
|
|
# This library uses macros to define fprintf behavior for several object types
|
2013-11-03 21:05:44 +00:00
|
|
|
# The compiler will see the non-string literal arguments to the fprintf calls and
|
2013-11-04 19:32:35 +00:00
|
|
|
# omit warnings for them. Quiesce these warnings in contrib code:
|
2013-11-03 21:05:44 +00:00
|
|
|
#
|
|
|
|
# cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format
|
|
|
|
# string is not a string literal (potentially insecure) [-Wformat-security]
|
|
|
|
# ARENDER(pctl, nvlist_array, nvl, name, val, nelem);
|
|
|
|
#
|
|
|
|
CFLAGS+= -Wno-format-security
|
2007-04-06 01:09:06 +00:00
|
|
|
.include <bsd.lib.mk>
|