summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet/Makefile
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-11-30 21:34:51 +0000
committermarkm <markm@FreeBSD.org>2001-11-30 21:34:51 +0000
commit3962485896c993d51aaee697f54f7ff19f918e1b (patch)
tree3585eef952fedaf1f5d29ce536ee06a70ec21383 /usr.bin/telnet/Makefile
parentcbc4eaa756568b2e5fd2ccc6f12db750bb898cd1 (diff)
downloadFreeBSD-src-3962485896c993d51aaee697f54f7ff19f918e1b.zip
FreeBSD-src-3962485896c993d51aaee697f54f7ff19f918e1b.tar.gz
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.
Diffstat (limited to 'usr.bin/telnet/Makefile')
-rw-r--r--usr.bin/telnet/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index 8e1adfc..65b41bb 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -2,11 +2,13 @@
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 -I${.CURDIR}/../../lib/libtelnet/
-SRCS= commands.c main.c network.c ring.c sys_bsd.c \
- telnet.c terminal.c tn3270.c utilities.c
+WARNS?= 2
.if exists(${.OBJDIR}/../../lib/libtelnet)
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
@@ -28,4 +30,13 @@ 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>
OpenPOWER on IntegriCloud