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 !exists(/usr/include/capsicum_helpers.h) 45.PATH: ${.CURDIR}/../../lib/libcapsicum/ 46INCS+= capsicum_helpers.h 47.endif 48 49.if empty(SRCS) 50SRCS= dummy.c 51.endif 52 53.if defined(CROSS_BUILD_TESTING) 54SUBDIR= cross-build 55.endif 56 57.include <bsd.lib.mk> 58