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