4 .PATH: ${SYSDIR}/crypto/skein
6 .PATH: ${OZFS}/module/zstd/lib
7 ZFSSRC= zfs.c nvlist.c skein.c skein_block.c list.c
8 .if ${MACHINE_ARCH} != aarch64
9 ZFSSRC+= zstd_shim.c zstd.c
10 CFLAGS+= -DHAS_ZSTD_ZFS
15 CFLAGS+= -I${SYSDIR}/cddl/boot/zfs
16 CFLAGS+= -I${SYSDIR}/crypto/skein
18 ZFS_EARLY= -I${ZFSOSINC} \
23 CFLAGS.$i+= -include ${ZFSOSINC}/spl/sys/ccompile.h
26 CFLAGS_EARLY.list.c+= ${ZFS_EARLY}
27 CFLAGS_EARLY.zstd_shim.c+= ${ZFS_EARLY}
29 # Can't use the early flags because there's two conflicting definitions of boolean_t in
30 # the zfs code that need to be unified.
31 CFLAGS.nvlist.c+= -I${ZFSOSINC}/spl
32 CFLAGS.zfs.c+= -I${ZFSOSINC}/spl \
33 -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4
34 CFLAGS.zstd.c+= -U__BMI__
35 CFLAGS.zstd_shim.c+= -DIN_BASE -I${OZFS}/include
37 # Do not unroll skein loops, reduce code size
38 CFLAGS.skein_block.c+= -DSKEIN_LOOP=111
40 CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
41 CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
42 CFLAGS.zfs.c+= -I${SYSDIR}/cddl/contrib/opensolaris/common/lz4
44 CFLAGS+= -Wformat -Wall