1# @(#)Makefile 8.2 (Berkeley) 12/15/93 2 3LIB= telnet 4SRCS= auth.c encrypt.c genget.c getent.c misc.c 5SRCS+= kerberos.c enc_des.c 6#SRCS+= kerberos5.c 7CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DHAS_CGETENT 8CFLAGS+= -DKRB4 -DDES_ENCRYPTION -I/usr/include/kerberosIV 9 10# These are the sources that have encryption stuff in them. 11CRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c 12CRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c 13CRYPT_SRC+= misc.c spx.c Makefile 14NOCRYPT_DIR=${.CURDIR}/Nocrypt 15 16.include <bsd.lib.mk> 17 18nocrypt: 19#ifdef ENCRYPTION 20 @for i in ${CRYPT_SRC}; do \ 21 if [ ! -d ${NOCRYPT_DIR} ]; then \ 22 echo Creating subdirectory ${NOCRYPT_DIR}; \ 23 mkdir ${NOCRYPT_DIR}; \ 24 fi; \ 25 echo ${NOCRYPT_DIR}/$$i; \ 26 unifdef -UENCRYPTION ${.CURDIR}/$$i | \ 27 sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ 28 done 29 30placeholder: 31#else /* ENCRYPTION */ 32 @echo "Encryption code already removed." 33#endif /* ENCRYPTION */ 34