xref: /freebsd/sys/modules/geom/geom_uzip/Makefile (revision c3dd45c47be9b3ea47edc84c6bc6187ab74d966b)
175261008SMax Khon# $FreeBSD$
275261008SMax Khon
3c0632867SJohn Baldwin.include <kmod.opts.mk>
4c0632867SJohn 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.
13*c3dd45c4SJohn BaldwinSRCS.ZSTDIO+=	g_uzip_zstd.c g_uzip_zstd.h
14eefd8f96SConrad MeyerCFLAGS.g_uzip_zstd.c+=	-I${SRCTOP}/sys/contrib/zstd/lib/freebsd
15eefd8f96SConrad Meyer
16eefd8f96SConrad Meyer#CFLAGS=	-g -DINVARIANT_SUPPORT -DINVARIANTS
178f8cb840SMaxim Sobolev
182b0cabbdSXin LICFLAGS.g_uzip_lzma.c+= -I${SRCTOP}/sys/contrib/xz-embedded/freebsd \
19193d9e76SEnji Cooper	-I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz/
20eefd8f96SConrad MeyerSRCS+=	opt_geom.h opt_zstdio.h
218f8cb840SMaxim Sobolev
2275261008SMax Khon.include <bsd.kmod.mk>
23