1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1997-09-24 20:37:15 +00:00
|
|
|
|
|
|
|
LIB= telnet
|
|
|
|
|
2001-03-28 12:08:22 +00:00
|
|
|
INTERNALLIB= yes
|
|
|
|
|
2001-08-03 16:03:26 +00:00
|
|
|
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
|
|
|
|
enc_des.c sra.c pk.c
|
2001-12-17 01:33:20 +00:00
|
|
|
.if defined(MAKE_KERBEROS4)
|
|
|
|
SRCS+= kerberos.c
|
|
|
|
CFLAGS+= -DKRB4 -I${KRB4DIR}/lib/krb
|
|
|
|
.endif
|
2001-11-30 21:14:44 +00:00
|
|
|
SRCS+= kerberos5.c
|
2001-11-01 03:16:03 +00:00
|
|
|
|
2001-11-30 21:14:44 +00:00
|
|
|
#WARNS?= 2
|
1997-09-24 20:37:15 +00:00
|
|
|
|
2001-11-30 21:14:44 +00:00
|
|
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA -I${TELNETDIR}
|
2001-12-03 17:45:25 +00:00
|
|
|
CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
|
1997-09-24 20:37:15 +00:00
|
|
|
|
2001-08-03 16:03:26 +00:00
|
|
|
INCS= ${TELNETDIR}/arpa/telnet.h
|
2002-05-12 16:01:00 +00:00
|
|
|
INCSDIR= ${INCLUDEDIR}/arpa
|
1997-09-24 20:37:15 +00:00
|
|
|
|
2001-11-30 21:14:44 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.PATH: ${TELNETDIR}/libtelnet
|
|
|
|
|
1998-08-30 13:08:54 +00:00
|
|
|
#
|
1999-09-13 16:38:58 +00:00
|
|
|
# Remove obsolete shared libraries, if any. We don't bother moving them
|
2001-08-03 16:03:26 +00:00
|
|
|
# to /usr/lib/compat, since they were only used by telnet, telnetd and
|
1999-09-13 16:38:58 +00:00
|
|
|
# tn3270.
|
1998-08-30 13:08:54 +00:00
|
|
|
#
|
2001-11-30 21:14:44 +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
|
1999-09-13 16:38:58 +00:00
|
|
|
rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
|
2001-11-30 21:14:44 +00:00
|
|
|
.endif
|