2001-04-10 12:07:54 +04:00
|
|
|
# $NetBSD: Makefile,v 1.7 2001/04/10 08:08:06 itojun Exp $
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= sshd
|
|
|
|
MAN= sshd.8
|
|
|
|
|
|
|
|
BINDIR= /usr/sbin
|
|
|
|
|
|
|
|
SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
|
2001-03-19 23:03:24 +03:00
|
|
|
sshpty.c sshlogin.c servconf.c serverloop.c \
|
2001-04-10 12:07:54 +04:00
|
|
|
auth.c auth1.c auth2.c auth-options.c session.c \
|
2001-02-07 20:05:31 +03:00
|
|
|
auth-chall.c auth2-chall.c groupaccess.c
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
.if (${MKKERBEROS} != "no")
|
2001-03-04 03:41:27 +03:00
|
|
|
CPPFLAGS+=-DKRB5 -DAFS -I${DESTDIR}/usr/include/krb5
|
|
|
|
SRCS+= auth-krb5.c
|
|
|
|
LDADD+= -lkrb5 -lkafs -lasn1
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBASN1}
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
CPPFLAGS+=-DKRB4 -I${DESTDIR}/usr/include/kerberosIV
|
|
|
|
SRCS+= auth-krb4.c
|
|
|
|
LDADD+= -lkrb -lcom_err -lroken
|
|
|
|
DPADD+= ${LIBKRB} ${LIBCOM_ERR} ${LIBROKEN}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
2001-04-01 19:11:05 +04:00
|
|
|
LDADD+= -lcrypt -lcrypto -lutil -lz
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
|
2001-02-07 20:05:31 +03:00
|
|
|
|
|
|
|
CPPFLAGS+=-DLIBWRAP
|
|
|
|
LDADD+= -lwrap
|
|
|
|
DPADD+= ${LIBWRAP}
|
|
|
|
|
|
|
|
.ifdef SKEY
|
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
LDADD+= -lskey
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
.endif
|