1*65154Sdab# @(#)Makefile 8.2 (Berkeley) 12/15/93 246799Sdab 346799SdabLIB= telnet 460497SdabSRCS= auth.c encrypt.c genget.c getent.c misc.c 547612SdabSRCS+= kerberos.c enc_des.c 647612Sdab#SRCS+= kerberos5.c 7*65154SdabCFLAGS+= -DENCRYPTION -DAUTHENTICATION -DHAS_CGETENT 857419SdabCFLAGS+= -DKRB4 -DDES_ENCRYPTION -I/usr/include/kerberosIV 946799Sdab 1060180Sdab# These are the sources that have encryption stuff in them. 1160180SdabCRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c 1260180SdabCRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c 1360180SdabCRYPT_SRC+= misc.c spx.c Makefile 1460180SdabNOCRYPT_DIR=${.CURDIR}/Nocrypt 1560180Sdab 1646799Sdab.include <bsd.lib.mk> 1746814Sdab 1860180Sdabnocrypt: 1960180Sdab#ifdef ENCRYPTION 2060180Sdab @for i in ${CRYPT_SRC}; do \ 2160180Sdab if [ ! -d ${NOCRYPT_DIR} ]; then \ 2260180Sdab echo Creating subdirectory ${NOCRYPT_DIR}; \ 2360180Sdab mkdir ${NOCRYPT_DIR}; \ 2460180Sdab fi; \ 2560180Sdab echo ${NOCRYPT_DIR}/$$i; \ 2660180Sdab unifdef -UENCRYPTION ${.CURDIR}/$$i | \ 2760180Sdab sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ 2860180Sdab done 2960180Sdab 3060180Sdabplaceholder: 3160180Sdab#else /* ENCRYPTION */ 3260180Sdab @echo "Encryption code already removed." 3360180Sdab#endif /* ENCRYPTION */ 34