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