1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libzfs_core 4.PATH: ${SRCTOP}/sys/contrib/openzfs/include 5.PATH: ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 6.PATH: ${SRCTOP}/sys/contrib/openzfs/module/os/freebsd/zfs 7 8 9LIB= zfs_core 10LIBADD= nvpair spl zutil 11PACKAGE= runtime 12 13INCS= libzfs_core.h 14SRCS= libzfs_core.c \ 15 os/freebsd/libzfs_core_ioctl.c \ 16 zfs_ioctl_compat.c 17 18WARNS?= 2 19CSTD= c99 20CFLAGS+= -DIN_BASE 21CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 22CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzfs_core/common 23CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 24CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 25CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 26CFLAGS+= -I${SRCTOP}/sys 27CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 28CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include 29CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 30CFLAGS+= -DHAVE_ISSETUGID 31CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 32 33.include <bsd.lib.mk> 34