summaryrefslogtreecommitdiff
path: root/usr.bin/chpass/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-04 22:52:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-04 22:52:12 +0000
commitc16bf4a0396a8172d77e060332139043e4035240 (patch)
tree3e0826cfc227cdb2fbd0a56945da60b8afbe51a1 /usr.bin/chpass/Makefile
parent06bac5bee8932a6ff7b0f4046144858d434d8526 (diff)
permit YP to be compiled out using flag in bsd.own.mk; pr#15, peter@demon.net
Diffstat (limited to 'usr.bin/chpass/Makefile')
-rw-r--r--usr.bin/chpass/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile
index 5ecc1ca300f..c2d4bed1da3 100644
--- a/usr.bin/chpass/Makefile
+++ b/usr.bin/chpass/Makefile
@@ -1,6 +1,8 @@
-# $OpenBSD: Makefile,v 1.3 1996/06/26 05:31:53 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1996/09/04 22:52:06 deraadt Exp $
# $NetBSD: Makefile,v 1.6 1996/05/15 21:50:39 jtc Exp $
+.include <bsd.own.mk>
+
PROG= chpass
SRCS= chpass.c edit.c field.c pw_yp.c table.c util.c getpwent.c
BINOWN= root
@@ -8,7 +10,9 @@ BINMODE=4555
.PATH: ${.CURDIR}/../../lib/libc/gen
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
MLINKS= chpass.1 chfn.1 chpass.1 chsh.1
+.if defined(YP)
CFLAGS+=-DYP
+.endif
DPADD+= ${LIBRPCSVC} ${LIBUTIL}
LDADD+= -lrpcsvc -lutil