Makefile (b5ff185e19f6013ca565b2a15bc2d6abce933f46) Makefile (58406fff5271d20a3a0e1f9cc84882497a96d27e)
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_json.c \
11 opensolaris_fnvpair.c \
12 opensolaris_nvpair.c \
13 opensolaris_nvpair_alloc_fixed.c
14
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_json.c \
11 opensolaris_fnvpair.c \
12 opensolaris_nvpair.c \
13 opensolaris_nvpair_alloc_fixed.c
14
15WARNS?= 0
15WARNS?= 1
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>
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>