1 # $NetBSD: Makefile.zfs,v 1.1 2009/03/26 22:11:43 ad Exp $
5 # Verify these manually
8 # Basic compilation stuff.
9 CPPFLAGS+= "-D__va_list=va_list"
10 CPPFLAGS+= "-Doffsetof(s, m)=((size_t)(&(((s *)0)->m)))"
13 # Pick a VTOC format - ick.
14 CPPFLAGS+= -D_SUNOS_VTOC_16
15 CPPFLAGS+= -D_PROPLIB_ZFS_CONFLICT
20 ZFSDIR= ${NETBSDSRCDIR}/external/cddl/osnet
22 CPPFLAGS+= -I${ZFSDIR}
23 CPPFLAGS+= -I${ZFSDIR}/include
24 CPPFLAGS+= -I${ZFSDIR}/sys
25 CPPFLAGS+= -I${ZFSDIR}/dist/uts/common
26 CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/zfs
27 CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/fs/zfs
28 CPPFLAGS+= -I${ZFSDIR}/dist/uts/common/sys
30 CPPFLAGS+= -I${ZFSDIR}/dist/common/zfs
31 CPPFLAGS+= -I${ZFSDIR}/dist/head
32 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libdevinfo
33 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libnvpair
34 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libshare/common
35 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libumem
36 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libuutil/common
37 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libzfs/common
38 CPPFLAGS+= -I${ZFSDIR}/dist/lib/libzpool/common
40 LIBAVL_SRCDIR= ${ZFSDIR}/lib/libavl
41 LIBNVPAIR_SRCDIR= ${ZFSDIR}/lib/libnvpair
42 LIBUMEM_SRCDIR= ${ZFSDIR}/lib/libumem
43 LIBUUTIL_SRCDIR= ${ZFSDIR}/lib/libuutil
44 LIBZFS_SRCDIR= ${ZFSDIR}/lib/libzfs
45 LIBZPOOL_SRCDIR= ${ZFSDIR}/lib/libzpool