1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/contrib/openzfs/module/nvpair 4.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libnvpair 5 6LIB= nvpair 7 8PACKAGE= runtime 9# user 10SRCS= libnvpair.c \ 11 libnvpair_json.c \ 12 nvpair_alloc_system.c 13# kernel 14SRCS+= nvpair_alloc_fixed.c \ 15 nvpair.c \ 16 fnvpair.c 17 18WARNS?= 2 19CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES 20CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 21CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 22CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 23CFLAGS+= -I${SRCTOP}/sys 24CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 25CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 26CFLAGS+= -DHAVE_ISSETUGID -DHAVE_CONFIG_H -DHAVE_XDR_BYTESREC 27 28 29CFLAGS.nvpair.c+= -UHAVE_RPC_TYPES 30.include <bsd.lib.mk> 31