2003-04-05 22:30:30 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../include
|
|
|
|
|
2003-04-06 23:46:44 +02:00
|
|
|
LIB= egacy
|
2012-09-12 00:38:33 +02:00
|
|
|
SRC=
|
2003-04-05 22:30:30 +02:00
|
|
|
INCSGROUPS= INCS
|
2012-09-12 00:38:33 +02:00
|
|
|
INCS=
|
2003-04-05 22:30:30 +02:00
|
|
|
|
|
|
|
BOOTSTRAPPING?= 0
|
|
|
|
|
2015-11-16 22:05:38 +01:00
|
|
|
_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/grp.h || true
|
2013-01-11 21:51:02 +01:00
|
|
|
.if ${_WITH_PWCACHEDB} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libc-pwcache
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
|
|
|
|
-I${.CURDIR}/../../lib/libc/include
|
|
|
|
SRCS+= pwcache.c
|
|
|
|
.endif
|
|
|
|
|
2015-11-16 22:05:38 +01:00
|
|
|
_WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
|
2013-01-11 21:51:02 +01:00
|
|
|
.if ${_WITH_STRSVIS} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libc-vis
|
|
|
|
SRCS+= vis.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
|
|
|
|
-I${.CURDIR}/../../lib/libc/include
|
|
|
|
.endif
|
|
|
|
|
2015-11-16 22:05:38 +01:00
|
|
|
_WITH_REALLOCARRAY!= grep -c reallocarray /usr/include/stdlib.h || true
|
2015-05-16 00:19:35 +02:00
|
|
|
.if ${_WITH_REALLOCARRAY} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/stdlib
|
|
|
|
INCS+= stdlib.h
|
|
|
|
SRCS+= reallocarray.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../lib/libc/include
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 22:30:30 +02:00
|
|
|
.if empty(SRCS)
|
|
|
|
SRCS= dummy.c
|
|
|
|
.endif
|
|
|
|
|
2005-03-02 17:40:51 +01:00
|
|
|
.if defined(CROSS_BUILD_TESTING)
|
|
|
|
SUBDIR= cross-build
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 22:30:30 +02:00
|
|
|
.include <bsd.lib.mk>
|