NetBSD/external/cddl/osnet/Makefile.zfs
2010-02-28 15:24:04 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile.zfs,v 1.2 2010/02/28 15:24:04 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
CPPFLAGS+= -I${ZFSDIR}/dist/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