mksyslib 782 B

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