1994-08-05 02:02:36 +00:00
|
|
|
# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2001-08-20 12:04:53 +00:00
|
|
|
LIB= telnet
|
2001-03-28 12:08:22 +00:00
|
|
|
|
2001-08-20 12:04:53 +00:00
|
|
|
INTERNALLIB= yes
|
2001-03-28 12:08:22 +00:00
|
|
|
|
2001-08-20 12:04:53 +00:00
|
|
|
SRCS= genget.c getent.c misc.c
|
2001-11-30 21:34:51 +00:00
|
|
|
|
|
|
|
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>
|
1994-05-27 05:00:24 +00:00
|
|
|
|
1998-08-30 13:07:16 +00:00
|
|
|
#
|
1998-10-11 16:33:02 +00:00
|
|
|
# Remove obsolete shared libraries, if any. We don't bother moving them
|
2001-08-20 12:04:53 +00:00
|
|
|
# to /usr/lib/compat, since they were only used by telnet, telnetd and
|
1998-10-11 16:33:02 +00:00
|
|
|
# tn3270.
|
1998-08-30 13:07:16 +00:00
|
|
|
#
|
2001-11-30 21:34:51 +00:00
|
|
|
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
|
1998-10-11 16:33:02 +00:00
|
|
|
rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
|
2001-11-30 21:34:51 +00:00
|
|
|
.endif
|