diff options
| author | Mark Murray <markm@FreeBSD.org> | 2001-11-30 21:34:51 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2001-11-30 21:34:51 +0000 |
| commit | b3c1c587b64b09f5acaec7fd72efae50bb8d633a (patch) | |
| tree | 3585eef952fedaf1f5d29ce536ee06a70ec21383 /lib/libtelnet | |
| parent | d912c694ee00de5ea0f46743295a0fc603cab562 (diff) | |
Notes
Diffstat (limited to 'lib/libtelnet')
| -rw-r--r-- | lib/libtelnet/Makefile | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/libtelnet/Makefile b/lib/libtelnet/Makefile index ec466707a5b4..2b55cbe0c154 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 <bsd.lib.mk> # # 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 <bsd.lib.mk> - +.endif |
