NPROC=1 mk
</$objtype/mkfile # architecture-dependent definitions
variable definitions # TARG, OFILES, HFILES, etc.
</sys/src/cmd/generic # mkone, mkmany, mklib, or mksyslib
variable overrides # CFLAGS, objtype, etc.
extra rules # overrides, augmented rules, additional targets
file.$O: header.h
< /$objtype/mkfile TARG=diff OFILES=\ diffdir.$O\ diffio.$O\ diffreg.$O\ main.$O\ HFILES=diff.h BIN=/$objtype/bin </sys/src/cmd/mkone
</$objtype/mkfile TARG=awk OFILES=re.$O\ lex.$O\ main.$O\ parse.$O\ proctab.$O\ tran.$O\ lib.$O\ run.$O\ awkgram.$O\ HFILES=awk.h\ y.tab.h\ proto.h\ YFILES=awkgram.y BIN=/$objtype/bin </sys/src/cmd/mkone CFLAGS=-c -D_REGEXP_EXTENSION -D_RESEARCH_SOURCE \ -D_BSD_EXTENSION -DUTF YFLAGS=-S -d -v CC=pcc LD=pcc cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile} y.tab.h awkgram.c: $YFILES $YACC -o awkgram.c $YFLAGS $prereq clean:V: rm -f *.[$OS] [$OS].out [$OS].maketab y.tab.? y.debug\ y.output $TARG nuke:V: rm -f *.[$OS] [$OS].out [$OS].maketab y.tab.? y.debug\ y.output awkgram.c $TARG proctab.c: $cpuobjtype.maketab ./$cpuobjtype.maketab >proctab.c $cpuobjtype.maketab: y.tab.h maketab.c objtype=$cputype mk maketab.$cputype maketab.$cputype:V: y.tab.h maketab.$O $LD -o $O.maketab maketab.$O
</$objtype/mkfile TARG=alpha beta OFILES=common.$O BIN=/$objtype/bin </sys/src/cmd/mkmany
</$objtype/mkfile LIB=libString.a$O OFILES= s_alloc.$O\ s_append.$O\ s_array.$O\ s_copy.$O\ s_getline.$O\ s_grow.$O\ s_nappend.$O\ s_parse.$O\ s_read.$O\ s_read_line.$O\ s_tolower.$O\ </sys/src/cmd/mklib nuke:V: mk clean rm -f libString.a[$OS]
%.$O: header.h
</$objtype/mkfile TARG=lex OFILES=lmain.$O\ y.tab.$O\ sub1.$O\ sub2.$O\ header.$O\ HFILES=ldefs.h\ YFILES=parser.y\ BIN=/$objtype/bin </sys/src/cmd/mkone installall:V: for(objtype in $CPUS) mk install cp ncform /sys/lib/lex
installall:V: ncform.install ncform.install:V: cp ncform /sys/lib/lex