1 # $NetBSD: Makefile,v 1.24.2.1 2018/04/07 04:11:49 pgoyette 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 blowfish.c \ 16 bufaux.c \ 17 bufbn.c \ 18 bufec.c \ 19 buffer.c \ 20 canohost.c \ 21 channels.c \ 22 cipher-chachapoly.c \ 23 cipher.c \ 24 chacha.c \ 25 cleanup.c \ 26 compat.c \ 27 crc32.c \ 28 dh.c \ 29 dispatch.c \ 30 dns.c \ 31 ed25519.c \ 32 fatal.c \ 33 fe25519.c \ 34 freezero.c \ 35 ge25519.c \ 36 hash.c \ 37 hmac.c \ 38 hostfile.c \ 39 kex.c \ 40 kexdh.c \ 41 kexdhc.c \ 42 kexecdh.c \ 43 kexecdhc.c \ 44 kexgex.c \ 45 kexgexc.c \ 46 key.c \ 47 krl.c \ 48 log.c \ 49 mac.c \ 50 match.c \ 51 misc.c \ 52 monitor_fdpass.c \ 53 msg.c \ 54 nchan.c \ 55 opacket.c \ 56 packet.c \ 57 poly1305.c \ 58 progressmeter.c \ 59 readpass.c \ 60 recallocarray.c \ 61 sc25519.c \ 62 smult_curve25519_ref.c \ 63 sshbuf-getput-basic.c \ 64 sshbuf-misc.c \ 65 sshbuf-getput-crypto.c \ 66 sshbuf.c \ 67 ssherr.c \ 68 sshkey.c \ 69 sshkey-xmss.c \ 70 ssh-ed25519.c \ 71 ssh-pkcs11.c \ 72 ssh-xmss.c \ 73 ttymodes.c \ 74 uidswap.c \ 75 umac.c \ 76 umac128.c \ 77 utf8.c \ 78 uuencode.c \ 79 verify.c \ 80 xmalloc.c \ 81 xmss_commons.c \ 82 xmss_fast.c \ 83 xmss_hash.c \ 84 xmss_hash_address.c \ 85 xmss_wots.c 86 87 88 OPENSSL_SRCS=\ 89 digest-openssl.c \ 90 kexc25519.c \ 91 kexc25519c.c \ 92 kexc25519s.c \ 93 ssh-dss.c \ 94 ssh-ecdsa.c \ 95 ssh-rsa.c 96 97 SRCS+= fmt_scaled.c 98 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 99 COPTS.monitor_fdpass.c+=-Wno-stack-protector 100 COPTS.xmss_fast.c+= -Wno-stack-protector 101 COPTS.xmss_hash.c+= -Wno-stack-protector 102 COPTS.xmss_wots.c+= -Wno-stack-protector 103 104 .if WITH_OPENSSL 105 SRCS+= ${OPENSSL_SRCS} 106 .else 107 SRCS+= digest-libc.c 108 .endif 109 110 CPPFLAGS+= -DHAVE_BLF_H 111 112 CPPFLAGS+= -I${SSHDIST} 113 .PATH: ${SSHDIST} 114 115 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto \ 116 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 117 z ${NETBSDSRCDIR}/lib/libz 118 119 .for f in dns channels hostfile ssh-pkcs11 120 COPTS.${f}.c+= -Wno-pointer-sign 121 .endfor 122 123 # XXX 124 COPTS.channels.c+= -fno-strict-aliasing 125 126 # XXX 127 .if ${MACHINE} == "vax" 128 COPTS.poly1305.c+= -O0 129 COPTS.umac.c+= -O0 130 .endif 131 132 .include <bsd.lib.mk> 133