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