mkone-sh 690 B

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