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