1# 2# Makefile for testing dbx. 3# 4 5.SUFFIXES: 6 7.SUFFIXES: .p .i .s .o .x .t .in .tst .out 8 9# 10# Suffix conventions: 11# 12# .p Pascal source 13# .i Pascal definitions file 14# .s assembly code file 15# .o object file 16# .x executable file 17# .t dummy file represented last time tested 18# .in input for testing 19# .tst test output 20# .out expected output 21# 22 23PC = pc 24PCFLAGS = -g -w 25TESTDBX = ../../tdbx 26TESTS = arrays.t assign.t bigsym.t bool.t call.t enum.t incltest.t longsym.t \ 27 nested.t reals.t records.t sets.t const.t 28 29PROGS = arrays.x assign.x bigsym.x bool.x call.x enum.x incltest.x longsym.x \ 30 nested.x reals.x records.x sets.x const.x 31 32.p.x: 33 ${PC} ${PCFLAGS} $*.p -o $*.x 34 35.p.o: 36 ${PC} -c ${PCFLAGS} $*.p 37 38.in.tst: 39 @rm -f $*.tst 40 ../runtest ${TESTDBX} $* > $*.tst 41 42.x.t: 43 @echo " $*" 44 @rm -f tmp 45 @../runtest ${TESTDBX} $* > tmp 46 @../check tmp $*.out 47 @rm -f tmp 48 @rm -f $*.t 49 @touch $*.t 50 51passed: ${PROGS} beforemsg ${TESTS} 52 @echo "passed Pascal tests" 53 54beforemsg: 55 @echo "" 56 @echo "Pascal tests:" 57 58INCLOBJ = includes.o included.o 59 60incltest.x: ${INCLOBJ} 61 ${PC} -g ${INCLOBJ} -o incltest.x 62 63arrays.t: arrays.x ${TESTDBX} 64assign.t: assign.x ${TESTDBX} 65bigsym.t: bigsym.x ${TESTDBX} 66bool.t: bool.x ${TESTDBX} 67call.t: call.x ${TESTDBX} 68enum.t: enum.x ${TESTDBX} 69incltest.t: incltest.x ${TESTDBX} 70longsym.t: longsym.x ${TESTDBX} 71nested.t: nested.x ${TESTDBX} 72reals.t: reals.x ${TESTDBX} 73records.t: records.x ${TESTDBX} 74sets.t: sets.x ${TESTDBX} 75const.t: const.x ${TESTDBX} 76