diff options
author | brooks <brooks@FreeBSD.org> | 2013-01-11 20:51:02 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-01-11 20:51:02 +0000 |
commit | f96c80800115958325477d08a370cfbf85c9db80 (patch) | |
tree | d690ab3224737d5edffe099c7b3c4652eb9cb68f /tools/build | |
parent | 74a37192c1ed61caaf37eda3424567138533cdfb (diff) | |
download | FreeBSD-src-f96c80800115958325477d08a370cfbf85c9db80.zip FreeBSD-src-f96c80800115958325477d08a370cfbf85c9db80.tar.gz |
Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow a
dependency on them.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'tools/build')
-rw-r--r-- | tools/build/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile index 76493f7..b9b548e 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -21,6 +21,22 @@ config.h: ${.CURDIR}/../../lib/libmagic/config.h grep -v HAVE_GETLINE ${.ALLSRC} > ${.TARGET} .endif +_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 + .if empty(SRCS) SRCS= dummy.c .endif |