1 # $NetBSD: Makefile,v 1.3 2009/08/03 20:56:25 joerg Exp $ 2 3 .include <bsd.own.mk> 4 5 LIB= ssh 6 SRCS= authfd.c authfile.c bufaux.c bufbn.c buffer.c canohost.c channels.c \ 7 cipher.c cipher-3des1.c cipher-ctr.c cipher-ctr-mt.c cipher-bf1.c \ 8 cleanup.c compat.c compress.c crc32.c deattack.c dns.c fatal.c \ 9 hostfile.c log.c match.c nchan.c packet.c readpass.c \ 10 rsa.c strtonum.c ttymodes.c xmalloc.c atomicio.c \ 11 key.c dispatch.c kex.c mac.c uuencode.c misc.c \ 12 ssh-dss.c ssh-rsa.c dh.c kexdh.c kexgex.c \ 13 kexdhc.c kexgexc.c scard.c msg.c progressmeter.c \ 14 monitor_fdpass.c uidswap.c addrmatch.c 15 # umac.c 16 SRCS+= random.c 17 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 18 COPTS.monitor_fdpass.c = -Wno-stack-protector 19 20 WARNS= 1 21 22 SSHDIST= ${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist 23 CPPFLAGS+= -I${SSHDIST} 24 .PATH: ${SSHDIST} 25 26 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 27 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 28 z ${NETBSDSRCDIR}/lib/libz 29 30 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) 31 .for f in dns channels hostfile 32 COPTS.${f}.c+= -Wno-pointer-sign 33 .endfor 34 .endif 35 36 .include <bsd.lib.mk> 37