mkfile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. objtype=386
  2. </$objtype/mkfile
  3. BIN=/386
  4. TARG=\
  5. 9load\
  6. 9pxeload\
  7. 9loadlite\
  8. 9loaddebug\
  9. 9loadlitedebug\
  10. ld.com\
  11. mbr\
  12. pbs\
  13. pbslba\
  14. CORE=\
  15. alarm.$O\
  16. cga.$O\
  17. clock.$O\
  18. console.$O\
  19. dosboot.$O\
  20. devfloppy.$O\
  21. dma.$O\
  22. fs.$O\
  23. ilock.$O\
  24. kbd.$O\
  25. kfsboot.$O\
  26. print.$O\
  27. queue.$O\
  28. trap.$O\
  29. LOAD=\
  30. 8250.$O\
  31. apm.$O\
  32. boot.$O\
  33. cis.$O\
  34. conf.$O\
  35. devi82365.$O\
  36. devpccard.$O\
  37. devsd.$O\
  38. inflate.$O\
  39. load.$O\
  40. memory.$O\
  41. part.$O\
  42. pci.$O\
  43. sdata.$O\
  44. sdmylex.$O\
  45. sd53c8xx.$O\
  46. sdscsi.$O\
  47. ETHER=\
  48. bootp.$O\
  49. ether.$O\
  50. ether2114x.$O\
  51. ether2000.$O\
  52. ether589.$O\
  53. ether79c970.$O\
  54. ether8003.$O\
  55. ether8139.$O\
  56. ether8169.$O\
  57. ether82557.$O\
  58. ether83815.$O\
  59. ether8390.$O\
  60. etherec2t.$O\
  61. etherelnk3.$O\
  62. etherigbe.$O\
  63. ethermii.$O\
  64. etherrhine.$O\
  65. BCOM=\
  66. bcom.$O\
  67. bootld.$O\
  68. devsd.$O\
  69. memory.$O\
  70. part.$O\
  71. pci.$O\
  72. sdata.$O\
  73. sdscsi.$O\
  74. HFILES=\
  75. lib.h\
  76. mem.h\
  77. dat.h\
  78. fns.h\
  79. io.h\
  80. CFLAGS=-FVw -I.
  81. all:V: $TARG
  82. 9load: l.$O $CORE $LOAD $ETHER
  83. $LD -o $target -H3 -T0x80010000 -l $prereq -lflate -lc -lip
  84. ls -l $target
  85. 9pxeload: lpxe.$O $CORE $LOAD $ETHER
  86. $LD -o $target -H3 -T0x80007C00 -l $prereq -lflate -lc -lip
  87. ls -l $target
  88. 9loaddebug: l.$O $CORE $LOAD $ETHER
  89. $LD -o $target -T0x80010000 -l $prereq -lflate -lc -lip
  90. ls -l $target
  91. # acid $target
  92. # map({"text", 0x80010000, 0x80090000, 0x00000020})
  93. 9loadlite: l.$O $CORE $LOAD noether.$O
  94. $LD -o $target -H3 -T0x80010000 -l $prereq -lflate -lc
  95. ls -l $target
  96. 9loadlitedebug: l.$O $CORE $LOAD noether.$O
  97. $LD -o $target -T0x80010000 -l $prereq -lflate -lc
  98. ls -l $target
  99. # acid $target
  100. # map({"text", 0x80010000, 0x80090000, 0x00000020})
  101. ld.com: ld.$O $CORE $BCOM
  102. $LD -o $target -H3 -T0x80080100 -l $prereq -lc
  103. ls -l $target
  104. lddebug: ld.$O $CORE $BCOM
  105. $LD -o $target -T0x80080100 -l $prereq -lc
  106. ls -l $target
  107. # acid $target
  108. # map({"text", 0x80080100, 0x800B0000, 0x00000020})
  109. ld.$O: l.s
  110. $AS -DDOTCOM -o $target l.s
  111. lpxe.$O: l.s
  112. $AS -DPXE -o $target l.s
  113. %.$O: %.s
  114. $AS $stem.s
  115. %.$O: %.c
  116. $CC $CFLAGS $stem.c
  117. %.$O: $HFILES
  118. l.$O pbs.$O pbslba.$O mbr.$O: x16.h
  119. clock.$O floppy.$O trap.$O: ureg.h
  120. bcom.$O conf.$O devfloppy.$O devsd.$O dosboot.$O fs.$O \
  121. kfsboot.$O load.$O part.$O: dosfs.h fs.h kfs.h
  122. ether.$O etherelnk3.$O: etherif.h
  123. devsd.$O part.$O sdata.$O sdscsi.$O: sd.h
  124. bootp.$O: ip.h
  125. mbr: mbr.$O
  126. $LD -o $target -H3 -T0x0600 -l $prereq
  127. ls -l $target
  128. pbs&: pbs%.$O
  129. $LD -o $target -H3 -T0x7C00 -l $prereq
  130. ls -l $target
  131. pbs&.debug: pbs%.$O
  132. $LD -o $target -T0x7C00 -l $prereq
  133. ls -l $target
  134. # acid $target
  135. # map({"text", 0x7C00, 0x7E00, 0x00000020})
  136. clean:
  137. rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $TARG 9loaddebug lddebug
  138. install:V:
  139. for (i in $TARG)
  140. mk $MKFLAGS $i.install
  141. %.install:V: $BIN/%
  142. # import lookout / /n/lookout
  143. # cp $prereq /n/lookout/$prereq
  144. $BIN/%: %
  145. cp $stem $BIN/$stem
  146. UPDATE=\
  147. mkfile\
  148. ${CORE:%.$O=%.c}\
  149. ${LOAD:%.$O=%.c}\
  150. ${BCOM:%.$O=%.c}\
  151. ${ETHER:%.$O=%.c}\
  152. $HFILES\
  153. l.s\
  154. noether.c\
  155. pbs.s\
  156. pbslba.s\
  157. mbr.s\
  158. x16.h\
  159. ureg.h\
  160. dosfs.h\
  161. fs.h\
  162. kfs.h\
  163. etherif.h\
  164. sd.h\
  165. ip.h\
  166. devfloppy.h\
  167. ${TARG:%=/386/%}\
  168. update:V:
  169. update $UPDATEFLAGS $UPDATE