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. --- lib/libtelnet/Makefile | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'lib/libtelnet') diff --git a/lib/libtelnet/Makefile b/lib/libtelnet/Makefile index ec46670..2b55cbe 100644 --- a/lib/libtelnet/Makefile +++ b/lib/libtelnet/Makefile @@ -8,15 +8,28 @@ INTERNALSTATICLIB=yes NOPIC= yes SRCS= genget.c getent.c misc.c -CFLAGS+= -DHAS_CGETENT + +WARNS?= 2 + +unifdef: + -cd ${.CURDIR} ; \ + ( for i in *.[ch] ; do \ + unifdef -UAUTHENTICATION -UENCRYPTION \ + ${.CURDIR}/../../crypto/telnet/libtelnet/$$i \ + > ${.CURDIR}/$$i ; \ + echo $$i ; \ + done ) + +.include # # Remove obsolete shared libraries, if any. We don't bother moving them # to /usr/lib/compat, since they were only used by telnet, telnetd and # tn3270. # -beforeinstall: +beforeinstall: __remove-stale-libs +__remove-stale-libs: .PHONY +.if exists(${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0) + -chflags noschg ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0 rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0 - -.include - +.endif -- cgit v1.1