1# $NetBSD: Makefile,v 1.11 2012/08/10 12:20:12 joerg Exp $ 2 3.include <bsd.own.mk> 4 5LIB= ssh 6SRCS=\ 7addrmatch.c \ 8atomicio.c \ 9authfd.c \ 10authfile.c \ 11bufaux.c \ 12bufbn.c \ 13bufec.c \ 14buffer.c \ 15canohost.c \ 16channels.c \ 17cipher-3des1.c \ 18cipher-bf1.c \ 19cipher-ctr.c \ 20cipher.c \ 21cleanup.c \ 22compat.c \ 23compress.c \ 24crc32.c \ 25deattack.c \ 26dh.c \ 27dispatch.c \ 28dns.c \ 29fatal.c \ 30hostfile.c \ 31jpake.c \ 32kex.c \ 33kexdh.c \ 34kexdhc.c \ 35kexecdh.c \ 36kexecdhc.c \ 37kexgex.c \ 38kexgexc.c \ 39key.c \ 40log.c \ 41mac.c \ 42match.c \ 43misc.c \ 44monitor_fdpass.c \ 45msg.c \ 46nchan.c \ 47packet.c \ 48progressmeter.c \ 49readpass.c \ 50roaming_dummy.c \ 51rsa.c \ 52schnorr.c \ 53ssh-dss.c \ 54ssh-ecdsa.c \ 55ssh-pkcs11.c \ 56ssh-rsa.c \ 57ttymodes.c \ 58uidswap.c \ 59uuencode.c \ 60xmalloc.c 61 62# umac.c 63SRCS+= fmt_scaled.c strtonum.c 64SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 65COPTS.monitor_fdpass.c = -Wno-stack-protector 66 67SSHDIST= ${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist 68CPPFLAGS+= -I${SSHDIST} 69.PATH: ${SSHDIST} 70 71LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 72 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 73 z ${NETBSDSRCDIR}/lib/libz 74 75.for f in dns channels hostfile ssh-pkcs11 76COPTS.${f}.c+= -Wno-pointer-sign 77.endfor 78 79# XXX 80COPTS.channels.c+= -fno-strict-aliasing 81 82.include <bsd.lib.mk> 83