mksyslib-sh 739 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 y.tab.? y.output y.error
  31. rm -f `echo $OS | sed 's/./ *.&/g'`
  32. nuke-std:V: clean-std
  33. rm -f y.tab.? y.output y.error
  34. rm -f $LIBRARY