# makefile for GBook

# By Bill Kendrick
# kendrick@zippy.sonoma.edu
# http://zippy.sonoma.edu/~kendrick/

# Sept. 22, 1996 - Sept. 22, 1996


all:	gbook.cgi htmls


# CGI's:

gbook.cgi:	gbook.o cgi-util.o dump.o htmlerror.o readline.o
	gcc gbook.o cgi-util.o dump.o htmlerror.o readline.o -o gbook.cgi
	chmod 755 gbook.cgi
	strip gbook.cgi

htmls:

	touch guests.html
	chmod 666 guests.html
	touch temp.dat
	chmod 666 temp.dat


# CGI Objects:

gbook.o:	gbook.c cgi-util.h dump.h htmlerror.h readline.h
	gcc gbook.c -c


# Library Objects:

cgi-util.o:	cgi-util.c cgi-util.h
	gcc cgi-util.c -c

dump.o:	dump.c dump.h
	gcc dump.c -c

htmlerror.o:	htmlerror.c htmlerror.h
	gcc htmlerror.c -c

readline.o:	readline.c readline.h
	gcc readline.c -c
