xref: /freebsd/secure/usr.bin/ssh-add/Makefile (revision 09d325677d53a12c79a43664ff29871e92247629)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5PROG=	ssh-add
6SRCS+=	ssh-add.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=	-lssh
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