1# $FreeBSD$ 2 3.PATH: ${ZFSSRC} 4.PATH: ${SYSDIR}/crypto/skein 5.PATH: ${ZFSOSSRC}/spl 6.PATH: ${OZFS}/module/zstd/lib 7ZFSSRC= zfs.c nvlist.c skein.c skein_block.c list.c zstd_shim.c zstd.c 8SRCS+= ${ZFSSRC} 9 10CFLAGS+= -I${LDRSRC} 11CFLAGS+= -I${SYSDIR}/cddl/boot/zfs 12CFLAGS+= -I${SYSDIR}/crypto/skein 13 14ZFS_EARLY= -I${ZFSOSINC} \ 15 -I${ZFSOSINC}/spl \ 16 -I${ZFSOSINC}/zfs 17 18.for i in ${ZFSSRC} 19CFLAGS.$i+= -include ${ZFSOSINC}/spl/sys/ccompile.h 20.endfor 21 22CFLAGS_EARLY.list.c+= ${ZFS_EARLY} 23CFLAGS_EARLY.zstd_shim.c+= ${ZFS_EARLY} 24 25# Can't use the early flags because there's two conflicting definitions of boolean_t in 26# the zfs code that need to be unified. 27CFLAGS.nvlist.c+= -I${ZFSOSINC}/spl 28CFLAGS.zfs.c+= -I${ZFSOSINC}/spl \ 29 -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4 30CFLAGS.zstd_shim.c+= -DIN_BASE -I${OZFS}/include 31 32# Do not unroll skein loops, reduce code size 33CFLAGS.skein_block.c+= -DSKEIN_LOOP=111 34 35CFLAGS+= -I${SYSDIR}/contrib/openzfs/include 36CFLAGS+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs 37CFLAGS.zfs.c+= -I${SYSDIR}/cddl/contrib/opensolaris/common/lz4 38 39CFLAGS+= -Wformat -Wall 40