NetBSD/external/cddl/osnet/Makefile.zfs
haad fc8ec0b896 Add NetBSD Solaris compat code and reachover Makefiles. Most of code written
by Andrew Doran some of it by me.

This is still work in progress code. There are known issues. Zfs can panic
your system still. I will commit integration bits and needed kernel bits
later when we fix most obvious bugs. This code need some support from our
kernel which I will commit in a separate patch and therefore itnot work yet.

Issues:

1) Support for openat/fstatat syscalls.
2) getnewvnode locking against myself panic when reclaiming vnodes
3) Replace solaris taskq with our workqueue which doesn't need to alloc
   anything during work.
4) Investigate problems with NO_WAIT allocations.

Oked by core@ and ad@.
2009-08-07 20:57:55 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile.zfs,v 1.1 2009/08/07 20:57:55 haad Exp $
.include <bsd.own.mk>
# Verify these manually
NOGCCERROR= yes
# Basic compilation stuff.
CPPFLAGS+= "-D__va_list=va_list"
CPPFLAGS+= "-Doffsetof(s, m)=((size_t)(&(((s *)0)->m)))"
CPPFLAGS+= -std=c99
# Pick a VTOC format - ick.
CPPFLAGS+= -D_SUNOS_VTOC_16
CPPFLAGS+= -D_PROPLIB_ZFS_CONFLICT
CPPFLAGS+= -g
LDFLAGS+= -g
ZFSDIR= ${NETBSDSRCDIR}/external/cddl/osnet
CPPFLAGS+= -I${ZFSDIR}
CPPFLAGS+= -I${ZFSDIR}/include
CPPFLAGS+= -I${ZFSDIR}/sys
CPPFLAGS+= -I${ZFSDIR}/dist/uts/common
CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/zfs
CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/fs/zfs
CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/sys
CPPFLAGS+= -I${ZFSDIR}/dist/common/zfs
CPPFLAGS+= -I${ZFSDIR}/dist/head
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libdevinfo
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libnvpair
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libshare/common
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libumem
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libuutil/common
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libzfs/common
CPPFLAGS+= -I${ZFSDIR}/dist/lib/libzpool/common
LIBAVL_SRCDIR= ${ZFSDIR}/lib/libavl
LIBNVPAIR_SRCDIR= ${ZFSDIR}/lib/libnvpair
LIBUMEM_SRCDIR= ${ZFSDIR}/lib/libumem
LIBUUTIL_SRCDIR= ${ZFSDIR}/lib/libuutil
LIBZFS_SRCDIR= ${ZFSDIR}/lib/libzfs
LIBZPOOL_SRCDIR= ${ZFSDIR}/lib/libzpool