Makefile revision 149755
1# $FreeBSD: head/secure/lib/libssh/Makefile 149755 2005-09-03 07:10:33Z des $
2
3LIB=	ssh
4SHLIB_MAJOR=	3
5SRCS=	acss.c authfd.c authfile.c bufaux.c buffer.c \
6	canohost.c channels.c cipher.c cipher-acss.c cipher-aes.c \
7	cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
8	compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \
9	log.c match.c moduli.c nchan.c packet.c \
10	readpass.c rsa.c ttymodes.c xmalloc.c \
11	atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
12	monitor_fdpass.c rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c \
13	kexgex.c kexdhc.c kexgexc.c scard.c msg.c progressmeter.c dns.c \
14	entropy.c scard-opensc.c
15
16# gss-genr.c should be in $SRCS but causes linking problems, so it is
17# compiled directly into sshd instead.
18
19# Portability layer
20SRCS+=	bsd-closefrom.c bsd-misc.c getrrsetbyname.c \
21	strtonum.c vis.c xcrypt.c xmmap.c
22# FreeBSD additions
23SRCS+=	version.c
24
25.if defined(COMPAT_GETADDRINFO)
26SRCS+=	getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
27.endif
28
29CFLAGS+= -I${SSHDIR}
30DPADD=	${LIBZ}
31LDADD=	-lz
32
33.if !defined(NO_KERBEROS)
34CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_H=1 -DKRB5 -DHEIMDAL
35DPADD+=	${LIBGSSAPI} ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
36LDADD+=	-lgssapi -lkrb5 -lasn1 -lcom_err -lmd -lroken
37.endif
38
39NO_LINT=
40
41DPADD+=	${LIBCRYPTO} ${LIBCRYPT}
42LDADD+=	-lcrypto -lcrypt
43
44.include <bsd.lib.mk>
45
46.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
47