mkfile 499 B

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