xref: /freebsd/lib/libcasper/services/cap_netdb/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1SHLIBDIR?=	/lib
2
3.include <src.opts.mk>
4
5PACKAGE=	runtime
6
7SHLIB_MAJOR=	1
8INCSDIR?=	${INCLUDEDIR}/casper
9
10.if ${MK_CASPER} != "no"
11SHLIB=	cap_netdb
12
13SRCS=	cap_netdb.c
14.endif
15
16INCS=	cap_netdb.h
17
18LIBADD=	nv
19
20CFLAGS+=-I${.CURDIR}
21
22HAS_TESTS=
23SUBDIR.${MK_TESTS}+= tests
24
25MAN+=	cap_netdb.3
26
27MLINKS+=cap_netdb.3 libcap_netdb.3
28MLINKS+=cap_netdb.3 cap_getprotobyname.3
29
30.include <bsd.lib.mk>
31
32# GCC 13 complains incorrectly about free after failed realloc: GCC bug #110501
33CFLAGS.cap_netdb.c+= ${NO_WUSE_AFTER_FREE}
34