]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - secure/usr.bin/ssh/Makefile
MFS (r296781):
[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
13 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
14 SRCS+=  gss-genr.c
15
16 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
17 SRCS+=  ssh_namespace.h
18
19 DPADD=  ${LIBSSH} ${LIBUTIL}
20 LDADD=  -lssh -lutil
21 USEPRIVATELIB= ssh
22
23 .if ${MK_LDNS} != "no"
24 CFLAGS+=        -DHAVE_LDNS=1
25 DPADD+= ${LIBLDNS}
26 LDADD+= -lldns
27 USEPRIVATELIB+= ldns
28 .endif
29
30 .if ${MK_KERBEROS_SUPPORT} != "no"
31 CFLAGS+= -include krb5_config.h
32 SRCS+=  krb5_config.h
33 DPADD+=  ${LIBGSSAPI}
34 LDADD+=  -lgssapi
35 .endif
36
37 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
38 LDADD+= -lcrypt -lcrypto -lz
39
40 .if defined(LOCALBASE)
41 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
42 .endif
43
44 .include <bsd.prog.mk>
45
46 .PATH:  ${SSHDIR}