mksyslib-rc 618 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Rules for updating a library with rc
  3. #
  4. LIBDIR=$ROOT/$OBJDIR/lib
  5. LIBRARY=$LIBDIR/$LIB
  6. LIBOBJ=${OFILES:%=$LIBRARY(%)}
  7. default:V: all
  8. all install:V: $LIBRARY
  9. installall:V:
  10. for(objtype in $CPUS)
  11. mk $MKFLAGS install
  12. clean:V: clean-std
  13. nuke:V: nuke-std
  14. $LIBRARY: $LIBOBJ
  15. $AR $ARFLAGS $target $newmember
  16. $LIBRARY(%.$O):N: %.$O
  17. %.$O: $HFILES # don't combine with following %.$O rules
  18. %.$O: %.c
  19. $CC $CFLAGS $stem.c
  20. %.$O: %.s
  21. $AS $ASFLAGS $stem.s
  22. y.tab.h y.tab.c: $YFILES
  23. $YACC $YFLAGS $prereq
  24. clean-std:V:
  25. rm -f *.[$OS] [$OS].out
  26. nuke-std:V: clean-std
  27. rm -f y.tab.? y.output y.error
  28. rm -f $LIBRARY