xref: /freebsd/sys/modules/geom/geom_uzip/Makefile (revision eefd8f96fb3b3e378cbf948a14dcfde112f12dfe)
175261008SMax Khon# $FreeBSD$
275261008SMax Khon
3193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/geom/uzip ${SRCTOP}/sys/net
475261008SMax Khon
575261008SMax KhonKMOD=	geom_uzip
68f8cb840SMaxim SobolevSRCS=	g_uzip.c g_uzip_zlib.c g_uzip_lzma.c g_uzip_wrkthr.c
78f8cb840SMaxim SobolevSRCS+=	g_uzip.h g_uzip_dapi.h g_uzip_lzma.h g_uzip_zlib.h g_uzip_softc.h \
88f8cb840SMaxim Sobolev    g_uzip_wrkthr.h
975261008SMax Khon
10*eefd8f96SConrad Meyer# This works for buildkernel, but will disable zstd in geom_uzip out of tree.
11*eefd8f96SConrad Meyer.if ${KERN_OPTS:MZSTDIO} != ""
12*eefd8f96SConrad MeyerSRCS+=	g_uzip_zstd.c g_uzip_zstd.h
13*eefd8f96SConrad MeyerCFLAGS.g_uzip_zstd.c+=	-I${SRCTOP}/sys/contrib/zstd/lib/freebsd
14*eefd8f96SConrad Meyer.endif
15*eefd8f96SConrad Meyer
16*eefd8f96SConrad 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/
20*eefd8f96SConrad MeyerSRCS+=	opt_geom.h opt_zstdio.h
218f8cb840SMaxim Sobolev
2275261008SMax Khon.include <bsd.kmod.mk>
23