make libtelnet (and telnet, telnetd) use libkrb when required

This commit is contained in:
Assar Westerlund 2001-11-01 03:16:03 +00:00
parent a58a4acd14
commit ceb6fd100e
3 changed files with 30 additions and 4 deletions

View File

@ -8,6 +8,11 @@ NOPIC= yes
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
enc_des.c sra.c pk.c
.if defined(MAKE_KERBEROS4)
SRCS+= kerberos.c
CFLAGS+= -DKRB4 -I${KRB4DIR}/lib/krb
.endif
#SRCS+= kerberos5.c
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \

View File

@ -13,9 +13,17 @@ CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c authenc.c
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
DPADD=
LDADD=
.if defined(MAKE_KERBEROS4)
DPADD+= ${LIBKRB} ${LIBCOM_ERR}
LDADD+= -lkrb -lcom_err
.endif
DPADD+= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
${LIBCRYPT} ${LIBPAM}
LDADD= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
LDADD+= -lutil -ltermcap ${LIBTELNET} -lmp -lcrypto \
-lcrypt ${MINUSLPAM}
.include <bsd.prog.mk>

View File

@ -5,14 +5,27 @@ PROG= telnet
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-DENCRYPTION -DAUTHENTICATION -DIPSEC -DINET6 \
-I${TELNETDIR}
.if defined(MAKE_KERBEROS4)
CFLAGS+= -DKRB4
.endif
#CFLAGS+= -DKRB5
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c tn3270.c utilities.c
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
DPADD=
LDADD=
.if defined(MAKE_KERBEROS4)
DPADD+= ${LIBKRB} ${LIBCOM_ERR}
LDADD+= -lkrb -lcom_err
.endif
DPADD+= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
${LIBIPSEC} ${LIBPAM}
LDADD= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
LDADD+= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
-lipsec ${MINUSLPAM}
.include <bsd.prog.mk>