mkone-rc 640 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. libs=${LIBS:%=$ROOT/$OBJDIR/lib/lib%.a}
  2. all:V: $O.out
  3. install:V: $BIN/$TARG
  4. safeinstall: $O.out
  5. mv $BIN/$TARG $BIN/$TARG.`{date -n}
  6. cp $O.out $BIN/$TARG
  7. installall:V:
  8. for(objtype in $CPUS)
  9. mk $MKFLAGS install
  10. nuke:V: nuke-std
  11. clean:V: clean-std
  12. $O.out: $OFILES $libs
  13. $LD $LDFLAGS $OFILES $libs $SYSLIBS
  14. %.$O: $HFILES # don't combine with following %.$O rules
  15. %.$O: %.c
  16. $CC $CFLAGS $stem.c
  17. %.$O: %.s
  18. $AS $ASFLAGS $stem.s
  19. y.tab.h y.tab.c: $YFILES
  20. $YACC $YFLAGS $YFILES
  21. nuke-std:V: clean-std
  22. rm -f y.tab.? y.debug y.output
  23. clean-std:V:
  24. rm -f *.[$OS] [$OS].out
  25. $BIN/%: $O.out
  26. rm -f $BIN/$stem && cp $O.out $BIN/$stem