mkone-nt 669 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. libs=${LIBS:%=$ROOT/$OBJDIR/lib/lib%.a}
  2. TARGPROG=$TARG.exe
  3. all:V: $O.out
  4. install:V: $BIN/$TARGPROG
  5. installall:V:
  6. for objtype in $CPUS
  7. do
  8. mk $MKFLAGS install
  9. done
  10. nuke:V: nuke-std
  11. clean:V: clean-std
  12. $O.out: $OFILES $libs
  13. $LD $LDFLAGS -out:$target $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. clean-std:V:
  22. rm -f *.$O *.exe $O.out y.tmp.*
  23. rm -f y.tab.? y.debug y.output *.pdb *.pch
  24. nuke-std:V: clean-std
  25. rm -f y.tab.? y.debug y.output *.pdb *.pch
  26. $BIN/%: $O.out
  27. rm -f $BIN/$stem && cp $O.out $BIN/$stem