mkfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. DIRS=\
  2. src/lib9\
  3. src/libbio\
  4. src/libmach\
  5. src/libregexp\
  6. src/libmath\
  7. src/cmd
  8. # mkconfig is included at this point to allow it to override
  9. # the preceding declarations if need be
  10. <mkconfig
  11. all:V: all-$HOSTMODEL
  12. clean:V: clean-$HOSTMODEL
  13. install:V: install-$HOSTMODEL
  14. installall:V: installall-$HOSTMODEL
  15. nuke:V: nuke-$HOSTMODEL
  16. cleandist:V: clean
  17. rm -f $ROOT/$OBJDIR/lib/lib*.a
  18. nukedist:V: nuke
  19. rm -f $ROOT/$OBJDIR/bin/*.exe
  20. rm -f $ROOT/$OBJDIR/lib/lib*.a
  21. &-Posix:QV:
  22. for j in $DIRS
  23. do
  24. echo "(cd $j; mk $MKFLAGS $stem)"
  25. (cd $j; mk $MKFLAGS $stem) || exit 1
  26. done
  27. &-Nt:QV:
  28. for (j in $DIRS)
  29. {
  30. echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
  31. @{builtin cd $j; mk.exe $MKFLAGS $stem }
  32. }
  33. &-Inferno:QV:
  34. for (j in $DIRS)
  35. {
  36. echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
  37. @{builtin cd $j; mk $MKFLAGS $stem }
  38. }
  39. &-Plan9:QV:
  40. for (j in $DIRS)
  41. {
  42. echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
  43. @{builtin cd $j; mk $MKFLAGS $stem }
  44. }
  45. # Convenience targets
  46. Hp-% hp-%:V:
  47. mk 'SYSHOST=Hp' 'OBJTYPE=s800' $stem
  48. Inferno-% inferno-% Inferno-386-% inferno-386-%:V:
  49. mk 'SYSHOST=Inferno' 'OBJTYPE=386' $stem
  50. Inferno-arm-% inferno-arm-%:V:
  51. mk 'SYSHOST=Inferno' 'OBJTYPE=arm' $stem
  52. Plan9-% plan9-%:V:
  53. mk 'SYSHOST=Plan9' 'OBJTYPE=386' $stem
  54. Irix-% irix-%:V:
  55. mk 'SYSHOST=Irix' 'OBJTYPE=mips' $stem
  56. Linux-% linux-%:V:
  57. mk 'SYSHOST=Linux' 'OBJTYPE=386' $stem
  58. NetBSD-% netbsd-%:V:
  59. mk 'SYSHOST=NetBSD' 'OBJTYPE=386' $stem
  60. Nt-% nt-% Win95-% win95-%:V:
  61. mk 'SYSHOST=Nt' 'OBJTYPE=386' $stem
  62. Solaris-% solaris-%:V:
  63. mk 'SYSHOST=Solaris' 'OBJTYPE=sparc' $stem