]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/telnet/Makefile
Add UPDATING entries and bump version.
[FreeBSD/FreeBSD.git] / usr.bin / telnet / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 TELNETDIR=      ${SRCTOP}/contrib/telnet
6 .PATH:          ${TELNETDIR}/telnet
7
8 PROG=           telnet
9
10 SRCS=           commands.c main.c network.c ring.c sys_bsd.c \
11                 telnet.c terminal.c utilities.c
12
13 CFLAGS+=        -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
14                 -I${TELNETDIR} -I${TELNETDIR}/libtelnet/
15
16 .if ${MK_INET6_SUPPORT} != "no"
17 CFLAGS+=        -DINET6
18 .endif
19
20 WARNS?=         2
21
22 LIBADD=         telnet ncursesw
23
24 .if !defined(RELEASE_CRUNCH)
25 CFLAGS+=        -DIPSEC
26 LIBADD+=        ipsec
27 .else
28 .PATH:         ${TELNETDIR}/libtelnet
29 SRCS+=          genget.c getent.c misc.c
30 CFLAGS+=        -DHAS_CGETENT
31 .endif
32
33 .if ${MK_OPENSSL} != "no"
34 SRCS+=          authenc.c
35 CFLAGS+=        -DENCRYPTION -DAUTHENTICATION -DIPSEC
36 LIBADD+=        mp crypto ipsec pam
37 .endif
38
39 .if ${MK_KERBEROS_SUPPORT} != "no"
40 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
41 LIBADD+=        krb5 roken
42 .endif
43
44 .include <bsd.prog.mk>