Initial import from FreeBSD RELENG_4:
[dragonfly.git] / secure / lib / libssh / Makefile
1 # $FreeBSD: src/secure/lib/libssh/Makefile,v 1.2.2.7 2003/02/03 17:31:12 des Exp $
2
3 LIB=    ssh
4 SRCS=   authfd.c authfile.c bufaux.c buffer.c canohost.c channels.c \
5         cipher.c compat.c compress.c crc32.c deattack.c fatal.c \
6         hostfile.c log.c match.c mpaux.c nchan.c packet.c readpass.c \
7         rsa.c tildexpand.c ttymodes.c xmalloc.c atomicio.c \
8         key.c dispatch.c kex.c mac.c uuencode.c misc.c \
9         rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c kexgex.c \
10         scard.c monitor_wrap.c monitor_fdpass.c msg.c xmmap.c
11 # Portability layer
12 SRCS+=  bsd-misc.c entropy.c
13 # FreeBSD additions
14 SRCS+=  version.c
15
16 .if defined(COMPAT_GETADDRINFO)
17 SRCS+=  getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
18 .endif
19
20 CFLAGS+= -I${SSHDIR}
21 .if defined(MAKE_KERBEROS4)
22 CFLAGS+= -DKRB4
23 .endif
24 .if defined(MAKE_KERBEROS5)
25 CFLAGS+= -DKRB5 -DHEIMDAL
26 .endif
27
28 NOLINT= true
29
30 DPADD=  ${LIBCRYPTO} ${LIBZ}
31 LDADD=  -lcrypto -lz
32
33 .include <bsd.lib.mk>
34
35 .PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat