1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../include
4
5LIB=		egacy
6SRCS=
7INCSGROUPS=	INCS
8INCS=		
9
10BOOTSTRAPPING?=	0
11
12_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
13.if ${_WITH_PWCACHEDB} == 0
14.PATH: ${.CURDIR}/../../contrib/libc-pwcache
15CFLAGS+=	-I${.CURDIR}/../../contrib/libc-pwcache \
16		-I${.CURDIR}/../../lib/libc/include
17SRCS+=		pwcache.c
18.endif
19
20_WITH_STRSVIS!=	grep -c strsvis /usr/include/vis.h || true
21.if ${_WITH_STRSVIS} == 0
22.PATH: ${.CURDIR}/../../contrib/libc-vis
23SRCS+=		vis.c
24CFLAGS+=	-I${.CURDIR}/../../contrib/libc-vis \
25		-I${.CURDIR}/../../lib/libc/include
26.endif
27
28.if empty(SRCS)
29SRCS=		dummy.c
30.endif
31
32.if defined(CROSS_BUILD_TESTING)
33SUBDIR=		cross-build
34.endif
35
36.include <bsd.lib.mk>
37