# Sample makefile for building production executables from CLU sources

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

OBJS = factorial.o 

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

factorial.o: factorial.clu
	${CLU} -ext false -spec factorial -opt -cf -co factorial

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