]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - libexec/telnetd/Makefile
sysctl(9): Fix a few mandoc related issues
[FreeBSD/FreeBSD.git] / libexec / telnetd / Makefile
1 # $FreeBSD$
2
3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
5
6 .include <src.opts.mk>
7
8 TELNETDIR=      ${SRCTOP}/contrib/telnet
9 .PATH:          ${TELNETDIR}/telnetd
10
11 PROG=           telnetd
12 MAN=            telnetd.8
13
14 SRCS=           global.c slc.c state.c sys_term.c telnetd.c \
15                 termstat.c utility.c
16
17 WARNS?=         2
18 WFORMAT?=       0
19
20 CFLAGS+=        -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
21                 -DENV_HACK -DSTREAMSPTY
22
23 .if ${MK_INET6_SUPPORT} != "no"
24 CFLAGS+=        -DINET6
25 .endif
26
27 CFLAGS+=        -I${TELNETDIR}
28 CFLAGS+=        -I${TELNETDIR}/telnet
29
30 LIBADD=         telnet util ncursesw
31
32 .if ${MK_OPENSSL} != "no"
33 SRCS+=          authenc.c
34 CFLAGS+=        -DAUTHENTICATION -DENCRYPTION
35 LIBADD+=        mp crypto pam
36 .endif
37
38 .if ${MK_KERBEROS_SUPPORT} != "no"
39 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
40 LIBADD+=        krb5 roken
41 .endif
42
43 .include <bsd.prog.mk>