xref: /original-bsd/lib/libtelnet/Makefile (revision 149caf01)
1#	@(#)Makefile	5.7 (Berkeley) 05/21/93
2
3LIB=	telnet
4SRCS=	auth.c encrypt.c genget.c getent.c gettytab.c misc.c
5SRCS+=	kerberos.c enc_des.c
6#SRCS+=	kerberos5.c
7CFLAGS+= -DENCRYPTION -DAUTHENTICATION
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.PATH:  ${.CURDIR}/../../libexec/getty
17.include <bsd.lib.mk>
18
19nocrypt:
20#ifdef	ENCRYPTION
21	@for i in ${CRYPT_SRC}; do \
22	    if [ ! -d ${NOCRYPT_DIR} ]; then \
23		echo Creating subdirectory ${NOCRYPT_DIR}; \
24		mkdir ${NOCRYPT_DIR}; \
25	    fi; \
26	    echo ${NOCRYPT_DIR}/$$i; \
27	    unifdef -UENCRYPTION ${.CURDIR}/$$i | \
28		sed "s/ || defined(ENCRYPTION)//" > ${NOCRYPT_DIR}/$$i; \
29	done
30
31placeholder:
32#else	/* ENCRYPTION */
33	@echo "Encryption code already removed."
34#endif	/* ENCRYPTION */
35