1168404Spjd# $FreeBSD: releng/11.0/cddl/lib/libnvpair/Makefile 302141 2016-06-23 15:02:57Z asomers $ 2168404Spjd 3177674Sjb.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libnvpair 4177674Sjb.PATH: ${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/nvpair 5168404Spjd 6168404SpjdLIB= nvpair 7168404Spjd 8168792SruSRCS= libnvpair.c \ 9168792Sru nvpair_alloc_system.c \ 10275552Sdelphij nvpair_json.c \ 11285339Soshogbo opensolaris_fnvpair.c \ 12285339Soshogbo opensolaris_nvpair.c \ 13285339Soshogbo opensolaris_nvpair_alloc_fixed.c 14168404Spjd 15302141SasomersWARNS?= 1 16177674SjbCFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/include 17236884SmmCFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/lib/libzpool/common 18177674SjbCFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris 19177674SjbCFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common 20236884SmmCFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs 21196289SpjdCFLAGS+= -I${.CURDIR}/../../../sys 22236884SmmCFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head 23236884SmmCFLAGS+= -I${.CURDIR}/../../../cddl/compat/opensolaris/lib/libumem 24168404Spjd 25257647Ssbruno# This library uses macros to define fprintf behavior for several object types 26257592Ssbruno# The compiler will see the non-string literal arguments to the fprintf calls and 27257647Ssbruno# omit warnings for them. Quiesce these warnings in contrib code: 28257592Ssbruno# 29257592Ssbruno# cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:743:12: warning: format 30257592Ssbruno# string is not a string literal (potentially insecure) [-Wformat-security] 31257592Ssbruno# ARENDER(pctl, nvlist_array, nvl, name, val, nelem); 32257592Ssbruno# 33257592SsbrunoCFLAGS+= -Wno-format-security 34168404Spjd.include <bsd.lib.mk> 35