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