1# $FreeBSD$ 2 3ZFSTOP= ${SRCTOP}/sys/contrib/openzfs 4 5.PATH: ${ZFSTOP}/man/man4 6.PATH: ${ZFSTOP}/man/man5 7.PATH: ${ZFSTOP}/man/man7 8.PATH: ${ZFSTOP}/man/man8 9.PATH: ${ZFSTOP}/cmd/zpool 10.PATH: ${ZFSTOP}/cmd/zpool/os/freebsd 11 12 13PACKAGE= zfs 14PROG= zpool 15MAN= \ 16 spl.4 \ 17 vdevprops.7 \ 18 zfs.4 \ 19 zpool.8 \ 20 zpool-add.8 \ 21 zpool-attach.8 \ 22 zpool-checkpoint.8 \ 23 zpool-clear.8 \ 24 zpool-create.8 \ 25 zpool-destroy.8 \ 26 zpool-detach.8 \ 27 zpool-events.8 \ 28 zpool-export.8 \ 29 zpool-features.7 \ 30 zpool-get.8 \ 31 zpool-history.8 \ 32 zpool-import.8 \ 33 zpool-initialize.8 \ 34 zpool-iostat.8 \ 35 zpool-labelclear.8 \ 36 zpool-list.8 \ 37 zpool-offline.8 \ 38 zpool-reguid.8 \ 39 zpool-remove.8 \ 40 zpool-reopen.8 \ 41 zpool-replace.8 \ 42 zpool-resilver.8 \ 43 zpool-scrub.8 \ 44 zpool-split.8 \ 45 zpool-status.8 \ 46 zpool-sync.8 \ 47 zpool-trim.8 \ 48 zpool-upgrade.8 \ 49 zpool-wait.8 \ 50 zpoolconcepts.7 \ 51 zpoolprops.7 52MLINKS= \ 53 zpool-offline.8 zpool-online.8 \ 54 zpool-get.8 zpool-set.8 55SRCS= \ 56 zpool_iter.c \ 57 zpool_main.c \ 58 zpool_util.c \ 59 zpool_util.h \ 60 zpool_vdev.c \ 61 zpool_vdev_os.c 62 63WARNS?= 2 64 65CFLAGS+= \ 66 -DIN_BASE \ 67 -I${ZFSTOP}/include \ 68 -I${ZFSTOP}/lib/libspl/include \ 69 -I${ZFSTOP}/lib/libspl/include/os/freebsd \ 70 -I${SRCTOP}/sys \ 71 -I${SRCTOP}/cddl/compat/opensolaris/include \ 72 -I${ZFSTOP}/cmd/zpool \ 73 -include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \ 74 -DHAVE_ISSETUGID \ 75 -include ${SRCTOP}/sys/modules/zfs/zfs_config.h \ 76 -DSYSCONFDIR=\"/etc\" \ 77 -DPKGDATADIR=\"/usr/share/zfs\" 78 79LIBADD= geom nvpair uutil zfs zutil avl spl tpool zfs_core m 80LDADD+= -pthread 81.include <bsd.prog.mk> 82