Makefile revision 87147
1#	From: @(#)Makefile	8.2 (Berkeley) 12/15/93
2# $FreeBSD: head/lib/libtelnet/Makefile 87147 2001-11-30 21:34:51Z markm $
3
4LIB=		telnet
5
6INTERNALLIB=	yes
7INTERNALSTATICLIB=yes
8NOPIC=		yes
9
10SRCS=		genget.c getent.c misc.c
11
12WARNS?=		2
13
14unifdef:
15	-cd ${.CURDIR} ; \
16	( for i in *.[ch] ; do \
17		unifdef -UAUTHENTICATION -UENCRYPTION \
18			${.CURDIR}/../../crypto/telnet/libtelnet/$$i \
19				> ${.CURDIR}/$$i ; \
20		echo $$i ; \
21	done )
22
23.include <bsd.lib.mk>
24
25#
26# Remove obsolete shared libraries, if any.  We don't bother moving them
27# to /usr/lib/compat, since they were only used by telnet, telnetd and
28# tn3270.
29#
30beforeinstall: __remove-stale-libs
31__remove-stale-libs: .PHONY
32.if exists(${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0)
33	-chflags noschg ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
34	rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
35.endif
36