xref: /freebsd/secure/usr.bin/scp/Makefile (revision 40a8ac8f62b535d30349faf28cf47106b7041b83)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5PROG=	scp
6SRCS=	scp.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