freebsd-dev/usr.bin/telnet/Makefile

41 lines
936 B
Makefile
Raw Normal View History

# $FreeBSD$
1994-05-27 12:33:43 +00:00
PROG= telnet
1994-05-27 12:33:43 +00:00
SRCS= commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c utilities.c
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-I${.CURDIR}/../../lib -I${.CURDIR}/../../lib/libtelnet/
.if exists(${.OBJDIR}/../../lib/libtelnet)
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
.else
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
.endif
DPADD= ${LIBTERMCAP} ${LIBTELNET}
LDADD= -ltermcap ${LIBTELNET}
1994-05-27 12:33:43 +00:00
.if !defined(RELEASE_CRUNCH)
CFLAGS+= -DINET6 -DIPSEC
DPADD+= ${LIBIPSEC}
LDADD+= -lipsec
.else
.PATH: ${.CURDIR}/../../lib/libtelnet
# XXX This was copied from lib/libtelnet/Makefile.
SRCS+= genget.c getent.c misc.c
CFLAGS+= -DHAS_CGETENT
.endif
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>