]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - secure/usr.bin/ssh/Makefile
MFH to r289370
[FreeBSD/FreeBSD.git] / secure / usr.bin / ssh / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.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 PACKAGE=        ssh
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 LIBADD= ssh
20
21 .if ${MK_LDNS} != "no"
22 CFLAGS+=        -DHAVE_LDNS=1
23 .endif
24
25 .if ${MK_KERBEROS_SUPPORT} != "no"
26 CFLAGS+= -include krb5_config.h
27 LIBADD+=        gssapi
28 .endif
29
30 .if ${MK_OPENSSH_NONE_CIPHER} != "no"
31 CFLAGS+= -DNONE_CIPHER_ENABLED
32 .endif
33
34 LIBADD+=        crypto
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
45 .if ${MK_KERBEROS_SUPPORT} != "no"
46 ${OBJS} ${POBJS} ${SOBJS}: krb5_config.h
47 .endif