37 lines
673 B
Makefile
37 lines
673 B
Makefile
|
.PATH: ${.CURDIR}/..
|
||
|
|
||
|
PROG= ssh
|
||
|
BINOWN= root
|
||
|
|
||
|
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || \
|
||
|
${MACHINE_ARCH} == "hppa")
|
||
|
BINMODE=0000
|
||
|
.else
|
||
|
BINMODE?=4555
|
||
|
.endif
|
||
|
|
||
|
BINDIR= /usr/bin
|
||
|
MAN= ssh.1
|
||
|
LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
|
||
|
MLINKS= ssh.1 slogin.1
|
||
|
|
||
|
SRCS= ssh.c sshconnect.c log-client.c readconf.c clientloop.c
|
||
|
|
||
|
.include <bsd.own.mk> # for AFS
|
||
|
|
||
|
.if (${KERBEROS} == "yes")
|
||
|
CFLAGS+= -DKRB4 -I/usr/include/kerberosIV
|
||
|
LDADD+= -lkrb
|
||
|
DPADD+= ${LIBKRB}
|
||
|
.if (${AFS} == "yes")
|
||
|
CFLAGS+= -DAFS
|
||
|
LDADD+= -lkafs
|
||
|
DPADD+= ${LIBKRBAFS}
|
||
|
.endif # AFS
|
||
|
.endif # KERBEROS
|
||
|
|
||
|
.include <bsd.prog.mk>
|
||
|
|
||
|
LDADD+= -lutil -lz -lcrypto
|
||
|
DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
|