1994-08-12 22:03:01 +00:00
|
|
|
# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
|
1995-10-11 00:04:09 +00:00
|
|
|
# $Id: Makefile,v 1.10 1995/09/14 21:29:05 gibbs Exp $
|
1994-08-12 22:03:01 +00:00
|
|
|
|
|
|
|
LIB= telnet
|
1995-07-24 20:29:12 +00:00
|
|
|
SRCS= auth.c encrypt.c genget.c getent.c misc.c
|
|
|
|
SRCS+= enc_des.c
|
1995-07-20 11:40:06 +00:00
|
|
|
SRCS+= spx.c rsaencpwd.c read_password.c
|
1994-08-12 22:03:01 +00:00
|
|
|
CFLAGS+= -DHAS_CGETENT
|
|
|
|
|
1995-07-20 11:40:06 +00:00
|
|
|
#ifdef ENCRYPTION
|
1995-07-24 22:55:59 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION
|
1995-07-20 11:40:06 +00:00
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb.a)
|
1995-07-24 22:55:59 +00:00
|
|
|
CFLAGS+= -DKRB4 -I/usr/include/kerberosIV -DDES_ENCRYPTION
|
1995-07-24 20:29:12 +00:00
|
|
|
# KRB4_ENCPWD not yet defined
|
|
|
|
#CFLAGS+= -DKRB4_ENCPWD
|
|
|
|
SRCS+= kerberos.c
|
|
|
|
# KRB4_ENCPWD not yet defined
|
|
|
|
#SRCS+= krb4encpwd.c
|
1995-07-24 22:55:59 +00:00
|
|
|
LDADD+= -ldes -lkrb
|
1995-07-20 11:40:06 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb5.a)
|
1995-07-24 22:55:59 +00:00
|
|
|
CFLAGS+= -DKRB5 -DFORWARD -DDES_ENCRYPTION
|
1995-07-20 11:40:06 +00:00
|
|
|
SRCS+= kerberos5.c forward.c
|
1995-07-24 22:55:59 +00:00
|
|
|
LDADD+= -ldes -lkrb5
|
1995-07-20 11:40:06 +00:00
|
|
|
.endif
|
1995-07-24 20:29:12 +00:00
|
|
|
|
1995-08-05 19:10:25 +00:00
|
|
|
# Used only in krb4encpwd.c and rsaencpwd.c, not yet active
|
|
|
|
#LDADD+= -ldescrypt
|
1995-07-24 22:55:59 +00:00
|
|
|
|
1995-07-20 11:40:06 +00:00
|
|
|
#endif /* ENCRYPTION */
|
|
|
|
|
1994-08-12 22:03:01 +00:00
|
|
|
# These are the sources that have encryption stuff in them.
|
|
|
|
CRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c
|
|
|
|
CRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c
|
|
|
|
CRYPT_SRC+= misc.c spx.c Makefile
|
|
|
|
NOCRYPT_DIR=${.CURDIR}/Nocrypt
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
nocrypt:
|
|
|
|
#ifdef ENCRYPTION
|
|
|
|
@for i in ${CRYPT_SRC}; do \
|
|
|
|
if [ ! -d ${NOCRYPT_DIR} ]; then \
|
|
|
|
echo Creating subdirectory ${NOCRYPT_DIR}; \
|
|
|
|
mkdir ${NOCRYPT_DIR}; \
|
|
|
|
fi; \
|
|
|
|
echo ${NOCRYPT_DIR}/$$i; \
|
|
|
|
unifdef -UENCRYPTION ${.CURDIR}/$$i | \
|
|
|
|
sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \
|
|
|
|
done
|
|
|
|
|
|
|
|
placeholder:
|
|
|
|
#else /* ENCRYPTION */
|
|
|
|
@echo "Encryption code already removed."
|
|
|
|
#endif /* ENCRYPTION */
|