head	1.20;
access;
symbols;
locks; strict;
comment	@# @;


1.20
date	97.06.09.01.26.23;	author dholland;	state Exp;
branches;
next	1.19;

1.19
date	97.06.09.01.11.12;	author dholland;	state Exp;
branches;
next	1.18;

1.18
date	97.05.13.05.37.24;	author dholland;	state Exp;
branches;
next	1.17;

1.17
date	96.11.24.16.10.59;	author dholland;	state Exp;
branches;
next	1.16;

1.16
date	96.11.23.19.01.33;	author dholland;	state Exp;
branches;
next	1.15;

1.15
date	96.08.30.00.52.05;	author dholland;	state Exp;
branches;
next	1.14;

1.14
date	96.08.14.18.02.45;	author dholland;	state Exp;
branches;
next	1.13;

1.13
date	96.08.13.09.16.26;	author dholland;	state Exp;
branches;
next	1.12;

1.12
date	96.08.05.07.42.15;	author dholland;	state Exp;
branches;
next	1.11;

1.11
date	96.08.02.09.18.40;	author dholland;	state Exp;
branches;
next	1.10;

1.10
date	96.08.01.21.34.24;	author dholland;	state Exp;
branches;
next	1.9;

1.9
date	96.07.26.10.02.28;	author dholland;	state Exp;
branches;
next	1.8;

1.8
date	96.07.26.09.59.31;	author dholland;	state Exp;
branches;
next	1.7;

1.7
date	96.07.26.09.54.36;	author dholland;	state Exp;
branches;
next	1.6;

1.6
date	96.07.22.09.02.00;	author dholland;	state Exp;
branches;
next	1.5;

1.5
date	96.07.22.08.36.54;	author dholland;	state Exp;
branches;
next	1.4;

1.4
date	96.07.16.08.21.01;	author dholland;	state Exp;
branches;
next	1.3;

1.3
date	96.07.16.07.58.15;	author dholland;	state Exp;
branches;
next	1.2;

1.2
date	96.07.16.05.17.22;	author dholland;	state Exp;
branches;
next	1.1;

1.1
date	94.05.23.09.11.48;	author rzsfl;	state Exp;
branches;
next	;


desc
@Original
@


1.20
log
@minor glibc fixes
@
text
@all: telnet

include ../MCONFIG
include ../MRULES

ifeq ($(USE_GLIBC),1)
CFLAGS += -D_GNU_SOURCE
endif

#CFLAGS:=$(patsubst -O2, -g, $(CFLAGS))

# -DAUTHENTICATE
CFLAGS += -DUSE_TERMIO -DKLUDGELINEMODE
LIBS += $(LIBTERMCAP)

SRCS = commands.cc main.cc network.cc ring.cc sys_bsd.cc telnet.cc \
	terminal.cc tn3270.cc utilities.cc genget.cc environ.cc netlink.cc

OBJS = $(patsubst %.cc, %.o, $(SRCS))

telnet: $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@@

include .depend
.depend: 
	touch .depend
	$(MAKE) depend
depend:
	$(CC) $(CFLAGS) -MM $(SRCS) >.depend

install: telnet
	install -s -m$(BINMODE) telnet $(INSTALLROOT)$(BINDIR)
	install -m$(MANMODE) telnet.1 $(INSTALLROOT)$(MANDIR)/man1

clean:
	rm -f *.o telnet

@


1.19
log
@Fix INSTALLROOT
@
text
@d6 4
@


1.18
log
@fix to use INSTALLROOT
@
text
@d28 2
a29 2
	install -s -m$(BINMODE) telnet $(INSTALLDIR)$(BINDIR)
	install -m$(MANMODE) telnet.1 $(INSTALLDIR)$(MANDIR)/man1
@


1.17
log
@added commented-out line for putting in debug
@
text
@d28 2
a29 2
	install -s -m$(BINMODE) telnet $(BINDIR)
	install -m$(MANMODE) telnet.1 $(MANDIR)/man1
@


1.16
log
@Standardize install permissions.
@
text
@d6 2
@


1.15
log
@Support install prefixes
@
text
@d26 2
a27 2
	install -s telnet $(BINDIR)
	install -m644 telnet.1 $(MANDIR)/man1
@


1.14
log
@use config for which termcap lib
@
text
@d26 2
a27 2
	install -s telnet /usr/bin
	install -m644 telnet.1 /usr/man/man1
@


1.13
log
@fix to work with ncurses
@
text
@d8 1
a8 1
LIBS += -lncurses
@


1.12
log
@remove authenc.cc from build
@
text
@d7 2
a8 9

CFLAGS = -g -Wall

CFLAGS += '-DISSUE_FILE="/etc/issue.net"' -I.. \
	-DTERMCAP -DUSE_TERMIO -DKLUDGELINEMODE -DDIAGNOSTICS

# Warning. If you link it with ncurses instead of libtermcap it will crash.
# This will be fixed in a future release.
LIBS += -ltermcap 
@


1.11
log
@add netlink.cc
@
text
@d17 1
a17 1
SRCS = authenc.cc commands.cc main.cc network.cc ring.cc sys_bsd.cc telnet.cc \
@


1.10
log
@do dependencies right
@
text
@d18 1
a18 1
	terminal.cc tn3270.cc utilities.cc genget.cc environ.cc
@


1.9
log
@get rid of fdset.h
@
text
@d8 2
d12 3
d17 2
a18 2
OBJS = authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o \
	terminal.o tn3270.o utilities.o genget.o
d20 1
a20 2
# Warning. If you link it with ncurses instead of libtermcap it will crash.
# This will be fixed in a future release.
d25 6
a30 1
$(OBJS): defines.h externs.h proto.h ring.h types.h genget.h
@


1.8
log
@get rid of general.h
@
text
@d21 1
a21 1
$(OBJS): defines.h externs.h fdset.h proto.h ring.h types.h genget.h
@


1.7
log
@ingest genget in here, don't use libtelnet
@
text
@d21 1
a21 1
$(OBJS): defines.h externs.h fdset.h general.h proto.h ring.h types.h genget.h
@


1.6
log
@fix LIBS
@
text
@d10 1
a10 1
LIBS += -L../libtelnet -ltelnet -ltermcap 
d13 1
a13 1
	terminal.o tn3270.o utilities.o
d21 1
a21 1
$(OBJS): defines.h externs.h fdset.h general.h proto.h ring.h types.h
@


1.5
log
@removed broken kerberos support
@
text
@d10 1
a10 1
LDLIBS = -lbsd -ltermcap -ltelnet -L ../libtelnet
d19 1
a19 1
	$(CC) $(LDFLAGS) $^ $(LIBS) -L../libtelnet -ltelnet -ltermcap -o $@@
@


1.4
log
@Oops, no -g in release version
@
text
@d6 3
a8 1
CFLAGS += '-DISSUE_FILE="/etc/issue.net"' -DAUTHENTICATE -I.. \
@


1.3
log
@new makefiles
@
text
@d6 1
a6 1
CFLAGS = -g -Wall '-DISSUE_FILE="/etc/issue.net"' -DAUTHENTICATE -I.. \
@


1.2
log
@As distributed with NetKit-B-0.06
@
text
@d1 6
a6 1
CFLAGS += '-DISSUE_FILE="/etc/issue.net"' -DAUTHENTICATE -I.. \
d10 10
a19 2
telnet: authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o \
		terminal.o tn3270.o utilities.o
@


1.1
log
@Initial revision
@
text
@d1 14
@
