###  KLIC COMPILATION
## Require various modules from the standard directory

## Note: cgi scripts can be executed exclusively from
## certain directories (e.g., cgi-bin in public_html). 
## move the executable produced by the compilation to
## such directory 

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

OBJ = cgimanage.o example

all: $(OBJ) 


clean: 
	rm -f *.o

cgimanage.o: cgimanage.kl1
	$(KLIC) $(KLICFLAGS) -c -o cgimanage.o cgimanage.kl1

example: example.kl1 cgimanage.o
	$(KLIC) -g -o example example.kl1 cgimanage.o ../standard/tohtml.o ../standard/util.o ../standard/univ.o ../standard/cgi.o ../standard/inttostr.o ../standard/html.o

