1 1.1.1.2 mycroft # @(#)Makefile 8.2 (Berkeley) 12/15/93 2 1.1 cgd 3 1.1 cgd PROG= telnetd 4 1.1 cgd CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS 5 1.1.1.2 mycroft CFLAGS+=-DOLD_ENVIRON -DENV_HACK 6 1.1.1.2 mycroft CFLAGS+=-DAUTHENTICATION -DENCRYPTION -I${.CURDIR}/../../lib 7 1.1.1.2 mycroft SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ 8 1.1 cgd termstat.c utility.c 9 1.1.1.2 mycroft DPADD= ${LIBUTIL} ${LIBTERM} 10 1.1 cgd LDADD= -lutil -ltermcap -ltelnet 11 1.1.1.2 mycroft LDADD+= -lkrb -ldes 12 1.1 cgd MAN8= telnetd.0 13 1.1 cgd 14 1.1.1.2 mycroft # These are the sources that have encryption stuff in them. 15 1.1.1.2 mycroft CRYPT_SRC= authenc.c ext.h state.c telnetd.c termstat.c 16 1.1.1.2 mycroft CRYPT_SRC+= utility.c Makefile 17 1.1.1.2 mycroft NOCRYPT_DIR=${.CURDIR}/Nocrypt 18 1.1.1.2 mycroft 19 1.1 cgd .include <bsd.prog.mk> 20 1.1.1.2 mycroft 21 1.1.1.2 mycroft nocrypt: 22 1.1.1.2 mycroft #ifdef ENCRYPTION 23 1.1.1.2 mycroft @for i in ${CRYPT_SRC}; do \ 24 1.1.1.2 mycroft if [ ! -d ${NOCRYPT_DIR} ]; then \ 25 1.1.1.2 mycroft echo Creating subdirectory ${NOCRYPT_DIR}; \ 26 1.1.1.2 mycroft mkdir ${NOCRYPT_DIR}; \ 27 1.1.1.2 mycroft fi; \ 28 1.1.1.2 mycroft echo ${NOCRYPT_DIR}/$$i; \ 29 1.1.1.2 mycroft unifdef -UENCRYPTION ${.CURDIR}/$$i | \ 30 1.1.1.2 mycroft sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \ 31 1.1.1.2 mycroft done 32 1.1.1.2 mycroft 33 1.1.1.2 mycroft placeholder: 34 1.1.1.2 mycroft #else /* ENCRYPTION */ 35 1.1.1.2 mycroft @echo "Encryption code already removed." 36 1.1.1.2 mycroft #endif /* ENCRYPTION */ 37