xref: /freebsd/cddl/usr.sbin/zfsd/Makefile.common (revision 63d1fd5970ec814904aa0f4580b10a0d302d08b2)
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?=		3
14
15# Ignore warnings about Solaris specific pragmas.
16IGNORE_PRAGMA=  YES
17
18INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
19INCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
20INCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
21INCFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
22INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
23INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libuutil/common
24INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libumem/common
25INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs_core/common
26INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
27INCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
28INCFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
29INCFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
30INCFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
31INCFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys
32
33CFLAGS= -g -DNEED_SOLARIS_BOOLEAN ${INCFLAGS}
34
35DPADD=  ${LIBDEVDCTL} ${LIBZFS} ${LIBZFS_CORE} ${LIBUTIL} ${LIBGEOM} \
36	${LIBBSDXML} ${LIBSBUF} ${LIBNVPAIR} ${LIBUUTIL}
37LIBADD=  devdctl zfs zfs_core util geom bsdxml sbuf nvpair uutil
38
39cscope:
40	find ${.CURDIR} -type f -a \( -name "*.[ch]" -o -name "*.cc" \) \
41	     > ${.CURDIR}/cscope.files
42	cd ${.CURDIR} && cscope -buq ${INCFLAGS}
43