#
#	Makefile for the Clean examples programs
#

#
#		make (= make all):
#			compile all the small IO demos
#
#		make <demo>:
#			compile a demo
#
#		make cleanup:
#			remove all files that can be recreated
#


SMALL_DEMOS = CalcDialog Calculator FileCopy Hanoi TinyDraw

all : $(SMALL_DEMOS)
	
#
# Cleanup
#

cleanup:
	$(RM) $(SMALL_DEMOS) \
	$(RM) *.abc \
	$(RM) *.o

#
# Commands
#	

CLM = clm
CLMFLAGS = -sl x -nw

.SUFFIXES: .icl

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