xref: /freebsd/secure/usr.bin/ssh-agent/Makefile (revision 6574b8ed19b093f0af09501d2c9676c28993cb97)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5PROG=	ssh-agent
6SRCS=	ssh-agent.c
7CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
8
9.if !defined(NO_SHARED)
10# required when linking with a dynamic libssh
11SRCS+=	roaming_dummy.c
12.endif
13
14DPADD=	${LIBSSH}
15LDADD=	${LDSSH}
16USEPRIVATELIB= ssh
17
18.if ${MK_LDNS} != "no"
19CFLAGS+=	-DHAVE_LDNS=1
20#DPADD+=	${LIBLDNS}
21#LDADD+=	-lldns
22#USEPRIVATELIB+= ldns
23.endif
24
25DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
26LDADD+= -lcrypt -lcrypto -lz
27
28.include <bsd.prog.mk>
29
30.PATH:	${SSHDIR}
31
32${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
33