# Sample makefile for building debuggable executables from CLU sources

CLU     = ${CLUHOME}/exe/pclu                      # the compiler
LINK	= ${CLUHOME}/exe/plink			   # a linker

OBJS = factorial.o 

factorial: ${OBJS}
	${LINK} -o $@ ${OBJS}

factorial.o: factorial.clu
	rm -f factorial.c
	${CLU} -cf -ext false -spec factorial -co factorial

clean:
	rm -f ${OBJS} factorial factorial.c factorial.sym factorial.bkpts
