]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - secure/usr.bin/ssh/Makefile
MFH (r237568, r255422, r255460, r255766, r255767, r255774, r255829,
[FreeBSD/stable/9.git] / secure / usr.bin / ssh / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 PROG=   ssh
6 CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
7 LINKS=  ${BINDIR}/ssh ${BINDIR}/slogin
8 MAN=    ssh.1 ssh_config.5
9 MLINKS= ssh.1 slogin.1
10
11 SRCS=   ssh.c readconf.c clientloop.c sshtty.c \
12         sshconnect.c sshconnect1.c sshconnect2.c mux.c \
13         roaming_common.c roaming_client.c
14
15 # gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
16 SRCS+=  gss-genr.c
17
18 DPADD=  ${LIBSSH} ${LIBUTIL}
19 LDADD=  -lssh -lutil
20 USEPRIVATELIB= ssh
21
22 .if ${MK_KERBEROS_SUPPORT} != "no"
23 CFLAGS+= -include krb5_config.h
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} ${LIBZ}
33 LDADD+= -lcrypt -lcrypto -lz
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
44 .if ${MK_KERBEROS_SUPPORT} != "no"
45 ${OBJS} ${POBJS} ${SOBJS}: krb5_config.h
46 .endif