1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../include 4 5LIB= egacy 6SRC= 7INCSGROUPS= INCS SYSINCS 8INCS= 9 10SYSINCSDIR= ${INCLUDEDIR}/sys 11 12BOOTSTRAPPING?= 0 13 14_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/grp.h || true 15.if ${_WITH_PWCACHEDB} == 0 16.PATH: ${.CURDIR}/../../contrib/libc-pwcache 17CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \ 18 -I${.CURDIR}/../../lib/libc/include 19SRCS+= pwcache.c 20.endif 21 22_WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true 23.if ${_WITH_STRSVIS} == 0 24.PATH: ${.CURDIR}/../../contrib/libc-vis 25SRCS+= vis.c 26CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \ 27 -I${.CURDIR}/../../lib/libc/include 28.endif 29 30_WITH_REALLOCARRAY!= grep -c reallocarray /usr/include/stdlib.h || true 31.if ${_WITH_REALLOCARRAY} == 0 32.PATH: ${.CURDIR}/../../lib/libc/stdlib 33INCS+= stdlib.h 34SRCS+= reallocarray.c 35CFLAGS+= -I${.CURDIR}/../../lib/libc/include 36.endif 37 38_WITH_UTIMENS!= grep -c utimensat /usr/include/sys/stat.h || true 39.if ${_WITH_UTIMENS} == 0 40SYSINCS+= stat.h 41SRCS+= futimens.c utimensat.c 42.endif 43 44.if empty(SRCS) 45SRCS= dummy.c 46.endif 47 48.if defined(CROSS_BUILD_TESTING) 49SUBDIR= cross-build 50.endif 51 52.include <bsd.lib.mk> 53