1994-05-27 12:39:25 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 12/15/93
|
|
|
|
|
|
|
|
PROG= telnetd
|
|
|
|
CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
|
|
|
|
CFLAGS+=-DOLD_ENVIRON -DENV_HACK
|
1994-08-05 21:24:58 +00:00
|
|
|
CFLAGS+=--I${.CURDIR}/../../lib
|
|
|
|
#CFLAGS+=-DAUTHENTICATION -DENCRYPTION
|
1994-05-27 12:39:25 +00:00
|
|
|
SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
|
|
|
|
termstat.c utility.c
|
|
|
|
DPADD= ${LIBUTIL} ${LIBTERM}
|
|
|
|
LDADD= -lutil -ltermcap -ltelnet
|
1994-08-05 21:24:58 +00:00
|
|
|
#LDADD+= -lkrb -ldes
|
|
|
|
MAN8= telnetd.8
|
1994-05-27 12:39:25 +00: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 */
|