Makefile revision 1854
11854Swollman# From: @(#)Makefile 8.2 (Berkeley) 12/15/93 21854Swollman# $Id$ 31573Srgrimes 41573SrgrimesLIB= telnet 51573SrgrimesSRCS= auth.c encrypt.c genget.c getent.c misc.c 61573SrgrimesSRCS+= kerberos.c enc_des.c 71573Srgrimes#SRCS+= kerberos5.c 81854SwollmanCFLAGS+= -DHAS_CGETENT 91573Srgrimes 101573Srgrimes# These are the sources that have encryption stuff in them. 111573SrgrimesCRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c 121573SrgrimesCRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c 131573SrgrimesCRYPT_SRC+= misc.c spx.c Makefile 141573SrgrimesNOCRYPT_DIR=${.CURDIR}/Nocrypt 151573Srgrimes 161573Srgrimes.include <bsd.lib.mk> 171573Srgrimes 181573Srgrimesnocrypt: 191573Srgrimes#ifdef ENCRYPTION 201573Srgrimes @for i in ${CRYPT_SRC}; do \ 211573Srgrimes if [ ! -d ${NOCRYPT_DIR} ]; then \ 221573Srgrimes echo Creating subdirectory ${NOCRYPT_DIR}; \ 231573Srgrimes mkdir ${NOCRYPT_DIR}; \ 241573Srgrimes fi; \ 251573Srgrimes echo ${NOCRYPT_DIR}/$$i; \ 261573Srgrimes unifdef -UENCRYPTION ${.CURDIR}/$$i | \ 271573Srgrimes sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ 281573Srgrimes done 291573Srgrimes 301573Srgrimesplaceholder: 311573Srgrimes#else /* ENCRYPTION */ 321573Srgrimes @echo "Encryption code already removed." 331573Srgrimes#endif /* ENCRYPTION */ 34