5ef231f6f7
cnv API is a set of functions for managing name/value pairs by cookie. The cookie can be obtained by nvlist_next(), nvlist_get_parent() or nvlist_get_pararr() function. This patch also includes unit tests. Submitted by: Adam Starak <starak.adam@gmail.com>
25 lines
358 B
Makefile
25 lines
358 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=lib${LIB}
|
|
SHLIBDIR?= /lib
|
|
|
|
.include <src.opts.mk>
|
|
|
|
LIB= nv
|
|
SHLIB_MAJOR= 0
|
|
|
|
.PATH: ${.CURDIR}/../../sys/contrib/libnv ${.CURDIR}/../../sys/sys
|
|
CFLAGS+=-I${.CURDIR}/../../sys -I${.CURDIR}
|
|
|
|
SRCS= cnvlist.c
|
|
SRCS+= dnvlist.c
|
|
SRCS+= msgio.c
|
|
SRCS+= nvlist.c
|
|
SRCS+= nvpair.c
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
.include <bsd.lib.mk>
|