1# $FreeBSD$ 2 3SRCS= callout.cc \ 4 case_file.cc \ 5 zfsd_event.cc \ 6 vdev.cc \ 7 vdev_iterator.cc \ 8 zfsd.cc \ 9 zfsd_exception.cc \ 10 zpool_list.cc \ 11 zfsd_main.cc 12 13WARNS?= 2 14 15# Ignore warnings about Solaris specific pragmas. 16IGNORE_PRAGMA= YES 17 18CFLAGS+= -DIN_BASE 19CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 20CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include 21CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 22CFLAGS+= -I${SRCTOP}/sys 23CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 24CFLAGS+= -I${SRCTOP}/cddl/usr.sbin 25 26# use issetugid(2) 27CFLAGS+= -D_MACHINE_FLOAT_H_ -DHAVE_ISSETUGID 28 29LIBADD+= devdctl zfs util geom bsdxml sbuf nvpair avl uutil zutil 30 31cscope: 32 find ${.CURDIR} -type f -a \( -name "*.[ch]" -o -name "*.cc" \) \ 33 > ${.CURDIR}/cscope.files 34 cd ${.CURDIR} && cscope -buq ${INCFLAGS} 35