summaryrefslogtreecommitdiffstats
path: root/chpass/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2004-11-13 20:40:32 +0000
commitb7891c6115a8ce73d6856254597f651505c4f001 (patch)
treebdf1c3b5daf05ccd35bf513c1694ed2f1f3b007b /chpass/Makefile
parent61171daebe1653e430e50dfbec2fea27de2d5f86 (diff)
downloadpw-darwin-b7891c6115a8ce73d6856254597f651505c4f001.tar.gz
pw-darwin-b7891c6115a8ce73d6856254597f651505c4f001.tar.zst
pw-darwin-b7891c6115a8ce73d6856254597f651505c4f001.zip
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
Diffstat (limited to 'chpass/Makefile')
-rw-r--r--chpass/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 8077152..a012ad8 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -8,13 +8,19 @@ SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c
BINOWN= root
BINMODE=4555
WARNS?= 5
-CFLAGS+=-DYP
+.if !defined(NO_NIS)
+CFLAGS+= -DYP
+.endif
#Some people need this, uncomment to activate
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.
-DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
-LDADD= -lcrypt -lutil -lypclnt
+DPADD= ${LIBCRYPT} ${LIBUTIL}
+LDADD= -lcrypt -lutil
+.if !defined(NO_NIS)
+DPADD+= ${LIBYPCLNT}
+LDADD+= -lypclnt
+.endif
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh