1994-08-13 00:53:46 +02:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 12/15/93
|
|
|
|
|
1995-07-24 23:47:30 +02:00
|
|
|
# This stuff need original libdes to run (new_rnd_key.c module),
|
|
|
|
# current eBones/des lib don't have it
|
|
|
|
# Kerberos4 stuff ifdefed by MAKE_KERBEROS (make.conf) because of it
|
|
|
|
|
1994-08-13 00:53:46 +02:00
|
|
|
PROG= telnetd
|
|
|
|
CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS
|
|
|
|
CFLAGS+=-DOLD_ENVIRON -DENV_HACK
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../lib
|
|
|
|
SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
|
|
|
|
termstat.c utility.c
|
1994-09-11 23:53:28 +02:00
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP}
|
1994-08-13 00:53:46 +02:00
|
|
|
LDADD= -lutil -ltermcap -ltelnet
|
1995-07-20 13:40:06 +02:00
|
|
|
|
1994-08-13 00:53:46 +02:00
|
|
|
MAN8= telnetd.8
|
|
|
|
|
1995-07-20 13:40:06 +02:00
|
|
|
#ifdef ENCRYPTION
|
|
|
|
|
|
|
|
CFLAGS+=-DAUTHENTICATION -DENCRYPTION
|
|
|
|
|
1995-07-24 23:47:30 +02:00
|
|
|
.ifdef MAKE_KERBEROS
|
1995-07-20 13:40:06 +02:00
|
|
|
.if exists(/usr/lib/libkrb.a)
|
1995-07-25 00:55:59 +02:00
|
|
|
LDADD+= -ldes -lkrb
|
|
|
|
.endif
|
1995-07-20 13:40:06 +02:00
|
|
|
.endif
|
1995-07-25 00:55:59 +02:00
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb5.a)
|
|
|
|
LDADD+= -ldes -lkrb5
|
1995-07-24 23:47:30 +02:00
|
|
|
.endif
|
1995-07-20 13:40:06 +02:00
|
|
|
|
1995-07-25 00:55:59 +02:00
|
|
|
LDADD+= -ldescrypt
|
|
|
|
|
1995-07-20 13:40:06 +02:00
|
|
|
#endif /* ENCRYPTION */
|
|
|
|
|
1994-08-13 00:53:46 +02: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 */
|