bc2e1305d8
INTERNALLIB now implies NOPIC and NOPROFILE. Removed gratuitous NOMAN.
33 lines
720 B
Makefile
33 lines
720 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= telnet
|
|
|
|
INTERNALLIB= yes
|
|
|
|
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
|
|
enc_des.c sra.c pk.c
|
|
|
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA \
|
|
-I${TELNETDIR} -I${TELNETDIR}/libtelnet
|
|
|
|
WARNS?= 2
|
|
|
|
INCS= ${TELNETDIR}/arpa/telnet.h
|
|
INCSDIR= ${INCLUDEDIR}/arpa
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.PATH: ${TELNETDIR}/libtelnet
|
|
|
|
#
|
|
# Remove obsolete shared libraries, if any. We don't bother moving them
|
|
# to /usr/lib/compat, since they were only used by telnet, telnetd and
|
|
# tn3270.
|
|
#
|
|
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
|
|
rm -f ${DESTDIR}${SHLIBDIR}/lib${LIB}.so.2.0
|
|
.endif
|