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