]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/telnet/Makefile
ping(8): Fix a mandoc related issue
[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 CFLAGS+=        -DIPSEC
25 LIBADD+=        ipsec
26
27 .if ${MK_OPENSSL} != "no"
28 SRCS+=          authenc.c
29 CFLAGS+=        -DENCRYPTION -DAUTHENTICATION -DIPSEC
30 LIBADD+=        mp crypto ipsec pam
31 .endif
32
33 .if ${MK_KERBEROS_SUPPORT} != "no"
34 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
35 LIBADD+=        krb5 roken
36 .endif
37
38 .include <bsd.prog.mk>