mkfile 489 B

1234567891011121314151617181920212223
  1. NPROC=1
  2. </$objtype/mkfile
  3. install:V: genall gencall
  4. genall
  5. # ugh. sources's build process can't hack absolute path names.
  6. # we're in /sys/src/ape/lib/ap/syscall.
  7. gencall:D: ../../../../libc/9syscall/mkfile # /sys/src/libc/9syscall/mkfile
  8. {
  9. echo '#!/bin/rc'
  10. sed -n -e 's/seek/_SEEK/g' -e '/switch/,/\$AS /p' $prereq
  11. } >$target
  12. chmod +x $target
  13. nuke clean:V:
  14. rm -f *.[$OS] *.s gencall
  15. installall:V:
  16. for(objtype in $CPUS) mk install
  17. update:V:
  18. update $UPDATEFLAGS mkfile sys.h