xref: /freebsd/cddl/usr.sbin/zfsd/Makefile.common (revision e2df9bb44109577475aeb186e7186ac040f9bde1)
17a0c41d5SAlan SomersSRCS=		callout.cc		\
27a0c41d5SAlan Somers		case_file.cc		\
37a0c41d5SAlan Somers		zfsd_event.cc		\
47a0c41d5SAlan Somers		vdev.cc			\
57a0c41d5SAlan Somers		vdev_iterator.cc	\
67a0c41d5SAlan Somers		zfsd.cc			\
77a0c41d5SAlan Somers		zfsd_exception.cc	\
87a0c41d5SAlan Somers		zpool_list.cc		\
97a0c41d5SAlan Somers		zfsd_main.cc
107a0c41d5SAlan Somers
119e5787d2SMatt MacyWARNS?=		2
127a0c41d5SAlan Somers
137a0c41d5SAlan Somers# Ignore warnings about Solaris specific pragmas.
147a0c41d5SAlan SomersIGNORE_PRAGMA=  YES
157a0c41d5SAlan Somers
169e5787d2SMatt MacyCFLAGS+= -DIN_BASE
179e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
189e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
199e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
20*e2df9bb4SMartin MatuskaCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include
219e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys
229e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
239e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/cddl/usr.sbin
247a0c41d5SAlan Somers
25e3aa18adSMartin MatuskaCFLAGS+= -DHAVE_ISSETUGID
268ccd0b87SBrooks DavisCFLAGS+= -DHAVE_EXECVPE
277a0c41d5SAlan Somers
289e9c651cSGreg VLIBADD+=	devdctl zfs util geom bsdxml sbuf nvpair avl uutil zutil
297a0c41d5SAlan Somers
307a0c41d5SAlan Somerscscope:
317a0c41d5SAlan Somers	find ${.CURDIR} -type f -a \( -name "*.[ch]" -o -name "*.cc" \) \
327a0c41d5SAlan Somers	     > ${.CURDIR}/cscope.files
337a0c41d5SAlan Somers	cd ${.CURDIR} && cscope -buq ${INCFLAGS}
34