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