all: test
	echo All up to date

pass1: pass1.i io.i
	imp -c pass1
	imp -c io
	cc -o pass1 pass1.o io.o -limp2

test: pass1 test.i
	./pass1 < test.i > test.icode 2> test.lis || exit 0

test.i: PASS1.IMP STDINC.IMP
	/bin/sh -c 'cat STDINC.IMP PASS1.IMP > test.i'

clean:
	/bin/rm test.* *.o pass1
