From 3962485896c993d51aaee697f54f7ff19f918e1b Mon Sep 17 00:00:00 2001 From: markm Date: Fri, 30 Nov 2001 21:34:51 +0000 Subject: 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. --- libexec/telnetd/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'libexec/telnetd') diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile index b6ac1e0..0c5b23e 100644 --- a/libexec/telnetd/Makefile +++ b/libexec/telnetd/Makefile @@ -6,12 +6,14 @@ PROG= telnetd MAN= telnetd.8 +SRCS= global.c slc.c state.c sys_term.c telnetd.c \ + termstat.c utility.c + CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \ -DENV_HACK \ -I${.CURDIR}/../../lib -DINET6 -SRCS= global.c slc.c state.c sys_term.c telnetd.c \ - termstat.c utility.c +WARNS?= 2 .if exists(${.OBJDIR}/../../lib/libtelnet) LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a @@ -22,4 +24,13 @@ LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} LDADD= -lutil -ltermcap ${LIBTELNET} +unifdef: + -cd ${.CURDIR} ; \ + ( for i in *.[ch] ; do \ + unifdef -UAUTHENTICATION -UENCRYPTION \ + ${.CURDIR}/../../crypto/telnet/telnetd/$$i \ + > ${.CURDIR}/$$i ; \ + echo $$i ; \ + done ) + .include -- cgit v1.1