1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:39:25 +00:00
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
|
|
# telnet implementations.
|
|
|
|
|
|
|
|
PROG= telnetd
|
|
|
|
MAN= telnetd.8
|
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
|
|
|
termstat.c utility.c
|
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
|
|
|
-DENV_HACK \
|
|
|
|
-I${.CURDIR}/../../lib -DINET6
|
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
WARNS?= 2
|
2002-02-06 11:07:55 +00:00
|
|
|
WFORMAT?= 0
|
2001-03-28 12:08:22 +00:00
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
.else
|
|
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
.endif
|
|
|
|
|
2001-08-20 12:12:27 +00:00
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
|
|
|
|
LDADD= -lutil -ltermcap ${LIBTELNET}
|
1994-05-27 12:39:25 +00:00
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
unifdef:
|
|
|
|
-cd ${.CURDIR} ; \
|
|
|
|
( for i in *.[ch] ; do \
|
|
|
|
unifdef -UAUTHENTICATION -UENCRYPTION \
|
|
|
|
${.CURDIR}/../../crypto/telnet/telnetd/$$i \
|
|
|
|
> ${.CURDIR}/$$i ; \
|
|
|
|
echo $$i ; \
|
|
|
|
done )
|
|
|
|
|
1994-05-27 12:39:25 +00:00
|
|
|
.include <bsd.prog.mk>
|