1 # $NetBSD: Makefile,v 1.22 2017/10/07 19:39:19 christos 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-chachapoly.c \ 24 cipher.c \ 25 chacha.c \ 26 cleanup.c \ 27 compat.c \ 28 crc32.c \ 29 dh.c \ 30 dispatch.c \ 31 dns.c \ 32 ed25519.c \ 33 fatal.c \ 34 fe25519.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 sc25519.c \ 61 smult_curve25519_ref.c \ 62 sshbuf-getput-basic.c \ 63 sshbuf-misc.c \ 64 sshbuf-getput-crypto.c \ 65 sshbuf.c \ 66 ssherr.c \ 67 sshkey.c \ 68 ssh-ed25519.c \ 69 ssh-pkcs11.c \ 70 ttymodes.c \ 71 uidswap.c \ 72 umac.c \ 73 umac128.c \ 74 utf8.c \ 75 uuencode.c \ 76 verify.c \ 77 xmalloc.c 78 79 OPENSSL_SRCS=\ 80 digest-openssl.c \ 81 kexc25519.c \ 82 kexc25519c.c \ 83 kexc25519s.c \ 84 ssh-dss.c \ 85 ssh-ecdsa.c \ 86 ssh-rsa.c 87 88 SRCS+= fmt_scaled.c 89 SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c 90 COPTS.monitor_fdpass.c = -Wno-stack-protector 91 92 .if WITH_OPENSSL 93 SRCS+= ${OPENSSL_SRCS} 94 .else 95 SRCS+= digest-libc.c 96 .endif 97 98 CPPFLAGS+= -DHAVE_BLF_H 99 100 CPPFLAGS+= -I${SSHDIST} 101 .PATH: ${SSHDIST} 102 103 LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto \ 104 crypt ${NETBSDSRCDIR}/lib/libcrypt \ 105 z ${NETBSDSRCDIR}/lib/libz 106 107 .for f in dns channels hostfile ssh-pkcs11 108 COPTS.${f}.c+= -Wno-pointer-sign 109 .endfor 110 111 # XXX 112 COPTS.channels.c+= -fno-strict-aliasing 113 114 # XXX 115 .if ${MACHINE} == "vax" 116 COPTS.poly1305.c+= -O0 117 COPTS.umac.c+= -O0 118 .endif 119 120 .include <bsd.lib.mk> 121