Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/zfs/Makefile.inc
# $FreeBSD$ | # $FreeBSD$ | ||||
.PATH: ${ZFSSRC} | .PATH: ${ZFSSRC} | ||||
SRCS+= zfs.c nvlist.c skein.c skein_block.c list.c | SRCS+= zfs.c nvlist.c skein.c skein_block.c list.c zstd_shim.c zstd.c | ||||
.PATH: ${SYSDIR}/crypto/skein | .PATH: ${SYSDIR}/crypto/skein | ||||
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/os | .PATH: ${SYSDIR}/contrib/openzfs/module/os/freebsd/spl | ||||
.PATH: ${SYSDIR}/contrib/openzfs/module/zstd/lib | |||||
CFLAGS+= -I${LDRSRC} | CFLAGS+= -I${LDRSRC} | ||||
CFLAGS+= -I${SYSDIR}/cddl/boot/zfs | CFLAGS+= -I${SYSDIR}/cddl/boot/zfs | ||||
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/common | |||||
CFLAGS+= -I${SYSDIR}/crypto/skein | CFLAGS+= -I${SYSDIR}/crypto/skein | ||||
ZFS_EARLY= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd \ | |||||
-I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl \ | |||||
-I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs | |||||
CFLAGS_EARLY.list.c+= ${ZFS_EARLY} | |||||
mmacy: Clever. | |||||
Done Inline Actionsthanks. imp: thanks. | |||||
CFLAGS_EARLY.zstd_shim.c+= ${ZFS_EARLY} | |||||
# Can't use the early flags because there's two conflicting definitions of boolean_t in | |||||
# the zfs code that need to be unified. | |||||
CFLAGS.nvlist.c+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl | |||||
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl | |||||
CFLAGS.zstd_shim.c+= -DIN_BASE \ | |||||
-I${SRCTOP}/sys/contrib/openzfs/include \ | |||||
# Do not unroll skein loops, reduce code size | # Do not unroll skein loops, reduce code size | ||||
CFLAGS.skein_block.c+= -DSKEIN_LOOP=111 | CFLAGS.skein_block.c+= -DSKEIN_LOOP=111 | ||||
CFLAGS.zfs.c+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4 | CFLAGS.zfs.c+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4 | ||||
CFLAGS+= -Wformat -Wall | CFLAGS+= -Wformat -Wall |
Clever.