freebsd-nq/usr.bin/telnet/Makefile
Mark Murray b3c1c587b6 Diff-reduce WRT src/secure/*telnet*/Makefile.
Also, add an "unifdef:" target, so that the telnet sources can
be remade from the crypto sources in src/crypto/telnet.
2001-11-30 21:34:51 +00:00

43 lines
948 B
Makefile

# $FreeBSD$
PROG= telnet
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/
WARNS?= 2
.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}
.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 )
.include <bsd.prog.mk>