]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - secure/lib/libssh/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / secure / lib / libssh / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 LIB=    ssh
6 SHLIB_MAJOR=    5
7 SRCS=   acss.c authfd.c authfile.c bufaux.c bufbn.c buffer.c \
8         canohost.c channels.c cipher.c cipher-acss.c cipher-aes.c \
9         cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
10         compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \
11         log.c match.c md-sha256.c moduli.c nchan.c packet.c \
12         readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
13         atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
14         monitor_fdpass.c rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c \
15         kexgex.c kexdhc.c kexgexc.c msg.c progressmeter.c dns.c \
16         entropy.c umac.c jpake.c schnorr.c \
17         ssh-pkcs11.c
18
19 # gss-genr.c should be in $SRCS but causes linking problems, so it is
20 # compiled directly into sshd instead.
21
22 # Portability layer
23 SRCS+=  bsd-misc.c fmt_scaled.c getrrsetbyname.c glob.c \
24         openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
25 # FreeBSD additions
26 SRCS+=  version.c
27
28 .if defined(COMPAT_GETADDRINFO)
29 SRCS+=  getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
30 .endif
31
32 CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
33 DPADD=  ${LIBZ}
34 LDADD=  -lz
35
36 .if ${MK_KERBEROS_SUPPORT} != "no"
37 CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
38 DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
39 LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken
40 .endif
41
42 NO_LINT=
43
44 DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
45 LDADD+= -lcrypto -lcrypt
46
47 .include <bsd.lib.mk>
48
49 .PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
50
51 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h