OBJ = o
DIFF = diff
SLIM = ../slim
SLIMI = ../slimi
RE = ./re
REI = ./rei

.SUFFIXES:
.SUFFIXES: .slm .$(OBJ)

.slm.$(OBJ):
	$(SLIM) $*
	$(RE) $*
	$(REI) $*

xxxx: tst1.$(OBJ) tst2.$(OBJ) tst3.$(OBJ) tst4.$(OBJ) tst5.$(OBJ) tst6.$(OBJ) tstc.$(OBJ) commuter.$(OBJ) fp.$(OBJ) taxman.$(OBJ)

tstc.$(OBJ): tsta.$(OBJ) tstb.$(OBJ)

tsta.$(OBJ): tsta.slm
	$(SLIM) tsta

tstb.$(OBJ): tstb.slm
	$(SLIM) tstb

fp.$(OBJ): date.$(OBJ)

date.$(OBJ): date.slm
	$(SLIM) date

taxman.$(OBJ): taxman.slm
	$(SLIM) taxman
	taxman <taxman.in >tst.out
	$(DIFF) taxman.out tst.out
	$(SLIMI) taxman <taxman.in >tst.out
	$(DIFF) taxman.out tst.out
