2000-02-24 17:00:55 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2000-02-24 17:00:55 +00:00
|
|
|
LIB= ssh
|
2007-06-18 18:47:54 +00:00
|
|
|
SHLIB_MAJOR= 4
|
2006-09-30 13:41:26 +00:00
|
|
|
SRCS= acss.c authfd.c authfile.c bufaux.c bufbn.c buffer.c \
|
2004-02-26 11:26:46 +00:00
|
|
|
canohost.c channels.c cipher.c cipher-acss.c cipher-aes.c \
|
|
|
|
cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
|
|
|
|
compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \
|
2006-09-30 13:41:26 +00:00
|
|
|
log.c match.c md-sha256.c moduli.c nchan.c packet.c \
|
2008-08-01 02:48:36 +00:00
|
|
|
readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
|
2004-10-28 16:04:23 +00:00
|
|
|
atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
|
|
|
|
monitor_fdpass.c rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c \
|
|
|
|
kexgex.c kexdhc.c kexgexc.c scard.c msg.c progressmeter.c dns.c \
|
2008-08-01 02:48:36 +00:00
|
|
|
entropy.c scard-opensc.c umac.c
|
2005-06-07 09:31:28 +00:00
|
|
|
|
|
|
|
# gss-genr.c should be in $SRCS but causes linking problems, so it is
|
|
|
|
# compiled directly into sshd instead.
|
|
|
|
|
2002-06-25 19:10:09 +00:00
|
|
|
# Portability layer
|
2008-08-01 02:48:36 +00:00
|
|
|
SRCS+= bsd-closefrom.c bsd-misc.c fmt_scaled.c getrrsetbyname.c \
|
|
|
|
openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
|
2002-06-25 19:10:09 +00:00
|
|
|
# FreeBSD additions
|
|
|
|
SRCS+= version.c
|
2001-05-04 04:21:25 +00:00
|
|
|
|
2002-11-06 22:54:58 +00:00
|
|
|
.if defined(COMPAT_GETADDRINFO)
|
|
|
|
SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
|
|
|
|
.endif
|
2002-09-25 09:58:00 +00:00
|
|
|
|
2006-05-13 13:47:45 +00:00
|
|
|
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
2004-01-08 11:41:02 +00:00
|
|
|
DPADD= ${LIBZ}
|
|
|
|
LDADD= -lz
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_KERBEROS_SUPPORT} != "no"
|
2005-12-29 14:40:22 +00:00
|
|
|
CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
|
2008-05-07 13:53:12 +00:00
|
|
|
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
|
|
|
|
LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken
|
2002-10-29 10:18:00 +00:00
|
|
|
.endif
|
|
|
|
|
2004-12-21 09:33:47 +00:00
|
|
|
NO_LINT=
|
2000-02-24 17:00:55 +00:00
|
|
|
|
2004-01-08 11:41:02 +00:00
|
|
|
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
|
|
|
|
LDADD+= -lcrypto -lcrypt
|
2002-02-08 13:42:58 +00:00
|
|
|
|
2000-02-24 17:00:55 +00:00
|
|
|
.include <bsd.lib.mk>
|
2001-03-26 14:53:33 +00:00
|
|
|
|
2002-11-06 22:54:58 +00:00
|
|
|
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
|
2006-05-13 21:38:16 +00:00
|
|
|
|
|
|
|
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
|