1 # $NetBSD: Makefile,v 1.10.4.1 2017/08/15 05:27:53 snj 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 rsa.c \ 64 sc25519.c \ 65 smult_curve25519_ref.c \ 66 sshbuf-getput-basic.c \ 67 sshbuf-misc.c \ 68 sshbuf-getput-crypto.c \ 69 sshbuf.c \ 70 ssherr.c \ 71 sshkey.c \ 72 ssh-ed25519.c \ 73 ssh-pkcs11.c \ 74 ttymodes.c \ 75 uidswap.c \ 76 umac.c \ 77 umac128.c \ 78 utf8.c \ 79 uuencode.c \ 80 verify.c \ 81 xmalloc.c 82 83 OPENSSL_SRCS=\ 84 digest-openssl.c \ 85 kexc25519.c \ 86 kexc25519c.c \ 87 kexc25519s.c \ 88 ssh-dss.c \ 89 ssh-ecdsa.c \ 90 ssh-rsa.c 91 92 SRCS+= fmt_scaled.c 93 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 94 COPTS.monitor_fdpass.c = -Wno-stack-protector 95 96 .if WITH_OPENSSL 97 SRCS+= ${OPENSSL_SRCS} 98 .else 99 SRCS+= digest-libc.c 100 .endif 101 102 CPPFLAGS+= -DHAVE_BLF_H 103 104 CPPFLAGS+= -I${SSHDIST} 105 .PATH: ${SSHDIST} 106 107 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 108 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 109 z ${NETBSDSRCDIR}/lib/libz 110 111 .for f in dns channels hostfile ssh-pkcs11 112 COPTS.${f}.c+= -Wno-pointer-sign 113 .endfor 114 115 # XXX 116 COPTS.channels.c+= -fno-strict-aliasing 117 118 # XXX 119 .if ${MACHINE} == "vax" 120 COPTS.poly1305.c+= -O0 121 COPTS.umac.c+= -O0 122 .endif 123 124 # XXX netbsd-6 specials 125 SRCS+= consttime_memequal.c \ 126 explicit_memset.c \ 127 reallocarr.c \ 128 reallocarray.c \ 129 strtoi.c \ 130 strtonum.c 131 132 .include <bsd.lib.mk> 133