1# $FreeBSD$ 2 3.include <kmod.opts.mk> 4 5.PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net 6 7KMOD= geom_uzip 8SRCS= g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c 9SRCS+= g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \ 10 g_uzip_wrkthr.h 11 12# This works for buildkernel, but will disable zstd in geom_uzip out of tree. 13.if ${KERN_OPTS:MZSTDIO} != "" 14SRCS+= g_uzip_zstd.c g_uzip_zstd.h 15CFLAGS.g_uzip_zstd.c+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd 16.endif 17 18#CFLAGS= -g -DINVARIANT_SUPPORT -DINVARIANTS 19 20CFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ 21 -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/ 22SRCS+= opt_geom.h opt_zstdio.h 23 24.include <bsd.kmod.mk> 25