1# $FreeBSD$ 2 3SHLIBDIR?= /lib 4 5.include <src.opts.mk> 6 7LIB= be 8SHLIB_MAJOR= 1 9SHLIB_MINOR= 0 10 11SRCS= be.c be_access.c be_error.c be_info.c 12INCS= be.h 13MAN= libbe.3 14 15LIBADD+= zfs 16LIBADD+= nvpair spl 17 18CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES 19CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 20CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd 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 27 28 29HAS_TESTS= YES 30SUBDIR.${MK_TESTS}+= tests 31 32.include <bsd.lib.mk> 33