# Sample makefile for building production executables from CLU sources

PCLU  = $(CLUHOME)/exe/PCLU

OBJS = factorial.o 

factorial: ${OBJS}
	$(PCLU) -link $@ ${OBJS}

factorial.o: factorial.clu
	$(PCLU) -create factorial.lib -spec factorial.clu
	$(PCLU) -use factorial.lib -compile factorial.clu

clean:
	rm -f ${OBJS} factorial factorial.lib
