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 geom m 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 os/freebsd/zutil_device_path_os.c \ 22 os/freebsd/zutil_import_os.c 23 24SRCS += zfs_ioctl_compat.c 25 26 27WARNS?= 2 28CSTD= c99 29 30CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 32CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 33CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 34CFLAGS+= -I${SRCTOP}/sys 35CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 36CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 37CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzutil 38CFLAGS+= -DHAVE_ISSETUGID -DIN_BASE 39CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 40 41.include <bsd.lib.mk> 42