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_grp 13 14SRCS= cap_grp.c 15.endif 16 17INCS= cap_grp.h 18 19LIBADD= nv 20 21CFLAGS+=-I${.CURDIR} 22 23HAS_TESTS= 24SUBDIR.${MK_TESTS}+= tests 25 26MAN+= cap_grp.3 27 28MLINKS+=cap_grp.3 libcap_grp.3 29MLINKS+=cap_grp.3 cap_getgrent.3 30MLINKS+=cap_grp.3 cap_getgrnam.3 31MLINKS+=cap_grp.3 cap_getgrgid.3 32MLINKS+=cap_grp.3 cap_getgrent_r.3 33MLINKS+=cap_grp.3 cap_getgrnam_r.3 34MLINKS+=cap_grp.3 cap_getgrgid_r.3 35MLINKS+=cap_grp.3 cap_setgroupent.3 36MLINKS+=cap_grp.3 cap_setgrent.3 37MLINKS+=cap_grp.3 cap_endgrent.3 38MLINKS+=cap_grp.3 cap_grp_limit_cmds.3 39MLINKS+=cap_grp.3 cap_grp_limit_fields.3 40MLINKS+=cap_grp.3 cap_grp_limit_groups.3 41 42.include <bsd.lib.mk> 43 44# GCC 13 complains incorrectly about free after failed realloc: GCC bug #110501 45CFLAGS.cap_grp.c+= ${NO_WUSE_AFTER_FREE} 46