1# @(#)Makefile 5.3 (Berkeley) 05/07/91 2 3# Makefile for testing dbx. 4 5.SUFFIXES: 6 7.SUFFIXES: .c .h .s .o .x .t .in .tst .out 8 9# 10# Suffix conventions: 11# 12# .c C source module 13# .h C 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 23CC = cc 24 25TESTDBX = ../../tdbx 26TESTS = \ 27 aliases.t args.t arrays.t bitfields.t \ 28 dump.t enum.t float.t loophole.t nested.t own.t reg.t \ 29 same.t signal.t sleep.t stkcmds.t strings.t struct.t user.t ushort.t 30# call.t - deleted as it crashes the CCI microcode. 31 32.c.x: 33 ${CC} -g $*.c -o $*.x 34 35.c.o: 36 ${CC} -c -g $*.c 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/out.`machine`/$*.out 47 @rm -f tmp 48 @rm -f $*.t 49 @touch $*.t 50 51passed: beforemsg ${TESTS} 52 @echo "passed C tests" 53 54beforemsg: 55 @echo "" 56 @echo "C tests:" 57 58strings.x: strings.c 59 cc -g -R strings.c -o strings.x 60 61clean: 62 rm -f *.x *.t *.o *.tst strings.core 63 64aliases.t: aliases.x ${TESTDBX} 65args.t: args.x ${TESTDBX} 66arrays.t: arrays.x ${TESTDBX} 67bitfields.t: bitfields.x ${TESTDBX} 68call.t: call.x ${TESTDBX} 69dump.t: dump.x ${TESTDBX} 70enum.t: enum.x ${TESTDBX} 71float.t: float.x ${TESTDBX} 72loophole.t: loophole.x ${TESTDBX} 73nested.t: nested.x ${TESTDBX} 74own.t: own.x ${TESTDBX} 75reg.t: reg.x ${TESTDBX} 76same.t: same.x ${TESTDBX} 77signal.t: signal.x ${TESTDBX} 78sleep.t: sleep.x ${TESTDBX} 79stkcmds.t: stkcmds.x ${TESTDBX} 80struct.t: struct.x ${TESTDBX} 81user.t: user.x ${TESTDBX} 82ushort.t: ushort.x ${TESTDBX} 83 84strings.t: strings.x strings.core ${TESTDBX} 85 @echo " $*" 86 @rm -f tmp 87 @${TESTDBX} $*.x $*.core < $*.in | tail +3 > tmp 88 @../check tmp out/out.`machine`/$*.out 89 @rm -f tmp 90 @rm -f $*.t 91 @touch $*.t 92 93strings.core: strings.x 94 -csh -f -c "limit coredumpsize 6m >& /dev/null; strings.x" 95 mv core strings.core 96 97aliases.x: arrays.x 98 ln -s arrays.x aliases.x 99