2003-04-05 20:30:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../include
|
|
|
|
|
2003-04-06 21:46:44 +00:00
|
|
|
LIB= egacy
|
2012-09-11 22:38:33 +00:00
|
|
|
SRC=
|
2003-04-05 20:30:30 +00:00
|
|
|
INCSGROUPS= INCS
|
2012-09-11 22:38:33 +00:00
|
|
|
INCS=
|
2003-04-05 20:30:30 +00:00
|
|
|
|
|
|
|
BOOTSTRAPPING?= 0
|
|
|
|
|
2012-09-11 22:38:33 +00:00
|
|
|
_WITH_GETLINE!= grep -c _WITH_GETLINE /usr/include/stdio.h || true
|
|
|
|
.if ${_WITH_GETLINE} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/file ${.CURDIR}/../../lib/libmagic
|
|
|
|
SRCS= getline.c config.h
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -I.
|
|
|
|
CLEANFILES+= config.h
|
|
|
|
|
|
|
|
${SRCS:N*.h:R:S/$/.o/}: config.h
|
|
|
|
config.h: ${.CURDIR}/../../lib/libmagic/config.h
|
|
|
|
grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
2013-01-11 20:51:02 +00:00
|
|
|
_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
|
|
|
|
.if ${_WITH_PWCACHEDB} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libc-pwcache
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libc-pwcache \
|
|
|
|
-I${.CURDIR}/../../lib/libc/include
|
|
|
|
SRCS+= pwcache.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
_WITH_STRSVIS!= grep -c strsvis /usr/include/vis.h || true
|
|
|
|
.if ${_WITH_STRSVIS} == 0
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libc-vis
|
|
|
|
SRCS+= vis.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libc-vis \
|
|
|
|
-I${.CURDIR}/../../lib/libc/include
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 20:30:30 +00:00
|
|
|
.if empty(SRCS)
|
|
|
|
SRCS= dummy.c
|
|
|
|
.endif
|
|
|
|
|
2005-03-02 16:40:51 +00:00
|
|
|
.if defined(CROSS_BUILD_TESTING)
|
|
|
|
SUBDIR= cross-build
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 20:30:30 +00:00
|
|
|
.include <bsd.lib.mk>
|