mkfile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. objtype=386 # sic
  2. </$objtype/mkfile
  3. BIN=/dev/null
  4. p=p
  5. EXT=load
  6. K=0
  7. L16=l16r
  8. TARG=\
  9. ${p}pxe${EXT}\
  10. ${p}pxe${EXT}acid\
  11. CORE=\
  12. alarm.$O\
  13. cga.$O\
  14. clock.$O\
  15. console.$O\
  16. dosboot.$O\
  17. devfloppy.$O\
  18. dma.$O\
  19. fs.$O\
  20. ilock.$O\
  21. kbd.$O\
  22. print.$O\
  23. queue.$O\
  24. trap.$O\
  25. LOAD=\
  26. apm.$O\
  27. boot.$O\
  28. conf.$O\
  29. i8250.$O\
  30. inflate.$O\
  31. load.$O\
  32. memory.$O\
  33. multiboot.$O\
  34. pci.$O\
  35. warp64.$O\
  36. ETHER=\
  37. bootp.$O\
  38. ether.$O\
  39. ether2114x.$O\
  40. ether79c970.$O\
  41. ether8139.$O\
  42. ether8169.$O\
  43. ether82557.$O\
  44. ether82563.$O\
  45. etherigbe.$O\
  46. ethermii.$O\
  47. etherbcm4401.$O\
  48. ethervgbe.$O\
  49. HFILES=\
  50. lib.h\
  51. mem.h\
  52. dat.h\
  53. fns.h\
  54. io.h\
  55. AFLAGS=-I.
  56. CFLAGS=-FTVw -I.
  57. all:V: $TARG
  58. install:V: $TARG
  59. cp $TARG /$objtype
  60. test -d /n/9/$objtype && cp $TARG /n/9/$objtype
  61. ${p}${EXT}: $L16.$O l32p.$O l32v.$O l64p.$O $CORE $LOAD $ETHER
  62. $LD -o $target -H3 -T0x$K^0010000 -l $prereq -lflate -lc -lip
  63. ls -l $target
  64. ${p}${EXT}acid: $L16.$O l32p.$O l32v.$O l64p.$O $CORE $LOAD $ETHER
  65. $LD -o $target -T0x$K^0007c00 -l $prereq -lflate -lc -lip
  66. ls -l $target
  67. # acid $target
  68. # map({"text", 0x$K^0007c00, 0x${K}0090000, 0x00000020})
  69. ${p}pxe${EXT}: $L16.$O l32p.$O lpxe.$O l64p.$O $CORE $LOAD $ETHER
  70. # $LD -o $target -H3 -T0x$K^0007C00 -l $prereq -lflate -lc -lip
  71. $LD -o $target -H3 -T0x$K^0007C00 -l $prereq -lflate -lc -lip
  72. ls -l $target
  73. ${p}pxe${EXT}acid: $L16.$O l32p.$O lpxe.$O l64p.$O $CORE $LOAD $ETHER
  74. $LD -o $target -T0x$K^0007c00 -l $prereq -lflate -lc -lip
  75. ls -l $target
  76. # acid $target
  77. # map({"text", 0x${K}0007c00, 0x${K}0090000, 0x00000020})
  78. lpxe.$O: l32v.s
  79. $AS $AFLAGS -DPXE -o $target l32v.s
  80. %.$O: %.s
  81. $AS $AFLAGS $stem.s
  82. %.$O: %.c
  83. $CC $CFLAGS $stem.c
  84. %.$O: $HFILES
  85. l.$O: x16.h
  86. clock.$O floppy.$O trap.$O: ureg.h
  87. ether.$O: etherif.h
  88. bootp.$O: ip.h
  89. clean:
  90. rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $TARG