Deleted Added
full compact
Makefile (96513) Makefile (117675)
1# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
1# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
2# $FreeBSD: head/lib/libtelnet/Makefile 96513 2002-05-13 11:09:07Z ru $
2# $FreeBSD: head/lib/libtelnet/Makefile 117675 2003-07-16 20:59:15Z markm $
3
3
4TELNETDIR= ${.CURDIR}/../../contrib/telnet
5.PATH: ${TELNETDIR}/libtelnet
6
4LIB= telnet
5
6INTERNALLIB= yes
7
8SRCS= genget.c getent.c misc.c
7LIB= telnet
8
9INTERNALLIB= yes
10
11SRCS= genget.c getent.c misc.c
12CFLAGS+= -I${TELNETDIR}
9
10WARNS?= 2
11
13
14WARNS?= 2
15
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 )
16.if !defined(NO_CRYPTO)
17SRCS+= encrypt.c auth.c enc_des.c sra.c pk.c
18CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA
19.if !defined(NO_KERBEROS)
20SRCS+= kerberos5.c
21CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
22CFLAGS+= -DFORWARD -Dnet_write=telnet_net_write
23.endif
24.endif
20
25
21.include <bsd.lib.mk>
26INCS= ${TELNETDIR}/arpa/telnet.h
27INCSDIR= ${INCLUDEDIR}/arpa
22
28
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
29.include <bsd.lib.mk>