#
# @(#)Makefile	1.3 6/5/96
#

# For gcc
CC= gcc 
# For ANSI compilers
#CC= cc

XCFLAGS= -DHOME=\"$(HOME)\" -DWWWHOME=\"http://www.c2.org/~mark/\" \
	-DUSERNAME="\"Mark Grant\""
#For Optimization
CFLAGS= -O $(XCFLAGS)
#For debugging
#CFLAGS= -g $(XCFLAGS)

RM= /bin/rm -f
#--- You shouldn't have to edit anything else. ---

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

TARGETS=follow gallery submit_gallery index.cgi list_updates

all:	$(TARGETS)

strip:
	strip $(TARGETS)

list_updates: list_updates.o 
	$(CC) list_updates.o -o list_updates

follow: follow.o util.o
	$(CC) follow.o util.o -o follow

index.cgi: index.o
	$(CC) index.o -o index.cgi

gallery: gallery.o util.o
	$(CC) gallery.o util.o -o gallery

submit_gallery: submit_gallery.o util.o
	$(CC) submit_gallery.o util.o -o submit_gallery

clean:
	rm -f *.o $(TARGETS)

