Found this while trying to get macOS bootstrap to work again after OpenZFS merge. Reviewed By: #zfs, freqlabs Differential Revision: https://reviews.freebsd.org/D26192
35 lines
897 B
Makefile
35 lines
897 B
Makefile
# $FreeBSD$
|
|
|
|
SRCS= callout.cc \
|
|
case_file.cc \
|
|
zfsd_event.cc \
|
|
vdev.cc \
|
|
vdev_iterator.cc \
|
|
zfsd.cc \
|
|
zfsd_exception.cc \
|
|
zpool_list.cc \
|
|
zfsd_main.cc
|
|
|
|
WARNS?= 2
|
|
|
|
# Ignore warnings about Solaris specific pragmas.
|
|
IGNORE_PRAGMA= YES
|
|
|
|
CFLAGS+= -DIN_BASE
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
CFLAGS+= -I${SRCTOP}/cddl/usr.sbin
|
|
|
|
# use issetugid(2)
|
|
CFLAGS+= -D_MACHINE_FLOAT_H_ -DHAVE_ISSETUGID
|
|
|
|
LIBADD+= devdctl zfs zfs_core util geom bsdxml sbuf nvpair avl uutil zutil
|
|
|
|
cscope:
|
|
find ${.CURDIR} -type f -a \( -name "*.[ch]" -o -name "*.cc" \) \
|
|
> ${.CURDIR}/cscope.files
|
|
cd ${.CURDIR} && cscope -buq ${INCFLAGS}
|