# Copyright (c) 1990 The Regents of the University of California.
# %sccs.include.redist.sh%
# @(#)Makefile 8.1 (Berkeley) %G%
CFLAGS
+=-DTERMCAP
-DKLUDGELINEMODE
-DUSE_TERMIO
-DAUTHENTICATION
-DENCRYPTION
CFLAGS
+=-I
${.CURDIR
}/..
/..
/lib
LDADD
= -ltermcap
-ltelnet
SRCS
= authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \
terminal.c tn3270.c utilities.c
# These are the sources that have encryption stuff in them.
CRYPT_SRC
= authenc.c commands.c externs.h main.c network.c
CRYPT_SRC
+= ring.c ring.h telnet.c terminal.c utilities.c Makefile
NOCRYPT_DIR
=${.CURDIR
}/Nocrypt
@for i in
${CRYPT_SRC}; do \
if
[ ! -d
${NOCRYPT_DIR} ]; then \
echo Creating subdirectory
${NOCRYPT_DIR}; \
echo
${NOCRYPT_DIR}/$$i; \
unifdef
-UENCRYPTION
${.CURDIR
}/$$i | \
sed
"s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \
@echo
"Encryption code already removed."