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 17LIBADD+= spl 18LIBADD+= zfsbootenv 19 20CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES 21CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 22CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd 23CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include 24CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 25CFLAGS+= -I${SRCTOP}/sys 26CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 27CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 28CFLAGS+= -DHAVE_ISSETUGID 29 30 31HAS_TESTS= YES 32SUBDIR.${MK_TESTS}+= tests 33 34.include <bsd.lib.mk> 35