Files
erofs-freebsd-out-tree/Makefile
T
2026-08-13 10:48:49 +02:00

34 lines
584 B
Makefile

KMOD= erofs
.if ${MACHINE_ARCH} != "amd64"
.error erofs supports only MACHINE_ARCH=amd64
.endif
WITH_ZSTDIO?= 0
.if empty(WITH_ZSTDIO:M0) && empty(WITH_ZSTDIO:M1)
.error WITH_ZSTDIO must be 0 or 1
.endif
SRCS= super.c \
inode.c \
data.c \
namei.c \
dir.c \
xattr.c \
erofs_vnops.c \
decompressor.c \
zmap.c \
zdata.c \
lz4.c \
decompressor_lzma.c \
decompressor_deflate.c \
decompressor_zstd.c \
vnode_if.h
CFLAGS.decompressor_zstd.c+= -I${SYSDIR}/contrib/zstd/lib/freebsd
.if ${WITH_ZSTDIO} == 1
CFLAGS.decompressor_zstd.c+= -DZSTDIO
.endif
.include <bsd.kmod.mk>