CONF=ln64 CONFLIST=ln64 EXTRACOPIES= objtype=spim64 $target.list size $target install:V: $p$CONF cp $p$CONF /$objtype/ for(i in $EXTRACOPIES) { 9fs $i && cp $p$CONF /n/$i/$objtype/ && echo -n $i... & } wait echo <../boot/bootmkfile <../port64/portmkfile <|../port64/mkbootrules $CONF l.$O: $objtype.s init.h: init9.s initcode.c $objtype.s /sys/src/libc/9syscall/sys.h mkfile $AS init9.s $CC initcode.c $LD -a -T$UTZERO -R8 -o init.out init9.$O initcode.$O >initcode.list {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 l.$O: $objtype.s main.$O: errstr.h init.h #reboot.h devether.$O: ../port64/netif.h etherif.h clock.$O faultmips.$O mmu.$O trap.$O tmp.$O: /$objtype/include/ureg.h %.clean:V: rm -f $stem.c [9bz]$stem [9bz]$stem.gz boot$stem.* *.list # override ../port64/portmkfile # create /boot/boot boot$CONF.out: $CONF print.$O $BOOTDIR/boot.c $BOOTLIB $BOOTDIR/mkboot $CONF > boot$CONF.c $CC $CFLAGS boot$CONF.c $CC $CFLAGS ../boot/printstub.c $AS c_fcr0.s $LD -a -o boot$CONF.out -T$UTZERO -R$MAXBY2PG boot$CONF.$O $BOOTLIB printstub.$O c_fcr0.$O > boot$CONF.list