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


1.2
date	2000.06.10.17.04.34;	author beecher;	state Exp;
branches;
next	1.1;

1.1
date	98.01.20.22.29.52;	author beecher;	state Exp;
branches;
next	;


desc
@Makefile
@


1.2
log
@link with nsl library
@
text
@.SUFFIXES: .c .o .h 

CC = gcc
INCLUDE=-I/usr/local/include
OPT=-g
CFLAGS=$(INCLUDE) $(OPT)
LIBS= -lnsl

HDR =	gs-struct.h gs-parse.h gs-domains.h gs-topdomains.h gs-tree.h \
	gs-extract.h getstats.h compat.h

OBJ =	gs-parse.o gs-domains.o gs-tree.o gs-extract.o

all:	getstats logres

getstats.o $(OBJ):	$(HDR)

getstats:	getstats.o $(OBJ)
	$(CC) $(CFLAGS) getstats.o $(OBJ) -o $@@

logres.o: logres.h gs-parse.h gs-struct.h

logres:	logres.o gs-parse.o
	$(CC) $(CFLAGS) logres.o gs-parse.o $(LIBS) -o $@@

clean:
	rm -f *.o getstats logres
@


1.1
log
@Initial revision
@
text
@d7 1
d14 1
a14 1
all:	getstats
d16 1
a16 1
getstats.o $(OBJ) : $(HDR)
d24 1
a24 4
	$(CC) $(CFLAGS) logres.o gs-parse.o -o $@@

logres-convert:	logres-convert.o
	$(CC) $(CFLAGS) logres-convert.o -o $@@
@
