summaryrefslogtreecommitdiffstats
path: root/usr.bin/chkey/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/chkey/Makefile')
-rw-r--r--usr.bin/chkey/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/chkey/Makefile b/usr.bin/chkey/Makefile
index 8cf1ef2..f3f5bd6 100644
--- a/usr.bin/chkey/Makefile
+++ b/usr.bin/chkey/Makefile
@@ -4,7 +4,10 @@
PROG= chkey
SRCS= chkey.c generic.c update.c
-CFLAGS+=-DYP -I${.CURDIR}/../newkey
+CFLAGS+= -I${.CURDIR}/../newkey
+.if !defined(NO_NIS)
+CFLAGS+= -DYP
+.endif
DPADD= ${LIBRPCSVC} ${LIBMP} ${LIBCRYPTO}
LDADD= -lrpcsvc -lmp -lcrypto
OpenPOWER on IntegriCloud