175261008SMax Khon# $FreeBSD$ 275261008SMax Khon 3*c0632867SJohn Baldwin.include <kmod.opts.mk> 4*c0632867SJohn Baldwin 5193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net 675261008SMax Khon 775261008SMax KhonKMOD= geom_uzip 88f8cb840SMaxim SobolevSRCS= g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c 98f8cb840SMaxim SobolevSRCS+= g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \ 108f8cb840SMaxim Sobolev g_uzip_wrkthr.h 1175261008SMax Khon 12eefd8f96SConrad Meyer# This works for buildkernel, but will disable zstd in geom_uzip out of tree. 13eefd8f96SConrad Meyer.if ${KERN_OPTS:MZSTDIO} != "" 14eefd8f96SConrad MeyerSRCS+= g_uzip_zstd.c g_uzip_zstd.h 15eefd8f96SConrad MeyerCFLAGS.g_uzip_zstd.c+= -I${SRCTOP}/sys/contrib/zstd/lib/freebsd 16eefd8f96SConrad Meyer.endif 17eefd8f96SConrad Meyer 18eefd8f96SConrad Meyer#CFLAGS= -g -DINVARIANT_SUPPORT -DINVARIANTS 198f8cb840SMaxim Sobolev 202b0cabbdSXin LICFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \ 21193d9e76SEnji Cooper -I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/ 22eefd8f96SConrad MeyerSRCS+= opt_geom.h opt_zstdio.h 238f8cb840SMaxim Sobolev 2475261008SMax Khon.include <bsd.kmod.mk> 25