head	1.9;
access;
symbols
	tn1:1.3;
locks; strict;
comment	@# @;


1.9
date	2000.12.12.07.50.50;	author kcozens;	state Exp;
branches;
next	1.8;

1.8
date	2000.11.10.21.23.54;	author kcozens;	state Exp;
branches;
next	1.7;

1.7
date	2000.11.09.01.52.54;	author kcozens;	state Exp;
branches;
next	1.6;

1.6
date	2000.02.27.01.03.57;	author kcozens;	state Exp;
branches;
next	1.5;

1.5
date	2000.02.27.00.48.42;	author kcozens;	state Exp;
branches;
next	1.4;

1.4
date	98.12.30.18.56.40;	author kcozens;	state Stable;
branches;
next	1.3;

1.3
date	98.08.26.07.22.28;	author kcozens;	state Exp;
branches;
next	1.2;

1.2
date	98.08.12.06.09.43;	author kcozens;	state Exp;
branches;
next	1.1;

1.1
date	98.06.09.05.32.47;	author kcozens;	state Exp;
branches;
next	;


desc
@This is the Makefile for the NUTS talker.
@


1.9
log
@Compile with support for tcp_wrappers. Now link with nsl library.
@
text
@# Generated automatically from Makefile.in by configure.
CC = gcc
#CFLAGS=-DUSE_WRAPPER -DPARANOID -Wall -ansi -O2
#CFLAGS=-g -DUSE_WRAPPER -DPARANOID -Wall -ansi -pedantic
CFLAGS=-g -DUSE_WRAPPER -Wall -ansi -pedantic
LDFLAGS = -lcrypt -lwrap -lnsl
#LDFLAGS += -lefence
LIBS=lib/telnet.a

all: nuts convert_initdata redirect test

nuts: nuts230.o lists.o $(LIBS)
	$(CC) -o $@@ nuts230.o lists.o $(LIBS) $(LDFLAGS)

nuts230.o: nuts230.c lists.h
	$(CC) -c $(CFLAGS) $<

convert_initdata: convert_initdata.o
	$(CC) -o $@@ convert_initdata.o $(LDFLAGS)

convert_initdata.o: convert_initdata.c
	$(CC) -c $(CFLAGS) $<

redirect: redirect.o
	$(CC) -o $@@ $? $(LDFLAGS)

test: test.o lists.o
	$(CC) -o $@@ test.o lists.o $(LDFLAGS)

test.o: test.c lists.h
	$(CC) -c $(CFLAGS) $<

lists.o: lists.c lists.h
	$(CC) -c $(CFLAGS) $<

lib/telnet.a:
	make -C lib

install: $(PROG)
	cp $(PROG)

clean:
	-rm *.o a.out $(PROG)

distclean:
	-rm Makefile config.h
	-rm config.cache config.log config.status
@


1.8
log
@Removed -D option from standard compile as it was replaced by a #define
in the talker code source file.
@
text
@d5 2
a6 2
CFLAGS=-g -Wall -ansi -pedantic
LDFLAGS = -lcrypt -lwrap
@


1.7
log
@Updated to add creation of the convert_initdata program.
@
text
@d5 1
a5 2
#CFLAGS=-g -Wall -ansi -pedantic
CFLAGS=-g -Wall -ansi -pedantic -DSAVE_BD_FILES
@


1.6
log
@Fixed minor problem with build of test program.
@
text
@d5 2
a6 1
CFLAGS=-g -Wall -ansi -pedantic
d11 1
a11 1
all: nuts redirect test
d19 9
a35 3

redirect: redirect.o
	$(CC) -o $@@ $? $(LDFLAGS)
@


1.5
log
@Changes to building of test program. Added build of 'redirect' program.
@
text
@d19 1
a19 1
	$(CC) -o $@@ $? $(LDFLAGS)
@


1.4
log
@Updated file since the program now needs the telnet library.
@
text
@d4 2
a5 1
CFLAGS=-g -DUSE_WRAPPER -DPARANOID -Wall -ansi -pedantic
a8 1
PROG = nuts
d10 3
a12 1
$(PROG): nuts230.o lists.o $(LIBS)
d19 4
a22 1
	$(CC) $? $(LDFLAGS) -o $@@
d26 3
@


1.3
log
@Mainly changes to CFLAGS and some minor cleanup.
@
text
@d6 2
d10 2
a11 2
$(PROG): nuts230.o lists.o
	$(CC) $? $(LDFLAGS) -o $@@
d21 3
@


1.2
log
@Lots of changes to this file. Mostly addition of rules for the test program
and the linked list routines.
@
text
@d4 1
a4 1
CFLAGS=-g -DUSE_WRAPPER -DPARANOID -Wall
d6 1
d8 1
a8 1
nuts: nuts230.o lists.o
d21 1
a21 1
	cp $(PROG) talkerd
d24 1
a24 1
	-rm *.o a.out $(PROG) talkerd
@


1.1
log
@Initial revision
@
text
@d1 5
a5 2
a.out: nuts230.o
	$(CC) $? -lcrypt -lwrap
d7 2
a8 2
nuts230.o: nuts230.c
	$(CC) -c -Wall -DUSE_WRAPPER -DPARANOID -O $?
d10 11
a20 2
install: a.out
	cp a.out nuts
d23 5
a27 1
	-rm *.o a.out nuts syslog*
@
