]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - secure/usr.bin/ssh/Makefile
MFC r291941:
[FreeBSD/stable/9.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_KERBEROS_SUPPORT} != "no"
25 CFLAGS+= -include krb5_config.h
26 SRCS+=  krb5_config.h
27 DPADD+=  ${LIBGSSAPI}
28 LDADD+=  -lgssapi
29 .endif
30
31 .if ${MK_OPENSSH_NONE_CIPHER} != "no"
32 CFLAGS+= -DNONE_CIPHER_ENABLED
33 .endif
34
35 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
36 LDADD+= -lcrypt -lcrypto -lz
37
38 .if defined(LOCALBASE)
39 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
40 .endif
41
42 .include <bsd.prog.mk>
43
44 .PATH:  ${SSHDIR}