1 # $NetBSD: Makefile,v 1.13.4.1 2015/04/30 06:07:31 riz Exp $ 2 3 .include <bsd.own.mk> 4 5 .include "../Makefile.inc" 6 7 LIB= ssh 8 SRCS=\ 9 addrmatch.c \ 10 atomicio.c \ 11 authfd.c \ 12 authfile.c \ 13 bcrypt_pbkdf.c \ 14 bitmap.c \ 15 blocks.c \ 16 blowfish.c \ 17 bufaux.c \ 18 bufbn.c \ 19 bufec.c \ 20 buffer.c \ 21 canohost.c \ 22 channels.c \ 23 cipher-3des1.c \ 24 cipher-bf1.c \ 25 cipher-chachapoly.c \ 26 cipher.c \ 27 chacha.c \ 28 cleanup.c \ 29 compat.c \ 30 crc32.c \ 31 deattack.c \ 32 dh.c \ 33 dispatch.c \ 34 dns.c \ 35 ed25519.c \ 36 fatal.c \ 37 fe25519.c \ 38 ge25519.c \ 39 hash.c \ 40 hmac.c \ 41 hostfile.c \ 42 kex.c \ 43 kexdh.c \ 44 kexdhc.c \ 45 kexecdh.c \ 46 kexecdhc.c \ 47 kexgex.c \ 48 kexgexc.c \ 49 key.c \ 50 krl.c \ 51 log.c \ 52 mac.c \ 53 match.c \ 54 misc.c \ 55 monitor_fdpass.c \ 56 msg.c \ 57 nchan.c \ 58 opacket.c \ 59 packet.c \ 60 poly1305.c \ 61 progressmeter.c \ 62 readpass.c \ 63 reallocarray.c \ 64 roaming_dummy.c \ 65 rsa.c \ 66 sc25519.c \ 67 smult_curve25519_ref.c \ 68 sshbuf-getput-basic.c \ 69 sshbuf-misc.c \ 70 sshbuf-getput-crypto.c \ 71 sshbuf.c \ 72 ssherr.c \ 73 sshkey.c \ 74 ssh-ed25519.c \ 75 ssh-pkcs11.c \ 76 strtonum.c \ 77 ttymodes.c \ 78 uidswap.c \ 79 umac.c \ 80 umac128.c \ 81 uuencode.c \ 82 verify.c \ 83 xmalloc.c 84 85 OPENSSL_SRCS=\ 86 digest-openssl.c \ 87 kexc25519.c \ 88 kexc25519c.c \ 89 kexc25519s.c \ 90 ssh-dss.c \ 91 ssh-ecdsa.c \ 92 ssh-rsa.c 93 94 SRCS+= fmt_scaled.c 95 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 96 COPTS.monitor_fdpass.c = -Wno-stack-protector 97 98 .if WITH_OPENSSL 99 SRCS+= ${OPENSSL_SRCS} 100 .else 101 SRCS+= digest-libc.c 102 .endif 103 104 CPPFLAGS+= -DHAVE_BLF_H 105 106 CPPFLAGS+= -I${SSHDIST} 107 .PATH: ${SSHDIST} 108 109 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 110 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 111 z ${NETBSDSRCDIR}/lib/libz 112 113 .for f in dns channels hostfile ssh-pkcs11 114 COPTS.${f}.c+= -Wno-pointer-sign 115 .endfor 116 117 # XXX 118 COPTS.channels.c+= -fno-strict-aliasing 119 120 .include <bsd.lib.mk> 121