]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - secure/usr.bin/ssh/Makefile
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / secure / usr.bin / ssh / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 PROG=   ssh
6 LINKS=  ${BINDIR}/ssh ${BINDIR}/slogin
7 MAN=    ssh.1 ssh_config.5
8 MLINKS= ssh.1 slogin.1
9
10 SRCS=   ssh.c readconf.c clientloop.c sshtty.c \
11         sshconnect.c sshconnect1.c sshconnect2.c mux.c \
12         roaming_common.c roaming_client.c
13
14 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
15 SRCS+=  gss-genr.c
16
17 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
18 SRCS+=  ssh_namespace.h
19
20 DPADD=  ${LIBSSH} ${LIBUTIL}
21 LDADD=  -lssh -lutil
22 USEPRIVATELIB= ssh
23
24 .if ${MK_LDNS} != "no"
25 CFLAGS+=        -DHAVE_LDNS=1
26 DPADD+= ${LIBLDNS}
27 LDADD+= -lldns
28 USEPRIVATELIB+= ldns
29 .endif
30
31 .if ${MK_KERBEROS_SUPPORT} != "no"
32 CFLAGS+= -include krb5_config.h
33 SRCS+=  krb5_config.h
34 DPADD+=  ${LIBGSSAPI}
35 LDADD+=  -lgssapi
36 .endif
37
38 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
39 LDADD+= -lcrypt -lcrypto -lz
40
41 .if defined(LOCALBASE)
42 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
43 .endif
44
45 .include <bsd.prog.mk>
46
47 .PATH:  ${SSHDIR}