## Virtual Classroom demonstration
##        (C) 1997/98 E.Pontelli, G. Gupta, K.Deopura
##
### MOSAIC KLIC COMPILATION

KLIC = klic
KLICFLAGS = -g
CFLAGS = -g
CC = gcc

OBJ = support.o list.o connect.o interface.o high_level.o form.o tohtml.o util.o html.o string_to_integer.o parse_hidden.o 


## EDIT: change the two paths below to point to the local CGI directory
all: $(OBJ) 
#	$(KLIC) $(KLICFLAGS) -o mosaic high_level.o interface.o connect.o list.o support.o
	$(KLIC) $(KLICFLAGS) -o teacher teacher.kl1 $(OBJ)
	$(KLIC) $(KLICFLAGS) -o first.cgi cgi_copy.kl1
	mv first.cgi /home/http/programs/epontell/
	chmod 755 /home/http/programs/epontell/first.cgi


clean: 
	rm -f *.o

support.o: support.c cci.h 
	$(CC) $(CFLAGS) -c support.c
list.o: list.c list.h listP.h
	$(CC) $(CFLAGS) -c list.c
connect.o: connect.c connect.h port.h memStuffForPipSqueeks.h
	$(CC) $(CFLAGS) -c connect.c
interface.o: interface.c cci.h
	$(CC) $(CFLAGS) -c interface.c
high_level.o : high_level.kl1 port.h cci.h
	$(KLIC) $(KLICFLAGS) -c -o high_level.o high_level.kl1
form.o: form.kl1
	$(KLIC) $(KLICFLAGS) -c -o form.o form.kl1
tohtml.o: tohtml.kl1
	$(KLIC) $(KLICFLAGS) -c -o tohtml.o tohtml.kl1
util.o: util.kl1
	$(KLIC) $(KLICFLAGS) -c -o util.o util.kl1
string_to_integer.o: string_to_integer.kl1
	$(KLIC) $(KLICFLAGS) -c -o string_to_integer.o string_to_integer.kl1
parse_hidden.o: parse_hidden.kl1
	$(KLIC) $(KLICFLAGS) -c -o parse_hidden.o parse_hidden.kl1
html.o: html.kl1
	$(KLIC) $(KLICFLAGS) -c -o html.o html.kl1
