1</$objtype/mkfile 2 3TARG=rc 4COMMONOFILES=\ 5 code.$O\ 6 exec.$O\ 7 glob.$O\ 8 here.$O\ 9 io.$O\ 10 lex.$O\ 11 pcmd.$O\ 12 pfnc.$O\ 13 simple.$O\ 14 subr.$O\ 15 trap.$O\ 16 tree.$O\ 17 var.$O\ 18 havefork.$O\ 19 20PLAN9OFILES=plan9.$O\ 21 22UNIXOFILES=unix.$O\ 23 24OFILES=$COMMONOFILES $PLAN9OFILES y.tab.$O 25 26HFILES=rc.h\ 27 x.tab.h\ 28 io.h\ 29 exec.h\ 30 fns.h\ 31 32YFILES=syn.y 33 34BIN=/$objtype/bin 35 36UPDATE=\ 37 mkfile\ 38 $HFILES\ 39 ${COMMONOFILES:%.$O=%.c}\ 40 ${UNIXOFILES:%.$O=%.c}\ 41 ${PLAN9OFILES:%.$O=%.c}\ 42 $YFILES\ 43 ${TARG:%=/386/bin/%}\ 44 45</sys/src/cmd/mkone 46 47x.tab.h: y.tab.h 48 cmp -s x.tab.h y.tab.h || cp y.tab.h x.tab.h 49 50clean:V: 51 rm -f [$OS].out *.[$OS] [xy].tab.? y.debug $TARG 52 53regress: $O.out 54 cd test 55 mk 56 57unregress:V: 58 for(test in test/*.test) rc $test >$test.out 59 60listing: 61 pr mkfile $HFILES $FILES $FILES9 $FILESUNIX $YFILES|lp -du 62