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 ZFSSRC+= zstd_shim.c zstd.c
9 CFLAGS+= -DHAS_ZSTD_ZFS
13 CFLAGS+= -I${SYSDIR}/cddl/boot/zfs
14 CFLAGS+= -I${SYSDIR}/crypto/skein
16 ZFS_EARLY= -I${ZFSOSINC} \
21 CFLAGS.$i+= -include ${ZFSOSINC}/spl/sys/ccompile.h
24 CFLAGS_EARLY.list.c+= ${ZFS_EARLY}
25 CFLAGS_EARLY.zstd_shim.c+= ${ZFS_EARLY}
27 # Can't use the early flags because there's two conflicting definitions of boolean_t in
28 # the zfs code that need to be unified.
29 CFLAGS.nvlist.c+= -I${ZFSOSINC}/spl
30 CFLAGS.zfs.c+= -I${ZFSOSINC}/spl \
31 -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4
32 CFLAGS.zstd.c+= -U__BMI__
33 CFLAGS.zstd_shim.c+= -DIN_BASE -I${OZFS}/include
35 # Do not unroll skein loops, reduce code size
36 CFLAGS.skein_block.c+= -DSKEIN_LOOP=111
38 CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
39 CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
40 CFLAGS.zfs.c+= -I${SYSDIR}/cddl/contrib/opensolaris/common/lz4
42 CFLAGS+= -Wformat -Wall