1 # $NetBSD: Makefile,v 1.30 2023/09/05 00:12:14 mrg Exp $ 2 # 3 4 .include <bsd.own.mk> 5 6 USE_FORT?= yes # data-driven bugs? 7 8 WARNS?= 5 9 10 LIB= puffs 11 12 SRCS= puffs.c callcontext.c creds.c dispatcher.c flush.c \ 13 framebuf.c null.c opdump.c paths.c pnode.c requests.c \ 14 subr.c suspend.c 15 MAN= puffs.3 puffs_cc.3 puffs_cred.3 puffs_flush.3 \ 16 puffs_framebuf.3 puffs_node.3 puffs_ops.3 puffs_path.3 17 INCS= puffs.h puffsdump.h 18 INCSDIR= /usr/include 19 LINTFLAGS+=-S -w 20 LINTFLAGS+= -X 351 # extern declaration outside header 21 LINTFLAGS+= -X 352 # nested extern declaration 22 23 # XXXGCC12 - accesses struct puffs_cc* via stack pointers, returns the 24 # address to caller 25 COPTS.callcontext.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 12:? -Wno-dangling-pointer :} 26 27 .include <bsd.lib.mk> 28