mirror of
https://github.com/opnsense/src.git
synced 2026-03-22 18:53:08 -04:00
with an eventual goal to convert all legacl zlib callers to the new zlib version: * Move generic zlib shims that are not specific to zlib 1.0.4 to sys/dev/zlib. * Connect new zlib (1.2.11) to the zlib kernel module, currently built with Z_SOLO. * Prefix the legacy zlib (1.0.4) with 'zlib104_' namespace. * Convert sys/opencrypto/cryptodeflate.c to use new zlib. * Remove bundled zlib 1.2.3 from ZFS and adapt it to new zlib and make it depend on the zlib module. * Fix Z_SOLO build of new zlib. PR: 229763 Submitted by: Yoshihiro Ota <ota j email ne jp> Reviewed by: markm (sys/dev/zlib/zlib_kmod.c) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D19706
28 lines
545 B
Makefile
28 lines
545 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/libkern
|
|
.PATH: ${SRCTOP}/sys/dev/zlib
|
|
.PATH: ${SRCTOP}/sys/contrib/zlib
|
|
|
|
KMOD= zlib
|
|
# legacy zlib - 1.0.4
|
|
SRCS= zlib.c
|
|
# newer zlib - 1.2.11
|
|
SRCS+= zcalloc.c
|
|
SRCS+= zlib_mod.c
|
|
SRCS+= adler32.c
|
|
SRCS+= crc32.c
|
|
SRCS+= deflate.c
|
|
SRCS+= inffast.c
|
|
SRCS+= inflate.c
|
|
SRCS+= inftrees.c
|
|
SRCS+= trees.c
|
|
SRCS+= zutil.c
|
|
|
|
CFLAGS+=${ZLIB_CFLAGS}
|
|
|
|
CWARNFLAGS.compress.c+=-Wno-cast-qual # compress:49
|
|
CWARNFLAGS.deflate.c+=-Wno-cast-qual # deflate.c:415
|
|
CWARNFLAGS.uncompr.c+=-Wno-cast-qual # uncompr:49
|
|
|
|
.include <bsd.kmod.mk>
|