2000-03-27 16:37:32 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2001-08-20 12:21:31 +00:00
|
|
|
PROG= telnet
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
SRCS= commands.c main.c network.c ring.c sys_bsd.c \
|
|
|
|
telnet.c terminal.c utilities.c
|
|
|
|
|
2001-08-20 12:21:31 +00:00
|
|
|
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
|
2001-11-30 21:34:51 +00:00
|
|
|
-I${.CURDIR}/../../lib -I${.CURDIR}/../../lib/libtelnet/
|
2001-03-31 17:04:49 +00:00
|
|
|
|
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:21:31 +00:00
|
|
|
DPADD= ${LIBTERMCAP} ${LIBTELNET}
|
|
|
|
LDADD= -ltermcap ${LIBTELNET}
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2000-01-29 13:45:44 +00:00
|
|
|
.if !defined(RELEASE_CRUNCH)
|
2001-08-20 12:21:31 +00:00
|
|
|
CFLAGS+= -DINET6 -DIPSEC
|
|
|
|
DPADD+= ${LIBIPSEC}
|
|
|
|
LDADD+= -lipsec
|
2001-03-31 17:04:49 +00:00
|
|
|
.else
|
2001-08-20 12:21:31 +00:00
|
|
|
.PATH: ${.CURDIR}/../../lib/libtelnet
|
2001-03-31 17:04:49 +00:00
|
|
|
# XXX This was copied from lib/libtelnet/Makefile.
|
2001-08-20 12:21:31 +00:00
|
|
|
SRCS+= genget.c getent.c misc.c
|
|
|
|
CFLAGS+= -DHAS_CGETENT
|
2000-01-29 13:45:44 +00:00
|
|
|
.endif
|
|
|
|
|
2001-11-30 21:34:51 +00:00
|
|
|
unifdef:
|
|
|
|
-cd ${.CURDIR} ; \
|
|
|
|
( for i in *.[ch] ; do \
|
|
|
|
unifdef -UAUTHENTICATION -UENCRYPTION \
|
|
|
|
${.CURDIR}/../../crypto/telnet/telnet/$$i \
|
|
|
|
> ${.CURDIR}/$$i ; \
|
|
|
|
echo $$i ; \
|
|
|
|
done )
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|