mksyslib-sh 707 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Rules for updating a library with sh
  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. do
  12. mk $MKFLAGS install
  13. done
  14. clean:V: clean-std
  15. nuke:V: nuke-std
  16. $LIBRARY: $LIBOBJ
  17. $AR $ARFLAGS $target $newmember
  18. $LIBRARY(%.$O):N: %.$O
  19. %.$O: $HFILES # don't combine with following %.$O rules
  20. %.$O: %.c
  21. $CC $CFLAGS $stem.c
  22. %.$O: %.s
  23. $AS $ASFLAGS $stem.s
  24. %.$O: %.S$MACOSINF
  25. $AS $ASFLAGS -o $target $stem.S
  26. y.tab.h y.tab.c: $YFILES
  27. $YACC $YFLAGS $prereq
  28. clean-std:V:
  29. rm -f $O.out
  30. rm -f `echo $OS | sed 's/./ *.&/g'`
  31. nuke-std:V: clean-std
  32. rm -f y.tab.? y.output y.error
  33. rm -f $LIBRARY