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