# $NetBSD: Makefile.zfs,v 1.10 2021/04/13 04:52:00 mrg Exp $ .include <bsd.own.mk> # Verify these manually NOGCCERROR= yes # Basic compilation stuff. CPPFLAGS+= -std=c99 # Pick a VTOC format - ick. CPPFLAGS+= -D_SUNOS_VTOC_16 CPPFLAGS+= -D_PROPLIB_ZFS_CONFLICT #CFLAGS+= -O0 -fno-inline #DBG= -g ZFSDIR= ${NETBSDSRCDIR}/external/cddl/osnet CPPFLAGS+= -I${ZFSDIR} CPPFLAGS+= -I${ZFSDIR}/include CPPFLAGS+= -I${ZFSDIR}/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/libzfs_core/common CPPFLAGS+= -I${ZFSDIR}/dist/lib/libzpool/common CPPFLAGS+= -I${ZFSDIR}/dist/common 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 CWARNFLAGS+= -Wno-missing-field-initializers CWARNFLAGS+= -Wno-strict-prototypes CWARNFLAGS+= -Wno-cast-qual CWARNFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wno-discarded-qualifiers :} CWARNFLAGS+= -Wno-switch CWARNFLAGS+= -Wno-missing-prototypes CWARNFLAGS+= -Wno-unused-variable CWARNFLAGS+= -Wno-shadow 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 LIBZFS_CORE_SRCDIR= ${ZFSDIR}/lib/libzfs_core LIBZPOOL_SRCDIR= ${ZFSDIR}/lib/libzpool COPTS+= -fcommon |