-# $OpenBSD: Makefile,v 1.16 1997/04/18 06:47:08 deraadt Exp $
+# $OpenBSD: Makefile,v 1.17 1997/04/19 21:26:09 millert Exp $
# $NetBSD: Makefile,v 1.25 1995/10/09 02:11:28 thorpej Exp $
#
SUBDIR+= sys lkm
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
SUBDIR+= kerberosIV
.endif
.if (${MACHINE_ARCH} == "mips")
ldconfig
.endif
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
(cd ${.CURDIR}/kerberosIV && ${MAKE} build)
.endif
${MAKE} depend && ${MAKE} && ${MAKE} install
-# $OpenBSD: Makefile,v 1.3 1996/06/23 14:20:55 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1997/04/19 21:26:10 millert Exp $
# $NetBSD: Makefile,v 1.6 1995/03/23 08:46:35 mycroft Exp $
PROG= rcp
.include <bsd.own.mk> # For KERBEROS
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
.PATH: ${.CURDIR}/../../usr.bin/rlogin
SRCS+= krcmd.c kcmd.c
CFLAGS+=-DKERBEROS
-# $OpenBSD: Makefile.inc,v 1.2 1997/04/17 02:10:31 niklas Exp $
+# $OpenBSD: Makefile.inc,v 1.3 1997/04/19 21:26:11 millert Exp $
# TOP is assumed to be defined by Makefile including this one.
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${COMMONDIR}/list ${.CURDIR}/list
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
CRUNCHCONF= ${COMMONDIR}/${CBIN}-krb.conf
.else
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
make -f ${CBIN}.mk all
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
mv ${CBIN}-krb ${CBIN}
.endif
-# $Id: Makefile.inc,v 1.5 1997/03/31 07:36:05 deraadt Exp $
+# $Id: Makefile.inc,v 1.6 1997/04/19 21:26:12 millert Exp $
# TOP is assumed to be defined by Makefile including this one.
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${COMMONDIR}/list ${.CURDIR}/list
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
CRUNCHCONF= ${COMMONDIR}/${CBIN}-krb.conf
.else
CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
make -f ${CBIN}.mk all
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
mv ${CBIN}-krb ${CBIN}
.endif
-# $OpenBSD: Makefile.bsd-wrapper,v 1.21 1996/10/18 04:34:47 tholo Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.22 1997/04/19 21:26:13 millert Exp $
.include <bsd.own.mk>
doc/cvs.info doc/cvs.info-1 doc/cvs.info-2 doc/cvs.info-3 \
doc/cvs.info-4 doc/cvs.info-5 doc/cvs.info-6 doc/cvsclient.info
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
KRB=--with-krb4=/usr
.else
KRB=--without-krb4
-# $OpenBSD: Makefile,v 1.3 1997/03/18 20:48:46 maja Exp $
+# $OpenBSD: Makefile,v 1.4 1997/04/19 21:26:13 millert Exp $
PROG= sudo
MAN= sudo.8 sudoers.5
.include <bsd.own.mk> # For SKEY, KERBEROS and KERBEROS5
-.if defined(SKEY)
+.if (${SKEY} == "yes")
CFLAGS+=-DHAVE_SKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
.endif
-.if defined(KERBEROS5)
+.if (${KERBEROS5} == "yes")
CFLAGS+= -DHAVE_KERB5 -I${DESTDIR}/usr/include/kerberosIV
LDADD+= -lkrb5 -lcrypto
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
-.elif defined(KERBEROS)
+.elif (${KERBEROS} == "yes")
CFLAGS+= -DHAVE_KERB4 -I${DESTDIR}/usr/include/kerberosIV
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
-# $OpenBSD: Makefile,v 1.38 1997/02/27 18:14:50 downsj Exp $
+# $OpenBSD: Makefile,v 1.39 1997/04/19 21:26:15 millert Exp $
# $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $
# @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91
# Change SYS_INCLUDE in bsd.own.mk to "symlinks" if you don't want copies
.include <bsd.own.mk>
SYS_INCLUDE?= copies
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
RDIRS+= ../kerberosIV/include ../kerberosIV/kadm ../kerberosIV/krb
.endif
-# $OpenBSD: Makefile,v 1.11 1996/12/08 15:22:24 downsj Exp $
+# $OpenBSD: Makefile,v 1.12 1997/04/19 21:26:17 millert Exp $
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure. To produce a library that does
LIB=c
CFLAGS+=-DNLS -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include
-.if defined(YP)
+.if (${YP} == "yes")
CFLAGS+=-DYP -I${.CURDIR}/yp
.endif
LINTFLAGS=-z
.include "${.CURDIR}/termios/Makefile.inc"
.include "${.CURDIR}/time/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
-.if defined(YP)
+.if (${YP} == "yes")
.include "${.CURDIR}/yp/Makefile.inc"
.endif
# from: @(#)Makefile 5.7 (Berkeley) 4/1/91
-# $OpenBSD: Makefile,v 1.10 1997/02/26 06:17:01 downsj Exp $
+# $OpenBSD: Makefile,v 1.11 1997/04/19 21:26:18 millert Exp $
.include <bsd.own.mk>
rpc.rquotad rpc.rstatd rpc.rusersd rpc.rwalld rpc.sprayd \
talkd tcpd telnetd tftpd uucpd
-.if defined(YP)
+.if (${YP} == "yes")
SUBDIR+=rpc.yppasswdd
.endif
-# $OpenBSD: Makefile,v 1.9 1997/03/26 00:34:34 deraadt Exp $
+# $OpenBSD: Makefile,v 1.10 1997/04/19 21:26:20 millert Exp $
# $NetBSD: Makefile,v 1.13 1996/02/16 02:07:41 cgd Exp $
# @(#)Makefile 8.2 (Berkeley) 4/4/94
.include <bsd.own.mk>
-.if defined(SKEY)
+.if (${SKEY} == "yes")
CFLAGS+=-DSKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
.endif
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
SRCS+= klogin.c
.PATH: ${.CURDIR}/../../usr.bin/login
CFLAGS+= -DKERBEROS
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
-# $Id: Makefile,v 1.2 1995/12/16 22:20:19 tholo Exp $
+# $Id: Makefile,v 1.3 1997/04/19 21:26:20 millert Exp $
PROG= rlogind
SRCS= rlogind.c
.include <bsd.own.mk> # For KERBEROS
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
SRCS= rlogind.c des_rw.c
.PATH: ${.CURDIR}/../../usr.bin/rlogin
CFLAGS+=-DKERBEROS
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
-# $Id: Makefile,v 1.2 1995/12/16 22:20:22 tholo Exp $
+# $Id: Makefile,v 1.3 1997/04/19 21:26:21 millert Exp $
PROG= rshd
SRCS= rshd.c
.include <bsd.own.mk>
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
SRCS+= des_rw.c
.PATH: ${.CURDIR}/../../usr.bin/rlogin
CFLAGS+=-DKERBEROS
-# $OpenBSD: Makefile,v 1.4 1996/04/21 23:46:48 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 1997/04/19 21:26:22 millert Exp $
# $NetBSD: Makefile,v 1.5 1996/02/18 11:59:09 fvdl Exp $
# @(#)Makefile 8.2 (Berkeley) 3/27/94
#.PATH: ${MOUNT}
CFLAGS+=-DNFS
+# NFSKERB is not currently supported
+#
#.include <bsd.own.mk> # For KERBEROS
-
-.if defined(KERBEROS)
-CFLAGS+=-DNFSKERB
-DPADD+= ${LIBKRB} ${LIBDES}
-LDADD+= -lkrb -ldes
-.endif
+#
+#.if (${KERBEROS} == "yes")
+#CFLAGS+=-DNFSKERB
+#DPADD+= ${LIBKRB} ${LIBDES}
+#LDADD+= -lkrb -ldes
+#.endif
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.3 1996/06/23 14:31:55 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1997/04/19 21:26:23 millert Exp $
# $NetBSD: Makefile,v 1.10 1995/03/18 14:58:57 cgd Exp $
PROG= nfsd
.include <bsd.own.mk> # For KERBEROS
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
CFLAGS+=-DKERBEROS
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
-# $OpenBSD: bsd.own.mk,v 1.14 1997/02/18 15:52:36 rahnds Exp $
+# $OpenBSD: bsd.own.mk,v 1.15 1997/04/19 21:26:08 millert Exp $
# $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
+# Host-specific overrides
.if defined(MAKECONF) && exists(${MAKECONF})
.include "${MAKECONF}"
.elif exists(/etc/mk.conf)
.include "/etc/mk.conf"
.endif
-# Defining `SKEY' causes support for S/key authentication to be compiled in.
-SKEY= yes
-# Defining `KERBEROS' causes support for Kerberos authentication to be
-# compiled in.
-KERBEROS= yes
-# Defining 'KERBEROS5' causes support for Kerberos5 authentication to be
-# compiled in.
-#KERBEROS5= yes
-# Defining 'YP' causes support for NIS/YP to be compiled in
-YP= yes
+# Set `SKEY' to `yes' to build with support for S/key authentication.
+SKEY?= yes
+# Set `KERBEROS' to `yes' to build with support for Kerberos authentication.
+KERBEROS?= yes
+# Set `KERBEROS5' to `yes' to build with support for Kerberos5 authentication.
+KERBEROS5?= no
+# Set 'YP' to `yes' to build with causes support for NIS/YP.
+YP?= yes
# where the system object and source trees are kept; can be configurable
# by the user in case they want them in ~/foosrc and ~/fooobj, for example
-# $OpenBSD: Makefile,v 1.40 1997/04/08 02:45:10 millert Exp $
+# $OpenBSD: Makefile,v 1.41 1997/04/19 21:26:24 millert Exp $
# $NetBSD: Makefile,v 1.62 1996/03/10 05:45:43 thorpej Exp $
# from: @(#)Makefile 5.8.1.1 (Berkeley) 5/8/91
xargs xinstall xlint xstr yacc yes \
gprof
-.if defined(YP)
+.if (${YP} == "yes")
SUBDIR+=ypcat ypmatch ypwhich
.endif
-# $OpenBSD: Makefile,v 1.5 1996/10/03 19:31:25 tholo Exp $
+# $OpenBSD: Makefile,v 1.6 1997/04/19 21:26:25 millert Exp $
# $NetBSD: Makefile,v 1.6 1996/05/15 21:50:39 jtc Exp $
.include <bsd.own.mk>
.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)
+.if (${YP} == "yes")
CFLAGS+=-DYP -I${.CURDIR}/../../lib/libc/yp
.endif
DPADD+= ${LIBRPCSVC} ${LIBUTIL}
-# $OpenBSD: Makefile,v 1.5 1997/03/26 00:35:27 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 1997/04/19 21:26:26 millert Exp $
PROG= lock
BINOWN= root
.include <bsd.own.mk>
-.if defined(SKEY)
+.if (${SKEY} == "yes")
CFLAGS+=-DSKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
-# $OpenBSD: Makefile,v 1.8 1997/03/26 00:35:29 deraadt Exp $
+# $OpenBSD: Makefile,v 1.9 1997/04/19 21:26:26 millert Exp $
# $NetBSD: Makefile,v 1.10 1994/12/23 06:52:56 jtc Exp $
PROG= login
.include <bsd.own.mk> # For SKEY, KERBEROS and KERBEROS5
-.if defined(SKEY)
+.if (${SKEY} == "yes")
CFLAGS+=-DSKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
.endif
-.if defined(KERBEROS5)
+.if (${KERBEROS5} == "yes")
CFLAGS+= -DKERBEROS5
SRCS+= k5login.c
LDADD+= -lkrb5 -lcrypto
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
-.elif defined(KERBEROS)
+.elif (${KERBEROS} == "yes")
CFLAGS+= -DKERBEROS
SRCS+= klogin.c
LDADD+= -lkrb -ldes
-# $OpenBSD: Makefile,v 1.14 1997/03/27 00:30:52 weingart Exp $
+# $OpenBSD: Makefile,v 1.15 1997/04/19 21:26:27 millert Exp $
.include <bsd.own.mk>
LDADD+= -lrpcsvc -lutil
CFLAGS+= -I${.CURDIR}
-.if defined(YP)
+.if (${YP} == "yes")
CFLAGS+=-DYP -I${.CURDIR}/../../lib/libc/yp
.endif
.include <bsd.own.mk> # For Kerberos
-.if defined(KERBEROS5)
+.if (${KERBEROS5} == "yes")
#SRCS+= krb5_passwd.c XXX fix the /tmp/tkt_cpw_%d race first + others
CFLAGS+= -DKERBEROS5
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
LDADD+= -lkrb5 -lcrypto
-.elif defined(KERBEROS)
+.elif (${KERBEROS} == "yes")
.PATH: ${.CURDIR}/../rlogin
SRCS+= krb_passwd.c des_rw.c
CFLAGS+= -DKERBEROS
-# $OpenBSD: Makefile,v 1.3 1996/06/26 05:38:30 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1997/04/19 21:26:28 millert Exp $
# $NetBSD: Makefile,v 1.5 1995/03/21 07:58:28 cgd Exp $
PROG= rlogin
.include <bsd.own.mk>
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
CFLAGS+=-DKERBEROS
SRCS+= krcmd.c kcmd.c des_rw.c
LDADD+= -lkrb -ldes
-# $OpenBSD: Makefile,v 1.3 1996/06/26 05:38:48 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1997/04/19 21:26:29 millert Exp $
PROG= rsh
SRCS= rsh.c
.include <bsd.own.mk> # For KERBEROS
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
SRCS+= des_rw.c
.PATH: ${.CURDIR}/../rlogin
CFLAGS+=-DKERBEROS
-# $OpenBSD: Makefile,v 1.5 1997/03/26 00:35:37 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 1997/04/19 21:26:30 millert Exp $
PROG= su
BINOWN= root
.include <bsd.own.mk>
-.if defined(SKEY)
+.if (${SKEY} == "yes")
CFLAGS+=-DSKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
.endif
-.if defined(KERBEROS)
+.if (${KERBEROS} == "yes")
CFLAGS+=-DKERBEROS
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
-# $OpenBSD: Makefile,v 1.25 1997/03/03 11:59:10 downsj Exp $
+# $OpenBSD: Makefile,v 1.26 1997/04/19 21:26:31 millert Exp $
# not yet done: catman
syslogd tcpdump timed traceroute trpt trsp \
vipw vnconfig zdump zic
-.if defined (YP)
+.if (${YP} == "yes")
SUBDIR+=ypbind yppoll ypset ypserv
.endif
# from: @(#)Makefile.config 8.1 (Berkeley) 6/6/93
-# $Id: Makefile.config,v 1.2 1996/09/04 22:52:08 deraadt Exp $
+# $Id: Makefile.config,v 1.3 1997/04/19 21:26:32 millert Exp $
#
.include <bsd.own.mk>
# Also define HAS_NIS_RELOAD to include map
# enumeration code implementing "cache:=all"
#
-.if defined(YP)
+.if (${YP} == "yes")
HAS_NIS_MAPS = -DHAS_NIS_MAPS -DHAS_NIS_RELOAD
.endif
-# $Id: Makefile,v 1.2 1996/09/04 22:52:09 deraadt Exp $
+# $Id: Makefile,v 1.3 1997/04/19 21:26:33 millert Exp $
.include <bsd.own.mk>
-.if defined(YP)
+.if (${YP} == "yes")
CFLAGS+=-DYP
.endif
MLINKS= pcnfsd.8 rpc.pcnfsd.8
CFLAGS += -DUSER_CACHE -DWTMP -I${.OBJDIR}
-.if defined(YP)
+.if (${YP} == "yes")
CFLAGS+=-DUSE_YP
.endif