Add a more friendly way to deal with files that are installed into /etc.
[dragonfly.git] / secure / usr.bin / ssh / Makefile
1 # $FreeBSD: src/secure/usr.bin/ssh/Makefile,v 1.4.2.8 2003/02/03 17:31:12 des Exp $
2 # $DragonFly: src/secure/usr.bin/ssh/Makefile,v 1.6 2005/07/07 12:43:36 corecode Exp $
3 #
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 clientloop.c sshtty.c sshconnect.c sshconnect1.c sshconnect2.c
11
12 SRCS+=  readconf.c.patch ssh.c.patch ${.CURDIR}/../../usr.sbin/sshd/myproposal.h.patch
13 SRCS+=  ssh.1.no_obj.patch ssh_config.5.no_obj.patch
14 SRCS+=  channels.c kex.c uidswap.c monitor_fdpass.c
15
16 .if defined(MAKE_KERBEROS5)
17 DISTRIBUTION=krb5
18 CFLAGS+= -DKRB5 -DHEIMDAL
19 LDADD+=  -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt
20 DPADD+=  ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT}
21 .endif
22
23 .if defined(X11BASE)
24 CFLAGS+= -DXAUTH_PATH=\"${X11BASE}/bin/xauth\"
25 .endif
26
27 LDADD+= -lutil -lz
28 DPADD+= ${LIBUTIL} ${LIBZ}
29
30 .include "../../Makefile.ssh.common"
31 .include <bsd.prog.mk>