Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.30
      1 #	$NetBSD: Makefile,v 1.30 2019/11/11 22:44:56 joerg Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 .include "../Makefile.inc"
      6 
      7 CWARNFLAGS.clang+=	-Wno-error=sizeof-array-div
      8 LIB=	ssh
      9 SRCS=\
     10 addrmatch.c \
     11 atomicio.c \
     12 authfd.c \
     13 authfile.c \
     14 bcrypt_pbkdf.c \
     15 bitmap.c \
     16 blowfish.c \
     17 canohost.c \
     18 chacha.c \
     19 channels.c \
     20 cipher-chachapoly.c \
     21 cipher.c \
     22 cleanup.c \
     23 compat.c \
     24 dh.c \
     25 dispatch.c \
     26 dns.c \
     27 ed25519.c \
     28 fatal.c \
     29 fe25519.c \
     30 freezero.c \
     31 ge25519.c \
     32 hash.c \
     33 hmac.c \
     34 hostfile.c \
     35 kex.c \
     36 kexdh.c \
     37 kexecdh.c \
     38 kexgen.c \
     39 kexgex.c \
     40 kexgexc.c \
     41 kexsntrup4591761x25519.c \
     42 krl.c \
     43 log.c \
     44 mac.c \
     45 match.c \
     46 misc.c \
     47 monitor_fdpass.c \
     48 msg.c \
     49 nchan.c \
     50 packet.c \
     51 poly1305.c \
     52 progressmeter.c \
     53 readpass.c \
     54 recallocarray.c \
     55 sc25519.c \
     56 smult_curve25519_ref.c \
     57 sntrup4591761.c \
     58 ssh-ed25519.c \
     59 ssh-pkcs11.c \
     60 ssh-xmss.c \
     61 sshbuf-getput-basic.c \
     62 sshbuf-getput-crypto.c \
     63 sshbuf-misc.c \
     64 sshbuf.c \
     65 ssherr.c \
     66 sshkey-xmss.c \
     67 sshkey.c \
     68 ttymodes.c \
     69 uidswap.c \
     70 umac.c \
     71 umac128.c \
     72 utf8.c \
     73 verify.c \
     74 xmalloc.c \
     75 xmss_commons.c \
     76 xmss_fast.c \
     77 xmss_hash.c \
     78 xmss_hash_address.c \
     79 xmss_wots.c
     80 
     81 OPENSSL_SRCS=\
     82 digest-openssl.c \
     83 kexc25519.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 COPTS.xmss_fast.c+=	-Wno-stack-protector
     92 COPTS.xmss_hash.c+=	-Wno-stack-protector
     93 COPTS.xmss_wots.c+=	-Wno-stack-protector
     94 COPTS.sntrup4591761.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/${EXTERNAL_OPENSSL_SUBDIR}/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 COPTS.hostfile.c+=	${GCC_NO_FORMAT_TRUNCATION}
    125 COPTS.sshkey.c+=	${GCC_NO_FORMAT_TRUNCATION}
    126 
    127 .include <bsd.lib.mk>
    128