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