#	$NetBSD: Makefile,v 1.3 2009/08/03 20:56:25 joerg Exp $

.include "${BSDSRCDIR}/share/mk/bsd.own.mk"

LIB=	ssh
SRCS=	authfd.c authfile.c bufaux.c bufbn.c buffer.c canohost.c channels.c \
	cipher.c cipher-3des1.c cipher-ctr.c cipher-ctr-mt.c cipher-bf1.c \
	cleanup.c compat.c compress.c crc32.c deattack.c dns.c fatal.c \
	hostfile.c log.c match.c nchan.c packet.c readpass.c \
	rsa.c strtonum.c ttymodes.c xmalloc.c atomicio.c \
	key.c dispatch.c kex.c mac.c uuencode.c misc.c \
	ssh-dss.c ssh-rsa.c dh.c kexdh.c kexgex.c \
	kexdhc.c kexgexc.c scard.c msg.c progressmeter.c \
	monitor_fdpass.c uidswap.c addrmatch.c
#	umac.c
SRCS+=	random.c
SRCS+=	readpassphrase.c getpeereid.c getrrsetbyname.c
COPTS.monitor_fdpass.c = -Wno-stack-protector

WARNS=	1

SSHDIST=	${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist
CPPFLAGS+=	-I${SSHDIST}
.PATH:		${SSHDIST}

LIBDPLIBS+=	crypto	${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \
		crypt	${NETBSDSRCDIR}/lib/libcrypt \
		z	${NETBSDSRCDIR}/lib/libz

.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
.for f in dns channels hostfile
COPTS.${f}.c+=	-Wno-pointer-sign
.endfor
.endif

.include "${BSDSRCDIR}/share/mk/bsd.lib.mk"
