Makefile revision 15358
190075Sobrien#
2132718Skan# Copyright (c) 1990 The Regents of the University of California.
3169689Skan# All rights reserved.
490075Sobrien#
590075Sobrien# Redistribution and use in source and binary forms, with or without
690075Sobrien# modification, are permitted provided that the following conditions
790075Sobrien# are met:
8132718Skan# 1. Redistributions of source code must retain the above copyright
990075Sobrien#    notice, this list of conditions and the following disclaimer.
10132718Skan# 2. Redistributions in binary form must reproduce the above copyright
11132718Skan#    notice, this list of conditions and the following disclaimer in the
12132718Skan#    documentation and/or other materials provided with the distribution.
13132718Skan# 3. All advertising materials mentioning features or use of this software
1490075Sobrien#    must display the following acknowledgement:
15132718Skan#	This product includes software developed by the University of
16132718Skan#	California, Berkeley and its contributors.
17132718Skan# 4. Neither the name of the University nor the names of its contributors
18132718Skan#    may be used to endorse or promote products derived from this software
1990075Sobrien#    without specific prior written permission.
20132718Skan#
21132718Skan# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22169689Skan# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23169689Skan# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24169689Skan# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2590075Sobrien# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2690075Sobrien# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27132718Skan# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28132718Skan# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2990075Sobrien# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3090075Sobrien# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3190075Sobrien# SUCH DAMAGE.
3290075Sobrien#
3390075Sobrien#	@(#)Makefile	8.1 (Berkeley) 6/6/93
3490075Sobrien#
3590075Sobrien
3690075SobrienPROG=	telnet
3790075Sobrien
3890075SobrienCFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO #-DAUTHENTICATION -DENCRYPTION
3990075SobrienCFLAGS+=-DENV_HACK
4090075SobrienCFLAGS+=-I${.CURDIR}/../../lib
4190075Sobrien
4290075Sobrien#CFLAGS+= -DKRB4
4390075Sobrien
4490075SobrienLDADD=	-ltermcap -ltelnet
4590075Sobrien#LDADD+=-lkrb -ldes
4690075SobrienDPADD=	${LIBTERMCAP}
4790075Sobrien
4890075SobrienSRCS=	authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \
4990075Sobrien	terminal.c tn3270.c utilities.c
5090075Sobrien
5190075Sobrien# These are the sources that have encryption stuff in them.
5290075SobrienCRYPT_SRC= authenc.c commands.c externs.h main.c network.c
53132718SkanCRYPT_SRC+= ring.c ring.h telnet.c terminal.c utilities.c Makefile
54169689SkanNOCRYPT_DIR=${.CURDIR}/Nocrypt
5590075Sobrien
5690075Sobrien.if defined(SOCKS)
5790075SobrienCFLAGS+=-DSOCKS
5890075SobrienCFLAGS+=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten \
5990075Sobrien	-Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect
6090075SobrienLDADD+=	-lsocks
6190075Sobrien.endif
6290075Sobrien
63169689Skan.include <bsd.prog.mk>
64132718Skan
65169689Skannocrypt:
66169689Skan	@echo "Encryption code already removed."
67132718Skan