Style clean-up, and diff-reduce WRT src/secure/*/telnet/Makefile

This commit is contained in:
markm 2001-11-30 21:12:31 +00:00
parent 88aee8d95a
commit 82f5897320
3 changed files with 32 additions and 18 deletions

View File

@ -10,21 +10,26 @@ SRCS= genget.c getent.c misc.c encrypt.c auth.c \
enc_des.c sra.c pk.c
SRCS+= kerberos.c
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
-DSRA -I${TELNETDIR}
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA -I${TELNETDIR}
CFLAGS+= -DKRB4 -I${KRB4DIR}/lib/krb
WARNS?= 2
INCS= ${TELNETDIR}/arpa/telnet.h
INCDIR= /usr/include/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:
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
.include <bsd.lib.mk>
.PATH: ${TELNETDIR}/libtelnet
.endif

View File

@ -6,18 +6,22 @@
PROG= telnetd
MAN= telnetd.8
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c authenc.c
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
-DENV_HACK -DAUTHENTICATION -DENCRYPTION \
-I${TELNETDIR} -DINET6
CFLAGS+= -DKRB4
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c authenc.c
WARNS?= 2
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
${LIBKRB} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBPAM}
${LIBKRB} ${LIBCOM_ERR} \
${LIBCRYPT} ${LIBPAM}
LDADD= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err ${MINUSLPAM}
-L${KRBOBJDIR} -lkrb -lcom_err \
-lcrypt ${MINUSLPAM}
.include <bsd.prog.mk>

View File

@ -2,18 +2,23 @@
PROG= telnet
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c utilities.c
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-DENCRYPTION -DAUTHENTICATION -DIPSEC -DINET6 \
-I${TELNETDIR}
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
CFLAGS+= -DKRB4
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c tn3270.c utilities.c
WARNS?= 2
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBKRB} \
${LIBCRYPT} ${LIBCOM_ERR} ${LIBIPSEC} ${LIBPAM}
LDADD= -ltermcap ${LIBTELNET} -lmp -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lipsec ${MINUSLPAM}
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} \
${LIBKRB} ${LIBCOM_ERR} \
${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
LDADD= -ltermcap ${LIBTELNET} -lmp \
-lkrb -lcom_err \
-lcrypto -lcrypt -lipsec ${MINUSLPAM}
.include <bsd.prog.mk>