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