#
#	Makefile for the Clean examples programs
#

#
#		make (= make all):
#			compiles examples
#
#		make <name>:
#			compile one example
#
#		make cleanup:
#			remove all files that can be recreated
#


CLEAN_EXAMPLES = \
	hamming pascal squeen war_seq acker invperm reverse \
	str_arit copyfile lqueen revtwice stwice e mulmat \
	rfib tak fsieve nfib sieve twice

all: $(CLEAN_EXAMPLES)
	
#
# Cleanup
#

cleanup:
	$(RM) $(CLEAN_EXAMPLES) \
	$(RM) $(CLEAN_EXAMPLES:%=%.abc) \
	$(RM) $(CLEAN_EXAMPLES:%=%.o)

#
# Commands
#	

CLM = clm
CLMFLAGS = -nw

.SUFFIXES: .icl

.icl:
	$(CLM) $(CLMFLAGS) $* -o $*
