1NPROC=1 2</$objtype/mkfile 3 4all:V: install 5 6install:V: genall gencall 7 genall 8 9# ugh. sources's build process can't hack absolute path names. 10# we're in /sys/src/ape/lib/ap/syscall. 11SRC=../../../../libc/9syscall # /sys/src/libc/9syscall 12gencall:D: $SRC/mkfile $SRC/sys.h 13 { 14 sed '/^#define._X[123]/d' $SRC/sys.h 15 echo '#!/bin/rc' 16 sed -n -e '/switch/,/\$AS /p' $SRC/mkfile 17 } | awk -f upper.awk >$target 18 chmod +x $target 19 20nuke clean:V: 21 rm -f *.[$OS] *.s gencall 22 23installall:V: 24 for(objtype in $CPUS) mk install 25 26update:V: 27 update $UPDATEFLAGS mkfile 28