1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libzutil 4.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libzutil/os/freebsd 5.PATH: ${SRCTOP}/sys/contrib/openzfs/module/os/freebsd/zfs 6 7LIB= zutil 8LIBADD= avl tpool 9PACKAGE= runtime 10 11INCS = zutil_import.h 12 13SRCS = \ 14 zutil_device_path.c \ 15 zutil_import.c \ 16 zutil_import.h \ 17 zutil_nicenum.c \ 18 zutil_pool.c 19 20SRCS += \ 21 zutil_device_path_os.c \ 22 zutil_import_os.c \ 23 zutil_compat.c 24 25SRCS += zfs_ioctl_compat.c 26 27 28WARNS?= 2 29CSTD= c99 30 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 32CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 33CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 34CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 35CFLAGS+= -I${SRCTOP}/sys 36CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 37CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 38CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzutil 39CFLAGS+= -DHAVE_ISSETUGID -DIN_BASE 40CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 41 42.include <bsd.lib.mk> 43