Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

287 lines
8.5 KiB

  1. #*************************** Makefile for format ***************************
  2. ROOT=..\..
  3. !INCLUDE $(ROOT)\makefile.inc
  4. aflags=$(aflags) -DFAT32
  5. !IFDEF OEM_SPECIAL_VERSION
  6. aflags=$(aflags) -DOEM
  7. !ENDIF
  8. debug_flags =
  9. link_opts =/MAP
  10. dest =format.com oformat.com
  11. opkasm =$(asm) -Mx -t -W2 -I.. -I..\..\inc -I..\..\..\inc -DOPKBLD
  12. #************************ makefile for cmd\format *************************
  13. mirror =..\cps\mirror # M027.
  14. MIR_MSG=$(mirror)
  15. extasw = $(debug_flags) -I$(inc) -I$(dosinc) -I$(ddkinc) -I$(boot) -DSAFE=1
  16. dest2 =format.com
  17. #
  18. ####################### dependencies begin here. #########################
  19. #
  20. all: $(dest)
  21. display.obj: display.asm \
  22. forequ.inc \
  23. formsg.inc \
  24. $(inc)\sysmsg.inc \
  25. $(inc)\msgserv.asm \
  26. $(inc)\versiona.inc \
  27. formacro.inc
  28. .\opk\display.obj: display.asm \
  29. forequ.inc \
  30. formsg.inc \
  31. $(inc)\sysmsg.inc \
  32. $(inc)\msgserv.asm \
  33. $(inc)\versiona.inc \
  34. formacro.inc
  35. $(opkasm) .\display.asm,.\opk\display.obj;
  36. boot.cl1: $(boot)\boot.skl
  37. copy $(boot)\boot.cl1
  38. format.mb: $(msg)\$(COUNTRY)\$*.msg \
  39. $(msg)\$(COUNTRY)\common.msg \
  40. $(msg)\$(COUNTRY)\extend.msg
  41. msg2mb $(msg)\$(COUNTRY) $*
  42. forexec.obj: forexec.asm \
  43. forequ.inc \
  44. $(ddkinc)\syscall.inc \
  45. formacro.inc
  46. forlabel.obj: forlabel.asm \
  47. forequ.inc \
  48. formacro.inc \
  49. $(ddkinc)\syscall.inc \
  50. $(dosinc)\ioctl.inc \
  51. $(inc)\dosmac.inc \
  52. forswtch.inc
  53. format.obj: format.asm \
  54. $(ddkinc)\dosequs.inc \
  55. $(inc)\dosmac.inc \
  56. $(dosinc)\bpb.inc \
  57. $(dosinc)\dirent.inc \
  58. $(dosinc)\dpb.inc \
  59. $(dosinc)\curdir.inc \
  60. $(inc)\cpmfcb.inc \
  61. $(ddkinc)\syscall.inc \
  62. $(dosinc)\ioctl.inc \
  63. forequ.inc \
  64. formacro.inc \
  65. forswtch.inc \
  66. safedef.inc
  67. .\opk\format.obj: format.asm \
  68. $(ddkinc)\dosequs.inc \
  69. $(inc)\dosmac.inc \
  70. $(dosinc)\bpb.inc \
  71. $(dosinc)\dirent.inc \
  72. $(dosinc)\dpb.inc \
  73. $(dosinc)\curdir.inc \
  74. $(inc)\cpmfcb.inc \
  75. $(ddkinc)\syscall.inc \
  76. $(dosinc)\ioctl.inc \
  77. forequ.inc \
  78. formacro.inc \
  79. forswtch.inc \
  80. safedef.inc
  81. $(opkasm) .\format.asm,.\opk\format.obj;
  82. forinit.obj: forinit.asm \
  83. $(ddkinc)\dosequs.inc \
  84. forequ.inc \
  85. formacro.inc \
  86. $(ddkinc)\syscall.inc \
  87. $(dosinc)\ioctl.inc \
  88. forparse.inc \
  89. forswtch.inc \
  90. $(inc)\parse.asm \
  91. $(inc)\psdata.inc
  92. msfor.obj: msfor.asm \
  93. $(inc)\dosmac.inc \
  94. $(ddkinc)\syscall.inc \
  95. $(dosinc)\bpb.inc \
  96. $(dosinc)\bootsec.inc \
  97. $(dosinc)\dirent.inc \
  98. !IF "$(DBCS)"=="NEC"
  99. $(dosinc)\ioctl.inc \
  100. $(boot)\IPL_FD.inc \
  101. $(boot)\IPL_HDMO.inc \
  102. $(boot)\IPL_35MO.inc \
  103. $(boot)\IPL_NULL.inc \
  104. !ELSE
  105. boot.cl1 \
  106. $(dosinc)\ioctl.inc \
  107. $(boot)\boot11.inc \
  108. $(boot)\boot.inc \
  109. !ENDIF
  110. $(boot)\boot2.inc \
  111. filesize.inc \
  112. forequ.inc \
  113. formacro.inc \
  114. forswtch.inc
  115. forproc.obj: forproc.asm \
  116. $(ddkinc)\syscall.inc \
  117. forequ.inc \
  118. formacro.inc \
  119. forswtch.inc
  120. glblinit.obj: glblinit.asm \
  121. $(dosinc)\bpb.inc \
  122. $(inc)\dosmac.inc \
  123. $(ddkinc)\syscall.inc \
  124. $(dosinc)\ioctl.inc \
  125. forequ.inc \
  126. formacro.inc \
  127. forswtch.inc \
  128. safedef.inc
  129. .\opk\glblinit.obj: glblinit.asm \
  130. $(dosinc)\bpb.inc \
  131. $(inc)\dosmac.inc \
  132. $(ddkinc)\syscall.inc \
  133. $(dosinc)\ioctl.inc \
  134. forequ.inc \
  135. formacro.inc \
  136. forswtch.inc \
  137. safedef.inc
  138. $(opkasm) .\glblinit.asm,.\opk\glblinit.obj;
  139. phase1.obj: phase1.asm \
  140. $(inc)\dosmac.inc \
  141. $(dosinc)\dirent.inc \
  142. $(inc)\cpmfcb.inc \
  143. $(ddkinc)\error.inc \
  144. $(ddkinc)\syscall.inc \
  145. $(dosinc)\ioctl.inc \
  146. $(dosinc)\bpb.inc \
  147. $(dosinc)\bootsec.inc \
  148. forequ.inc \
  149. formacro.inc
  150. .\opk\phase1.obj: phase1.asm \
  151. $(inc)\dosmac.inc \
  152. $(dosinc)\dirent.inc \
  153. $(inc)\cpmfcb.inc \
  154. $(ddkinc)\error.inc \
  155. $(ddkinc)\syscall.inc \
  156. $(dosinc)\ioctl.inc \
  157. $(dosinc)\bpb.inc \
  158. $(dosinc)\bootsec.inc \
  159. forequ.inc \
  160. formacro.inc
  161. $(opkasm) .\phase1.asm,.\opk\phase1.obj;
  162. dskfrmt.obj: dskfrmt.asm \
  163. $(inc)\dosmac.inc \
  164. $(dosinc)\bpb.inc \
  165. $(ddkinc)\error.inc \
  166. $(ddkinc)\syscall.inc \
  167. $(dosinc)\ioctl.inc \
  168. forequ.inc \
  169. formacro.inc \
  170. forswtch.inc
  171. .\opk\dskfrmt.obj: dskfrmt.asm \
  172. $(inc)\dosmac.inc \
  173. $(dosinc)\bpb.inc \
  174. $(ddkinc)\error.inc \
  175. $(ddkinc)\syscall.inc \
  176. $(dosinc)\ioctl.inc \
  177. forequ.inc \
  178. formacro.inc \
  179. forswtch.inc
  180. $(opkasm) .\dskfrmt.asm,.\opk\dskfrmt.obj;
  181. switch_s.obj: switch_s.asm \
  182. $(dosinc)\dirent.inc \
  183. $(inc)\dosmac.inc \
  184. $(ddkinc)\error.inc \
  185. $(dosinc)\bpb.inc \
  186. $(ddkinc)\syscall.inc \
  187. $(dosinc)\sysvar.inc \
  188. forequ.inc \
  189. formacro.inc
  190. path.obj: $(inc)\path.asm \
  191. $(inc)\dossym.inc \
  192. $(dosinc)\curdir.inc \
  193. $(inc)\find.inc \
  194. $(ddkinc)\pdb.inc \
  195. $(ddkinc)\syscall.inc
  196. copy $(inc)\path.asm
  197. $(asm) $(aflags) $*.asm;
  198. .\opk:
  199. mkdir .\opk
  200. $(inc)\versiona.inc: $(ROOT)\..\..\dev\inc\versiona.inc
  201. cd $(inc)
  202. nmake
  203. cd ..\cmd\format
  204. format.com: format.mb \
  205. display.obj \
  206. !IF "$(DBCS)" != "NEC"
  207. boot.cl1 \
  208. !ENDIF
  209. forexec.obj \
  210. forlabel.obj \
  211. format.obj \
  212. forinit.obj \
  213. msfor.obj \
  214. forproc.obj \
  215. glblinit.obj \
  216. phase1.obj \
  217. dskfrmt.obj \
  218. switch_s.obj \
  219. path.obj
  220. link $(link_opts) @format.lnk
  221. convert format.exe
  222. if exist format.exe del format.exe
  223. if exist format.cob del format.cob
  224. ren format.com format.cob
  225. mb2exe format.cob format.com format
  226. if exist format.cob del format.cob
  227. oformat.com: .\opk \
  228. format.mb \
  229. .\opk\display.obj \
  230. !IF "$(DBCS)" != "NEC"
  231. boot.cl1 \
  232. !ENDIF
  233. forexec.obj \
  234. forlabel.obj \
  235. .\opk\format.obj \
  236. forinit.obj \
  237. msfor.obj \
  238. forproc.obj \
  239. .\opk\glblinit.obj \
  240. .\opk\phase1.obj \
  241. .\opk\dskfrmt.obj \
  242. switch_s.obj \
  243. path.obj
  244. link $(link_opts) @oformat.lnk
  245. convert oformat.exe
  246. if exist oformat.exe del oformat.exe
  247. if exist oformat.cob del oformat.cob
  248. ren oformat.com oformat.cob
  249. mb2exe oformat.cob oformat.com format
  250. if exist oformat.cob del oformat.cob