From b7891c6115a8ce73d6856254597f651505c4f001 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Sat, 13 Nov 2004 20:40:32 +0000 Subject: 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 PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks --- chpass/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'chpass/Makefile') 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 -- cgit v1.2.3-56-ge451