Conditionalize s/key support.

This commit is contained in:
mycroft 1997-10-12 13:08:41 +00:00
parent 37d3b7eb77
commit 5566d4c1f1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 1997/10/08 09:07:16 mrg Exp $
# $NetBSD: Makefile,v 1.21 1997/10/12 13:08:41 mycroft Exp $
# @(#)Makefile 8.2 (Berkeley) 4/4/94
# XXX Work-around a compiler bug for now... can't use -O
@ -7,20 +7,24 @@ CFLAGS=
.endif
PROG= ftpd
CFLAGS+=-DHASSETPROCTITLE -DSKEY -Dunix
SRCS= conf.c ftpd.c ftpcmd.c logwtmp.c popen.c
CPPFLAGS+=-DHASSETPROCTITLE -Dunix
DPADD+= ${LIBCRYPT}
LDADD+= -lcrypt
MAN= ftpd.8
CLEANFILES+=ftpcmd.c y.tab.h
.PATH: ${.CURDIR}/../../usr.bin/ftp ${.CURDIR}/../../usr.bin/login
LDADD+= -lcrypt -lskey
DPADD+= ${LIBCRYPT} ${LIBSKEY}
.if defined(KERBEROS)
SRCS+= klogin.c
CFLAGS+= -DKERBEROS
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
.endif
.include <bsd.prog.mk>
.ifdef SKEY
CPPFLAGS+=-DSKEY
DPADD+= ${LIBSKEY}
LDADD+= -lskey
.ifdef KERBEROS
SRCS+= klogin.c
CPPFLAGS+=-DKERBEROS
DPADD+= ${LIBKRB} ${LIBDES}
LDADD+= -lkrb -ldes
.endif