mksyslib 665 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. AFLAGS=
  2. all:V: $LIB
  3. $LIB:V: $OFILES # force archive even when not needed
  4. ar vu $LIB $newprereq
  5. &:n: &.$O
  6. ar vu $LIB $stem.$O
  7. %.$O: $HFILES # don't combine with following %.$O rules
  8. %.$O: %.c
  9. $CC $CFLAGS $stem.c
  10. %.$O: %.s
  11. $AS $AFLAGS $stem.s
  12. install:V: $LIB
  13. installall:V:
  14. for(objtype in $CPUS) mk install
  15. %.all:V:
  16. for(objtype in $CPUS) mk $stem
  17. %.installall:V:
  18. for(objtype in $CPUS) mk $stem
  19. clean:V:
  20. rm -f *.[$OS] [$OS].out $CLEANFILES
  21. %.clean:V:
  22. rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem
  23. nuke:V:
  24. rm -f *.[$OS] [$OS].out $CLEANFILES $LIB
  25. %.acid: %.$O $HFILES
  26. $CC $CFLAGS -a $stem.c >$target
  27. update:V:
  28. update $UPDATEFLAGS $UPDATE