Commit be155109 authored by John van Groningen's avatar John van Groningen
Browse files

add Makefile and run_all_programs for Small Examples

parent b28e5231
# 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)
revtwice: revtwice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m revtwice -o revtwice
twice: twice.icl
$(CLM) $(CLMFLAGS) -h 4m -s 2m twice -o twice
pascal: pascal.icl
$(CLM) $(CLMFLAGS) -b pascal -o pascal
copyfile: copyfile.icl
$(CLM) $(CLMFLAGS) -nr copyfile -o copyfile
#
# Cleanup
#
cleanup:
$(RM) $(CLEAN_EXAMPLES)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.abc)
$(RM) $(CLEAN_EXAMPLES:%=Clean\ System\ Files/%.o)
#
# Commands
#
CLM = clm
CLMFLAGS = -nw
.SUFFIXES: .icl
.icl:
$(CLM) $(CLMFLAGS) $* -o $*
make all
./hamming
./pascal
./squeen
./war_seq
./acker
./invperm
./reverse
./str_arit
./copyfile
./lqueen
./revtwice
./stwice
./e
./mulmat
./rfib
./tak
./fsieve
./nfib
./sieve
./twice
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment