SC = ../sc

PROGS = hello hello-w game test as-text showparams stopwatch today
ALLPROGS = $(PROGS)

all:	$(ALLPROGS)

some:   $(PROGS)

run:	$(ALLPROGS)
	for P in $(ALLPROGS) ; do ./$$P p1 p2 ; done

runsome: $(PROGS)
	for P in $(PROGS) ; do ./$$P p1 p2 ; done

as-text:	as-text.sim
	$(SC) -simutil as-text

game:		game.sim
	$(SC) -simwin game

hello:		hello.sim
	$(SC) hello

hello-w:	hello-w.sim
	$(SC) -simwin hello-w

test:		test.sim
	$(SC) test

hello-error:	hello-error.sim
	$(SC) hello-error

showparams:	showparams.sim
	$(SC) -simutil showparams

stopwatch:	stopwatch.sim
	$(SC) -simwin stopwatch

today:		today.sim dates.o
	$(SC) -C today dates

dates.o:	dates.sim
	$(SC) -c dates

clean:
	touch xxx.log xxx.o xxx.atr xxx.s xxx~
	rm -f *.log *.o *.atr *.s *~ $(PROGS)
