1.PATH: ${SRCTOP}/sys/libkern 2.PATH: ${SRCTOP}/sys/dev/zlib 3.PATH: ${SRCTOP}/sys/contrib/zlib 4 5KMOD= zlib 6SRCS+= zcalloc.c 7SRCS+= zlib_mod.c 8SRCS+= adler32.c 9SRCS+= compress.c 10SRCS+= crc32.c 11SRCS+= deflate.c 12SRCS+= inffast.c 13SRCS+= inflate.c 14SRCS+= inftrees.c 15SRCS+= trees.c 16SRCS+= uncompr.c 17SRCS+= zutil.c 18 19CWARNFLAGS.compress.c+=-Wno-cast-qual # compress:49 20CWARNFLAGS.deflate.c+=-Wno-cast-qual # deflate.c:415 21CWARNFLAGS.uncompr.c+=-Wno-cast-qual # uncompr:49 22CWARNFLAGS.crc32.c+=${NO_WSTRICT_PROTOTYPES} # crc32.c:586 23CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232 24CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32 25 26.include <bsd.kmod.mk> 27 28CWARNFLAGS+=${NO_WDEPRECATED_NON_PROTOTYPE} # https://github.com/madler/zlib/issues/633 29