48 lines
912 B
Makefile
Raw Normal View History

2000-02-24 14:29:47 +00:00
.PATH: ${.CURDIR}/..
PROG= sshd
BINOWN= root
BINMODE=555
BINDIR= /usr/sbin
MAN= sshd.8
CFLAGS+=-DHAVE_LOGIN_CAP
2000-02-24 14:29:47 +00:00
SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
2000-05-15 04:37:24 +00:00
pty.c log-server.c login.c servconf.c serverloop.c \
auth.c auth1.c auth2.c auth-options.c session.c dh.c
2000-02-24 14:29:47 +00:00
.include <bsd.own.mk> # for KERBEROS and AFS
.if (${KERBEROS:L} == "yes")
.if (${AFS:L} == "yes")
2000-02-24 14:29:47 +00:00
CFLAGS+= -DAFS
LDADD+= -lkafs
DPADD+= ${LIBKRBAFS}
.endif # AFS
CFLAGS+= -DKRB4 -I${DESTDIR}/usr/include/kerberosIV
SRCS+= auth-krb4.c
LDADD+= -lkrb
DPADD+= ${LIBKRB}
2000-02-24 14:29:47 +00:00
.endif # KERBEROS
.if (${SKEY:L} == "yes")
SRCS+= auth-skey.c auth2-skey.c
2000-02-24 14:29:47 +00:00
.endif
.include <bsd.prog.mk>
LDADD+= -lcrypto -lutil -lz
DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
.if (${TCP_WRAPPERS:L} == "yes")
2000-02-24 14:29:47 +00:00
CFLAGS+= -DLIBWRAP
LDADD+= -lwrap
DPADD+= ${LIBWRAP}
.endif
.if (${SKEY:L} == "yes")
2000-02-24 14:29:47 +00:00
CFLAGS+= -DSKEY
LDADD+= -lskey
DPADD+= ${SKEY}
.endif