
help:
	@echo
	@echo "make bench       Run cobench"
	@echo "make bencht      Run cobench with tracing"
	@echo "make bench100    Run cobench with n=100"
	@echo "make bench500    Run cobench with n=500 (the default)"
	@echo "make bench10000  Run cobench with n=10000"
	@echo "make sim         Run cosim"
	@echo "make simt        Run cosim with tracing"
	@echo "make sim100      Run cosim with n=100"
	@echo "make sim500      Run cosim with n=500 (the default)"
	@echo "make sim10000    Run cosim with n=10000"
	@echo "make test        Run cotest"
	@echo "make clean       Delete compiled files"
	@echo "make help        Display the help infomation"
	@echo

bench:	bench500

bench100:	cobench
	echo "cobench -k 10000 -n 100; logout" | time mintsys
	#time mintsys -c cobench -k 10000 -n 100

bench500:	cobench
	echo "cobench -k 10000 -n 500; logout" | time mintsys
	#time mintsys -c cobench -k 10000 -n 500

bench10000:	cobench
	echo "cobench -k 10000 -n 10000; logout" | time mintsys
	#time mintsys -c cobench -k 10000 -n 10000

bencht:	cobench
	echo "cobench -k 10000 -n 100; logout" | time mintsys
	#time mintsys -c cobench -k 2 -t -n 3

test:	cotest
	echo "cotest; logout" | time mintsys
	#mintsys -c cotest

sim:	sim500

sim100:	cosim
	echo "cosim -k 10000 -n 100; logout" | time mintsys
	#time mintsys -c cosim -s 1000000 -p 1000 -n 100

sim500:	cosim
	echo "cosim -k 10000 -n 500; logout" | time mintsys
	#time mintsys -c cosim -s 1000000 -p 1000 -n 500

sim10000:	cosim
	echo "cosim -k 10000 -n 10000; logout" | time mintsys
	#time mintsys -c cosim -s 1000000 -p 1000 -n 10000

simt:	cosim
	echo "cosim -k 10000 -n 100; logout" | time mintsys
	#mintsys -c cosim -s 1000 -p 500 -t -n 5

cobench:	cobench.m
	cintsys -c c mp cobench

cotest:	cotest.m
	cintsys -c c mp cotest

cosim:	cosim.m
	cintsys -c c mp cosim

clean:
	rm -f cobench cotest cosim *~
