OBJ=webcrawl.o http.o path.o getxref.o url.o rewrite.o rename.o
INSTDIR=/usr/local/bin
MAN=/usr/local/man

webcrawl: $(OBJ)
	gcc -o webcrawl $(OBJ)
clean:
	rm -f *.o *~ webcrawl
install: webcrawl
	install webcrawl $(INSTDIR)
	install webcrawl.1 $(MAN)/man1
.c.o:
	gcc -Wall -c $*.c

webcrawl.o: webcrawl.c web.h
http.o: http.c web.h
path.o: path.c web.h
getxref.o: getxref.c web.h
url.o: url.c web.h
rewrite.o: rewrite.c web.h
rename.o: rename.c web.h
