]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - secure/usr.bin/ssh/Makefile
MFH (r254407, r254960, r255371): misc cleanup
[FreeBSD/stable/9.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 USEPRIVATELIB= ssh
22
23 .if ${MK_KERBEROS_SUPPORT} != "no"
24 CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
25 DPADD+=  ${LIBGSSAPI}
26 LDADD+=  -lgssapi
27 .endif
28
29 .if ${MK_OPENSSH_NONE_CIPHER} != "no"
30 CFLAGS+= -DNONE_CIPHER_ENABLED
31 .endif
32
33 DPADD+= ${LIBCRYPT} ${LIBCRYPTO}
34 LDADD+= -lcrypt -lcrypto
35
36 .if defined(LOCALBASE)
37 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
38 .endif
39
40 .include <bsd.prog.mk>
41
42 .PATH:  ${SSHDIR}
43
44 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h