1994-08-12 18:53:46 -04:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 12/15/93
|
|
|
|
|
|
1995-08-28 13:55:08 -04:00
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
|
|
|
# telnet implementations.
|
|
|
|
|
|
1994-08-12 18:53:46 -04:00
|
|
|
PROG= telnetd
|
1995-08-28 13:55:08 -04:00
|
|
|
MAN8= telnetd.8
|
|
|
|
|
|
1994-08-12 18:53:46 -04:00
|
|
|
SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
|
|
|
|
|
termstat.c utility.c
|
1995-08-28 13:55:08 -04:00
|
|
|
|
1995-09-15 23:04:10 -04:00
|
|
|
DPADD= ${TELNETOBJDIR}/libtelnet.a ${LIBUTIL} ${LIBTERMCAP}
|
|
|
|
|
LDADD= -L${TELNETOBJDIR} -lutil -ltermcap -ltelnet
|
1995-07-20 07:40:06 -04:00
|
|
|
|
1995-08-28 13:55:08 -04:00
|
|
|
CFLAGS+=-DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK
|
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../lib
|
1994-08-12 18:53:46 -04:00
|
|
|
|
1995-07-20 07:40:06 -04:00
|
|
|
#ifdef ENCRYPTION
|
|
|
|
|
|
|
|
|
|
CFLAGS+=-DAUTHENTICATION -DENCRYPTION
|
|
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb.a)
|
1995-07-24 18:55:59 -04:00
|
|
|
LDADD+= -ldes -lkrb
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb5.a)
|
|
|
|
|
LDADD+= -ldes -lkrb5
|
1995-07-24 17:47:30 -04:00
|
|
|
.endif
|
1995-07-20 07:40:06 -04:00
|
|
|
|
1995-08-05 15:10:25 -04:00
|
|
|
# Used only in krb4encpwd.c and rsaencpwd.c (libtelnet), not yet active
|
|
|
|
|
#LDADD+= -ldescrypt
|
1995-07-24 18:55:59 -04:00
|
|
|
|
1995-07-20 07:40:06 -04:00
|
|
|
#endif /* ENCRYPTION */
|
|
|
|
|
|
1994-08-12 18:53:46 -04:00
|
|
|
# These are the sources that have encryption stuff in them.
|
|
|
|
|
CRYPT_SRC= authenc.c ext.h state.c telnetd.c termstat.c
|
|
|
|
|
CRYPT_SRC+= utility.c Makefile
|
|
|
|
|
NOCRYPT_DIR=${.CURDIR}/Nocrypt
|
|
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
|
|
nocrypt:
|
|
|
|
|
#ifdef ENCRYPTION
|
|
|
|
|
@for i in ${CRYPT_SRC}; do \
|
|
|
|
|
if [ ! -d ${NOCRYPT_DIR} ]; then \
|
|
|
|
|
echo Creating subdirectory ${NOCRYPT_DIR}; \
|
|
|
|
|
mkdir ${NOCRYPT_DIR}; \
|
|
|
|
|
fi; \
|
|
|
|
|
echo ${NOCRYPT_DIR}/$$i; \
|
|
|
|
|
unifdef -UENCRYPTION ${.CURDIR}/$$i | \
|
|
|
|
|
sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
placeholder:
|
|
|
|
|
#else /* ENCRYPTION */
|
|
|
|
|
@echo "Encryption code already removed."
|
|
|
|
|
#endif /* ENCRYPTION */
|