taslock.$O\
tod.$O\
xalloc.$O\
+ userinit.$O\
OBJ=\
l.$O\
<../port/portmkfile
<|../port/mkbootrules $CONF
-init.h: init9.s ../port/initcode.c /sys/src/libc/9syscall/sys.h
- va init9.s
- vc ../port/initcode.c
- vl -T$UTZERO -R4 -o init.out init9.$O initcode.$O
- {echo 'uchar initcode[]={'
- xd -r -1x init.out |
- sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
- echo '};'} > init.h
+initcode.out: init9.$O initcode.$O /$objtype/lib/libc.a
+ $LD -T$UTZERO -R4 -s -o $target $prereq
faultmips.$O mmu.$O syscall.$O trap.$O: /$objtype/include/ureg.h
-main.$O: /$objtype/include/ureg.h errstr.h init.h
+main.$O: /$objtype/include/ureg.h errstr.h
+main.$O trap.$O: /sys/include/tos.h
%.clean:V:
- rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* init.h
+ rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.*