Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.17
      1 #	$NetBSD: Makefile,v 1.17 2015/04/03 23:58: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-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 roaming_dummy.c \
     64 rsa.c \
     65 sc25519.c \
     66 smult_curve25519_ref.c \
     67 sshbuf-getput-basic.c \
     68 sshbuf-misc.c \
     69 sshbuf-getput-crypto.c \
     70 sshbuf.c \
     71 ssherr.c \
     72 sshkey.c \
     73 ssh-ed25519.c \
     74 ssh-pkcs11.c \
     75 ttymodes.c \
     76 uidswap.c \
     77 umac.c \
     78 umac128.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 .include <bsd.lib.mk>
    119