# 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}
	cc -G 4 -o $@ ${OBJS} -L/u/dcurtis/KAP/pclu/code -lpclu_opt -lm

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

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