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