# CC= CC_CenterLine
  CC= g++

# OPTS= -O
  OPTS= -g

# PURIFY= purify -collector=/gnu/lib/gcc-lib/sparc/2.4.5/ld

HEADERS= datatypes.h file_system.h template_html.h back_jpg.h mote.h http404_html.h

all:	fs_test
	echo "All files up to date"

#-------- driver program for grid graphs -----------------------------

fs_test:	$(OBJS) fs_test.o file_system.o template_html.o back_jpg.o mote.o http404_html.o
	$(PURIFY) $(CC) -o fs_test $(OBJS) fs_test.o file_system.o template_html.o back_jpg.o mote.o http404_html.o $(OPTS) -lm


fs_test.o:	fs_test.c $(HEADERS)
	$(CC) -c fs_test.c $(OPTS)

file_system.o:	file_system.c $(HEADERS)
	$(CC) -c file_system.c $(OPTS)

template_html.o:	template_html.c $(HEADERS)
	$(CC) -c template_html.c $(OPTS)

http404_html.o:	http404_html.c $(HEADERS)
	$(CC) -c http404_html.c $(OPTS)

back_jpg.o:	back_jpg.c $(HEADERS)
	$(CC) -c back_jpg.c $(OPTS)

mote.o:	mote.c $(HEADERS)
	$(CC) -c mote.c $(OPTS)
clean:
	rm -f *.o fs_test
