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.

656 lines
24 KiB

  1. #
  2. # Kernel Make file
  3. #
  4. # Macros defined on command line:
  5. # DEST - Destination of obj's.
  6. # CFLAGS - DOS version dependent C compiler flags
  7. # AFLAGS - DOS version dependent assembler flags
  8. !INCLUDE ..\makefile.inc
  9. # For DOS.
  10. MAKE=NMAKE
  11. # Uncomment one of the two following lines. The first disables our
  12. # protected-mode-only Int 21 handlers for testing. The second is
  13. # the way we ship.
  14. #WOW_QUICK_INT21=
  15. WOW_QUICK_INT21=-DW_Q21
  16. #####################################################################
  17. # #
  18. # The command lines in this section MUST AGREE with their parallels #
  19. # in the master CORE makefile. #
  20. # #
  21. #####################################################################
  22. !ifndef ALT_PROJECT
  23. ALT_PROJECT=USA
  24. ALT_PROJECT_TARGET=.
  25. !endif
  26. !if !$(FREEBUILD)
  27. A1FLAGS=-DWOW $(WOW_QUICK_INT21) -DWINDEBUG -DPM386 -DWOW_$(PROCESSOR_ARCHITECTURE) $(DBCS_FLAGS)
  28. CFLAGS=-DWINDEBUG -DPM386 $(DBCS_FLAGS)
  29. !else
  30. A1FLAGS=-DWOW $(WOW_QUICK_INT21) -DPM386 -DWOW_$(PROCESSOR_ARCHITECTURE) $(DBCS_FLAGS)
  31. CFLAGS=-DPM386 $(DBCS_FLAGS)
  32. !endif
  33. # Turn on the PMODE and BUILDDLL flags
  34. MAP=map/li/warnfixup
  35. WOWINC = ..\..\inc
  36. AINC = -I..\inc -I$(WOWINC)
  37. CINC = -I..\inc -I$(WOWINC) -I$(SDK_INC_PATH)
  38. RCINC=..\inc;$(WOWINC);$(SDK_INC_PATH)
  39. #make sure the tools can see all the right files
  40. PATH = .\$(DEST);$(PATH)
  41. ##########
  42. #
  43. # Standard command line definitions
  44. #
  45. AFLAGS = $(A1FLAGS) -s -t -P -W0
  46. # flags for kernstub.asm compiles (no protect mode)
  47. KSAFLAGS = -I..\..\.. -I..\..\..\..\inc -I..\..\..\..\..\inc $(A1FLAGS) -DPMODE=0 -DBUILDDLL -s -t -P -W2
  48. #
  49. # -Zi gives exes larger than 600K, so use -Zd
  50. #
  51. !if !$(FREEBUILD)
  52. AFLAGS = $(AFLAGS) -Zd
  53. CFLAGS = $(CFLAGS) -Od -Oi -Zd
  54. LDEBUG = /LI
  55. !endif
  56. ASMCMD = $(ASM) $(AINC) $(AFLAGS)
  57. CP_FLAGS = -c -Asnw -G2sc -Oase -Zpe -W2 -Fo$*.obj $(CFLAGS)
  58. CPF_FLAGS = -c -DWOW -Alnw -G2sc -Oase -Zpe -W2 -Fo$*.obj $(CFLAGS)
  59. CP = $(CL) $(CP_FLAGS)
  60. CPF = $(CL) $(CPF_FLAGS)
  61. ##############################################################################
  62. # (leave a blank line above this one)
  63. #
  64. # The Assembler File List
  65. #
  66. all: makedir setenv oldobjs $(DEST)\kernel.exe $(DEST)\krnl386.sym
  67. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\krnl386.exe
  68. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\krnl386.sym
  69. -binplace -o $(ALT_PROJECT_TARGET) $(DEST)\krnl386.map
  70. makedir:
  71. @-if not exist $(DEST) md $(DEST)
  72. setenv:
  73. set include=$(ENVINCS);$(INCLUDE)
  74. oldobjs:
  75. @if exist strings.asm del strings.asm
  76. clean: all
  77. OBJ = $(DEST)\winexec.obj \
  78. $(DEST)\kdata.obj \
  79. $(DEST)\ldboot.obj \
  80. $(DEST)\ldutil.obj \
  81. $(DEST)\ldfile.obj \
  82. $(DEST)\ldseg.obj \
  83. $(DEST)\ldreloc.obj \
  84. $(DEST)\ldint.obj \
  85. $(DEST)\gpfix.obj \
  86. $(DEST)\ldopen.obj \
  87. $(DEST)\ld.obj \
  88. $(DEST)\ldaux.obj \
  89. $(DEST)\ldcache.obj \
  90. $(DEST)\lddebug.obj \
  91. $(DEST)\ldfastb.obj \
  92. $(DEST)\stack.obj \
  93. $(DEST)\mapdata.obj \
  94. $(DEST)\kdataend.obj \
  95. $(DEST)\ldstack.obj \
  96. $(DEST)\ldheader.obj \
  97. $(DEST)\resaux.obj \
  98. $(DEST)\strings.obj \
  99. $(DEST)\ripaux.obj \
  100. $(DEST)\module.obj \
  101. $(DEST)\task.obj \
  102. $(DEST)\context.obj \
  103. $(DEST)\i21file.obj \
  104. $(DEST)\int24.obj \
  105. $(DEST)\dosinit.obj \
  106. $(DEST)\atom.obj \
  107. $(DEST)\diskio.obj \
  108. $(DEST)\lstring.obj \
  109. $(DEST)\hmem.obj \
  110. $(DEST)\userpro.obj \
  111. $(DEST)\handle.obj \
  112. $(DEST)\lacheck.obj \
  113. $(DEST)\lalloc.obj \
  114. $(DEST)\lcompact.obj \
  115. $(DEST)\linterf.obj \
  116. $(DEST)\lhandle.obj \
  117. $(DEST)\i21entry.obj \
  118. $(DEST)\i21task.obj \
  119. $(DEST)\ldappl.obj \
  120. $(DEST)\ldself.obj \
  121. $(DEST)\rip.obj \
  122. $(DEST)\intnn.obj \
  123. $(DEST)\enable.obj \
  124. $(DEST)\miscapi.obj \
  125. $(DEST)\layer.obj \
  126. $(DEST)\error.obj \
  127. $(DEST)\diag.obj \
  128. $(DEST)\wow16cal.obj \
  129. $(DEST)\kthunks.obj \
  130. $(DEST)\wowdeb.obj \
  131. $(DEST)\tasking.obj \
  132. $(DEST)\selman.obj \
  133. $(DEST)\kflatstb.obj
  134. OBJ3 = $(DEST)\3glru.obj \
  135. $(DEST)\3gmemini.obj \
  136. $(DEST)\3gmoreme.obj \
  137. $(DEST)\3protect.obj \
  138. $(DEST)\3gacheck.obj \
  139. $(DEST)\3galloc.obj \
  140. $(DEST)\3gcompac.obj \
  141. $(DEST)\3ginterf.obj \
  142. $(DEST)\3gmem.obj \
  143. $(DEST)\gpcont.obj \
  144. $(DEST)\disasm.obj \
  145. $(DEST)\patch.obj \
  146. $(DEST)\reboot.obj \
  147. $(DEST)\kold.obj
  148. $(DEST)\kernel.exe: $(LINKFILE) kernel.def $(DEST)\kernstub.exe $(OBJ) $(OBJ3) \
  149. $(DEST)\krnl386.res
  150. @echo $(DEST)\kdata+ >$(DEST)\tmp.lnk
  151. @echo $(DEST)\strings+ >>$(DEST)\tmp.lnk
  152. @echo $(DEST)\atom+ >>$(DEST)\tmp.lnk
  153. @echo $(DEST)\context+ >>$(DEST)\tmp.lnk
  154. @echo $(DEST)\dosinit+ >>$(DEST)\tmp.lnk
  155. @echo $(DEST)\i21file+ >>$(DEST)\tmp.lnk
  156. @echo $(DEST)\i21task+ >>$(DEST)\tmp.lnk
  157. @echo $(DEST)\ld+ >>$(DEST)\tmp.lnk
  158. @echo $(DEST)\ldaux+ >>$(DEST)\tmp.lnk
  159. @echo $(DEST)\ldboot+ >>$(DEST)\tmp.lnk
  160. @echo $(DEST)\lddebug+ >>$(DEST)\tmp.lnk
  161. @echo $(DEST)\ldopen+ >>$(DEST)\tmp.lnk
  162. @echo $(DEST)\ldutil+ >>$(DEST)\tmp.lnk
  163. @echo $(DEST)\lstring+ >>$(DEST)\tmp.lnk
  164. @echo $(DEST)\reboot+ >>$(DEST)\tmp.lnk
  165. @echo $(DEST)\userpro+ >>$(DEST)\tmp.lnk
  166. @echo $(DEST)\winexec+ >>$(DEST)\tmp.lnk
  167. @echo $(DEST)\wow16cal+ >>$(DEST)\tmp.lnk
  168. @echo $(DEST)\ldint+ >>$(DEST)\tmp.lnk
  169. @echo $(DEST)\stack+ >>$(DEST)\tmp.lnk
  170. @echo $(DEST)\mapdata+ >>$(DEST)\tmp.lnk
  171. @echo $(DEST)\layer+ >>$(DEST)\tmp.lnk
  172. @echo $(DEST)\ldfastb+ >>$(DEST)\tmp.lnk
  173. @echo $(DEST)\3gmemini+ >>$(DEST)\tmp.lnk
  174. @echo $(DEST)\ldself+ >>$(DEST)\tmp.lnk
  175. @echo $(DEST)\int24+ >>$(DEST)\tmp.lnk
  176. @echo $(DEST)\diskio+ >>$(DEST)\tmp.lnk
  177. @echo $(DEST)\3ginterf+ >>$(DEST)\tmp.lnk
  178. @echo $(DEST)\intnn+ >>$(DEST)\tmp.lnk
  179. @echo $(DEST)\i21entry+ >>$(DEST)\tmp.lnk
  180. @echo $(DEST)\3protect+ >>$(DEST)\tmp.lnk
  181. @echo $(DEST)\3gmoreme+ >>$(DEST)\tmp.lnk
  182. @echo $(DEST)\3gcompac+ >>$(DEST)\tmp.lnk
  183. @echo $(DEST)\lhandle+ >>$(DEST)\tmp.lnk
  184. @echo $(DEST)\3galloc+ >>$(DEST)\tmp.lnk
  185. @echo $(DEST)\3glru+ >>$(DEST)\tmp.lnk
  186. @echo $(DEST)\3gmem+ >>$(DEST)\tmp.lnk
  187. @echo $(DEST)\handle+ >>$(DEST)\tmp.lnk
  188. @echo $(DEST)\kold+ >>$(DEST)\tmp.lnk
  189. @echo $(DEST)\ldfile+ >>$(DEST)\tmp.lnk
  190. @echo $(DEST)\gpfix+ >>$(DEST)\tmp.lnk
  191. @echo $(DEST)\hmem+ >>$(DEST)\tmp.lnk
  192. @echo $(DEST)\module+ >>$(DEST)\tmp.lnk
  193. @echo $(DEST)\ldheader+ >>$(DEST)\tmp.lnk
  194. @echo $(DEST)\ldcache+ >>$(DEST)\tmp.lnk
  195. @echo $(DEST)\ldreloc+ >>$(DEST)\tmp.lnk
  196. @echo $(DEST)\ldappl+ >>$(DEST)\tmp.lnk
  197. @echo $(DEST)\ldseg+ >>$(DEST)\tmp.lnk
  198. @echo $(DEST)\tasking+ >>$(DEST)\tmp.lnk
  199. @echo $(DEST)\task+ >>$(DEST)\tmp.lnk
  200. @echo $(DEST)\ldstack+ >>$(DEST)\tmp.lnk
  201. @echo $(DEST)\resaux+ >>$(DEST)\tmp.lnk
  202. @echo $(DEST)\linterf+ >>$(DEST)\tmp.lnk
  203. @echo $(DEST)\lcompact+ >>$(DEST)\tmp.lnk
  204. @echo $(DEST)\lalloc+ >>$(DEST)\tmp.lnk
  205. @echo $(DEST)\ripaux+ >>$(DEST)\tmp.lnk
  206. @echo $(DEST)\rip+ >>$(DEST)\tmp.lnk
  207. @echo $(DEST)\3gacheck+ >>$(DEST)\tmp.lnk
  208. @echo $(DEST)\lacheck+ >>$(DEST)\tmp.lnk
  209. @echo $(DEST)\enable+ >>$(DEST)\tmp.lnk
  210. @echo $(DEST)\miscapi+ >>$(DEST)\tmp.lnk
  211. @echo $(DEST)\error+ >>$(DEST)\tmp.lnk
  212. @echo $(DEST)\gpcont+ >>$(DEST)\tmp.lnk
  213. @echo $(DEST)\disasm+ >>$(DEST)\tmp.lnk
  214. @echo $(DEST)\patch+ >>$(DEST)\tmp.lnk
  215. @echo $(DEST)\diag+ >>$(DEST)\tmp.lnk
  216. @echo $(DEST)\kthunks+ >>$(DEST)\tmp.lnk
  217. @echo $(DEST)\wowdeb+ >>$(DEST)\tmp.lnk
  218. @echo $(DEST)\kdataend+ >>$(DEST)\tmp.lnk
  219. @echo $(DEST)\selman+ >>$(DEST)\tmp.lnk
  220. @echo $(DEST)\kflatstb >>$(DEST)\tmp.lnk
  221. @echo $(DEST)\kernel.exe/align:16/warnfixup/farcall/nopackcode/onerror:noexe >>$(DEST)\tmp.lnk
  222. @echo $(DEST)\kernel.map/map >>$(DEST)\tmp.lnk
  223. @echo /NOD/NOE >>$(DEST)\tmp.lnk
  224. $(LINK) $(LDEBUG) @$(DEST)\tmp.lnk,kernel.def
  225. $(RC) -t $(DEST)\krnl386.res $(DEST)\kernel.exe
  226. fixexe $(DEST)\kernel.exe
  227. @-del $(DEST)\tmp.lnk
  228. $(DEST)\kernstub.exe: kernstub.asm
  229. cd $(DEST)
  230. $(ASM) $(KSAFLAGS) ..\..\..\kernstub;
  231. $(LINK) kernstub;
  232. -erase kernstub.obj
  233. cd ..\..\..
  234. $(DEST)\kernel.map: $(DEST)\kernel.exe
  235. $(DEST)\kernel.sym: $(DEST)\kernel.map
  236. mapsym /n -o $(DEST)\kernel.sym $(DEST)\kernel.map
  237. $(DEST)\krnl386.rc : krnl386.rc
  238. copy $? $@
  239. $(DEST)\kernel.rcv : kernel.rcv
  240. copy $? $@
  241. $(DEST)\krnl386.res: $(DEST)\krnl386.rc $(DEST)\kernel.rcv ..\inc\common.ver
  242. set INCLUDE=$(RCINC)
  243. $(RC) -r $(DEST)\krnl386.rc
  244. $(DEST)\krnl386.sym: $(DEST)\kernel.map
  245. mapsym /n -o $(DEST)\kernel.sym $(DEST)\kernel.map
  246. copy $(DEST)\kernel.exe $(DEST)\krnl386.exe
  247. copy $(DEST)\kernel.map $(DEST)\krnl386.map
  248. copy $(DEST)\kernel.sym $(DEST)\krnl386.sym
  249. -erase $(DEST)\kernel.exe
  250. #
  251. # The C File List
  252. #
  253. $(DEST)\rip.obj:: rip.c
  254. Set CL=$(CPF_FLAGS)
  255. $(CL) rip.c
  256. Set CL=
  257. $(DEST)\error.obj:: error.c
  258. Set CL=$(CP_FLAGS)
  259. $(CL) -NT _TEXT error.c
  260. Set CL=
  261. $(DEST)\disasm.obj:: disasm.c
  262. Set CL=$(CPF_FLAGS)
  263. $(CL) disasm.c
  264. Set CL=
  265. # DO NOT DELETE THE FOLLOWING LINE
  266. # Dependencies follow
  267. $(DEST)\3gacheck.obj 3gacheck.lst: 3gacheck.asm ../inc/cmacros.inc \
  268. ../inc/logerror.inc ikernel.inc kernel.inc \
  269. protect.inc winkern.inc
  270. $(ASMCMD) 3gacheck,$(DEST)\;
  271. $(DEST)\3galloc.obj 3galloc.lst: 3galloc.asm ../inc/cmacros.inc ../inc/logerror.inc \
  272. ikernel.inc kernel.inc protect.inc \
  273. winkern.inc
  274. $(ASMCMD) 3galloc,$(DEST)\;
  275. $(DEST)\3gcompac.obj 3gcompac.lst: 3gcompac.asm ../inc/cmacros.inc \
  276. ../inc/logerror.inc ikernel.inc kernel.inc \
  277. protect.inc winkern.inc
  278. $(ASMCMD) 3gcompac,$(DEST)\;
  279. $(DEST)\3ginterf.obj 3ginterf.lst: 3ginterf.asm ../inc/cmacros.inc \
  280. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  281. kernel.inc pdb.inc protect.inc tdb.inc winkern.inc \
  282. $(WOWINC)\tdb16.inc $(WOWINC)\wow.inc $(WOWINC)\wowkrn.inc
  283. $(ASMCMD) 3ginterf,$(DEST)\;
  284. $(DEST)\3glru.obj 3glru.lst: 3glru.asm ../inc/cmacros.inc ../inc/logerror.inc \
  285. ../inc/newexe.inc ikernel.inc kernel.inc \
  286. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  287. $(ASMCMD) 3glru,$(DEST)\;
  288. $(DEST)\3gmem.obj 3gmem.lst: 3gmem.asm ../inc/cmacros.inc ../inc/logerror.inc \
  289. ikernel.inc kernel.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc \
  290. winkern.inc
  291. $(ASMCMD) 3gmem,$(DEST)\;
  292. $(DEST)\3gmemini.obj 3gmemini.lst: 3gmemini.asm ../inc/cmacros.inc \
  293. ../inc/logerror.inc ikernel.inc kernel.inc \
  294. protect.inc winkern.inc
  295. $(ASMCMD) 3gmemini,$(DEST)\;
  296. $(DEST)\3gmoreme.obj 3gmoreme.lst: 3gmoreme.asm ../inc/cmacros.inc \
  297. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  298. kernel.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  299. $(ASMCMD) 3gmoreme,$(DEST)\;
  300. $(DEST)\3protect.obj 3protect.lst: 3protect.asm ../inc/cmacros.inc \
  301. ../inc/logerror.inc ikernel.inc kernel.inc \
  302. pdb.inc protect.inc winkern.inc
  303. $(ASMCMD) 3protect,$(DEST)\;
  304. $(DEST)\atom.obj atom.lst: atom.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  305. ../inc/logerror.inc ikernel.inc kernel.inc \
  306. winkern.inc
  307. $(ASMCMD) atom,$(DEST)\;
  308. $(DEST)\context.obj context.lst: context.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  309. ../inc/logerror.inc ikernel.inc kernel.inc \
  310. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc $(WOWINC)\wowcmpat.inc
  311. $(ASMCMD) context,$(DEST)\;
  312. $(DEST)\diag.obj diag.lst: diag.asm ../inc/cmacros.inc ../inc/logerror.inc \
  313. ikernel.inc kernel.inc winkern.inc
  314. $(ASMCMD) diag,$(DEST)\;
  315. $(DEST)\diskio.obj diskio.lst: diskio.asm ../inc/cmacros.inc ../inc/logerror.inc \
  316. ikernel.inc kernel.inc winkern.inc
  317. $(ASMCMD) diskio,$(DEST)\;
  318. $(DEST)\dosinit.obj dosinit.lst: dosinit.asm ../inc/cmacros.inc ../inc/logerror.inc \
  319. ikernel.inc kernel.inc pdb.inc winkern.inc
  320. $(ASMCMD) dosinit,$(DEST)\;
  321. $(DEST)\enable.obj enable.lst: enable.asm ../inc/cmacros.inc ../inc/logerror.inc \
  322. ../inc/newexe.inc ikernel.inc kernel.inc \
  323. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  324. $(ASMCMD) enable,$(DEST)\;
  325. $(DEST)\gpcont.obj gpcont.lst: gpcont.asm ../inc/cmacros.inc ../inc/logerror.inc \
  326. ../inc/newexe.inc gpcont.inc ikernel.inc kernel.inc \
  327. winkern.inc
  328. $(ASMCMD) gpcont,$(DEST)\;
  329. $(DEST)\gpfix.obj gpfix.lst: gpfix.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  330. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  331. kernel.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  332. $(ASMCMD) gpfix,$(DEST)\;
  333. $(DEST)\handle.obj handle.lst: handle.asm ../inc/cmacros.inc ../inc/logerror.inc \
  334. ikernel.inc kernel.inc winkern.inc
  335. $(ASMCMD) handle,$(DEST)\;
  336. $(DEST)\hmem.obj hmem.lst: hmem.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  337. ../inc/logerror.inc ikernel.inc kernel.inc \
  338. winkern.inc
  339. $(ASMCMD) hmem,$(DEST)\;
  340. $(DEST)\i21entry.obj i21entry.lst: i21entry.asm ../inc/cmacros.inc \
  341. ../inc/logerror.inc ../inc/newexe.inc \
  342. ikernel.inc kernel.inc pdb.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc \
  343. winkern.inc
  344. $(ASMCMD) i21entry,$(DEST)\;
  345. $(DEST)\i21file.obj i21file.lst: i21file.asm ../inc/cmacros.inc ../inc/logerror.inc \
  346. ikernel.inc kdos.inc kernel.inc \
  347. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  348. $(ASMCMD) i21file,$(DEST)\;
  349. $(DEST)\i21task.obj i21task.lst: i21task.asm ../inc/cmacros.inc ../inc/logerror.inc \
  350. ikernel.inc kdos.inc kernel.inc \
  351. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  352. $(ASMCMD) i21task,$(DEST)\;
  353. $(DEST)\int24.obj int24.lst: int24.asm ../inc/cmacros.inc ../inc/logerror.inc \
  354. ikernel.inc kernel.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  355. $(ASMCMD) int24,$(DEST)\;
  356. $(DEST)\intnn.obj intnn.lst: intnn.asm ../inc/cmacros.inc ../inc/logerror.inc \
  357. ikernel.inc kernel.inc pdb.inc tdb.inc $(WOWINC)\tdb16.inc \
  358. winkern.inc
  359. $(ASMCMD) intnn,$(DEST)\;
  360. $(DEST)\kdata.obj kdata.lst: kdata.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  361. ../inc/logerror.inc gpcont.inc ikernel.inc kernel.inc \
  362. winkern.inc
  363. $(ASMCMD) kdata,$(DEST)\;
  364. $(DEST)\kdataend.obj kdataend.lst: kdataend.asm ../inc/cmacros.inc \
  365. ../inc/logerror.inc ikernel.inc kernel.inc \
  366. winkern.inc
  367. $(ASMCMD) kdataend,$(DEST)\;
  368. $(DEST)\kernstub.obj kernstub.lst: kernstub.asm ../inc/cmacros.inc \
  369. ../inc/newexe.inc protect.inc
  370. $(ASMCMD) kernstub,$(DEST)\;
  371. $(DEST)\kthunks.obj kthunks.lst: kthunks.asm ../inc/cmacros.inc \
  372. $(WOWINC)\wow.inc $(WOWINC)\wowkrn.inc
  373. $(ASMCMD) kthunks,$(DEST)\;
  374. $(DEST)\lacheck.obj lacheck.lst: lacheck.asm ../inc/cmacros.inc ../inc/logerror.inc \
  375. ikernel.inc kernel.inc winkern.inc
  376. $(ASMCMD) lacheck,$(DEST)\;
  377. $(DEST)\lalloc.obj lalloc.lst: lalloc.asm ../inc/cmacros.inc ../inc/logerror.inc \
  378. ikernel.inc kernel.inc winkern.inc
  379. $(ASMCMD) lalloc,$(DEST)\;
  380. $(DEST)\layer.obj layer.lst: layer.asm ../inc/gpfix.inc ../inc/klayer.inc \
  381. ../inc/logerror.inc kernel.api
  382. $(ASMCMD) layer,$(DEST)\;
  383. $(DEST)\lcompact.obj lcompact.lst: lcompact.asm ../inc/cmacros.inc \
  384. ../inc/logerror.inc ikernel.inc kernel.inc \
  385. winkern.inc
  386. $(ASMCMD) lcompact,$(DEST)\;
  387. $(DEST)\ld.obj ld.lst: ld.asm ../inc/cmacros.inc ../inc/logerror.inc \
  388. ../inc/newexe.inc ikernel.inc kernel.inc \
  389. pdb.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  390. $(ASMCMD) ld,$(DEST)\;
  391. $(DEST)\ldappl.obj ldappl.lst: ldappl.asm ../inc/cmacros.inc ../inc/logerror.inc \
  392. ../inc/newexe.inc appl.inc ikernel.inc kernel.inc \
  393. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  394. $(ASMCMD) ldappl,$(DEST)\;
  395. $(DEST)\ldaux.obj ldaux.lst: ldaux.asm ../inc/cmacros.inc ../inc/logerror.inc \
  396. ../inc/newexe.inc ikernel.inc kernel.inc \
  397. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  398. $(ASMCMD) ldaux,$(DEST)\;
  399. $(DEST)\ldboot.obj ldboot.lst: ldboot.asm ../inc/cmacros.inc ../inc/logerror.inc \
  400. ../inc/newexe.inc gpcont.inc ikernel.inc \
  401. kernel.inc pdb.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc \
  402. winkern.inc $(WOWINC)\doswow.inc
  403. $(ASMCMD) ldboot,$(DEST)\;
  404. $(DEST)\ldcache.obj ldcache.lst: ldcache.asm ../inc/cmacros.inc ../inc/logerror.inc \
  405. ../inc/newexe.inc ikernel.inc kernel.inc \
  406. tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  407. $(ASMCMD) ldcache,$(DEST)\;
  408. $(DEST)\lddebug.obj lddebug.lst: lddebug.asm ../inc/cmacros.inc ../inc/logerror.inc \
  409. ../inc/newexe.inc ikernel.inc kernel.inc \
  410. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc $(WOWINC)\tdb16.inc \
  411. $(WOWINC)\bop.inc $(WOWINC)\wow.inc $(WOWINC)\dbgsvc.inc
  412. $(ASMCMD) lddebug,$(DEST)\;
  413. $(DEST)\ldfastb.obj ldfastb.lst: ldfastb.asm ../inc/cmacros.inc ../inc/logerror.inc \
  414. ../inc/newexe.inc ikernel.inc kernel.inc \
  415. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  416. $(ASMCMD) ldfastb,$(DEST)\;
  417. $(DEST)\ldfile.obj ldfile.lst: ldfile.asm ../inc/cmacros.inc ../inc/logerror.inc \
  418. ../inc/newexe.inc ikernel.inc kernel.inc \
  419. winkern.inc
  420. $(ASMCMD) ldfile,$(DEST)\;
  421. $(DEST)\ldheader.obj ldheader.lst: ldheader.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  422. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  423. kernel.inc winkern.inc
  424. $(ASMCMD) ldheader,$(DEST)\;
  425. $(DEST)\ldint.obj ldint.lst: ldint.asm ../inc/cmacros.inc ../inc/logerror.inc \
  426. ../inc/newexe.inc ../inc/windows.inc gpcont.inc \
  427. ikernel.inc kdos.inc kernel.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc \
  428. winkern.inc $(WOWINC)\bop.inc
  429. $(ASMCMD) ldint,$(DEST)\;
  430. $(DEST)\ldopen.obj ldopen.lst: ldopen.asm ../inc/cmacros.inc ../inc/logerror.inc \
  431. ../inc/newexe.inc ikernel.inc kernel.inc \
  432. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  433. $(ASMCMD) ldopen,$(DEST)\;
  434. $(DEST)\ldreloc.obj ldreloc.lst: ldreloc.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  435. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  436. kernel.inc protect.inc winkern.inc
  437. $(ASMCMD) ldreloc,$(DEST)\;
  438. $(DEST)\ldseg.obj ldseg.lst: ldseg.asm ../inc/cmacros.inc ../inc/logerror.inc \
  439. ../inc/newexe.inc ikernel.inc kernel.inc \
  440. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  441. $(ASMCMD) ldseg,$(DEST)\;
  442. $(DEST)\ldself.obj ldself.lst: ldself.asm ../inc/cmacros.inc ../inc/logerror.inc \
  443. ../inc/newexe.inc ikernel.inc kernel.inc \
  444. tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  445. $(ASMCMD) ldself,$(DEST)\;
  446. $(DEST)\ldstack.obj ldstack.lst: ldstack.asm ../inc/cmacros.inc ../inc/logerror.inc \
  447. ../inc/newexe.inc ikernel.inc kernel.inc \
  448. tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  449. $(ASMCMD) ldstack,$(DEST)\;
  450. $(DEST)\ldutil.obj ldutil.lst: ldutil.asm ../inc/cmacros.inc ../inc/logerror.inc \
  451. ../inc/newexe.inc ikernel.inc kernel.inc \
  452. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  453. $(ASMCMD) ldutil,$(DEST)\;
  454. $(DEST)\lhandle.obj lhandle.lst: lhandle.asm ../inc/cmacros.inc ../inc/logerror.inc \
  455. ikernel.inc kernel.inc winkern.inc
  456. $(ASMCMD) lhandle,$(DEST)\;
  457. $(DEST)\linterf.obj linterf.lst: linterf.asm ../inc/cmacros.inc ../inc/logerror.inc \
  458. ikernel.inc kernel.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  459. $(ASMCMD) linterf,$(DEST)\;
  460. $(DEST)\lstring.obj lstring.lst: lstring.asm ../inc/cmacros.inc ../inc/gpfix.inc \
  461. ../inc/logerror.inc ikernel.inc kernel.inc \
  462. winkern.inc $(WOWINC)\wowcmpat.inc
  463. $(ASMCMD) lstring,$(DEST)\;
  464. $(DEST)\mapdata.obj mapdata.lst: mapdata.asm ../inc/cmacros.inc ../inc/logerror.inc \
  465. ikernel.inc kernel.inc winkern.inc
  466. $(ASMCMD) mapdata,$(DEST)\;
  467. $(DEST)\miscapi.obj miscapi.lst: miscapi.asm ../inc/cmacros.inc ../inc/logerror.inc \
  468. ../inc/newexe.inc ikernel.inc kernel.inc \
  469. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  470. $(ASMCMD) miscapi,$(DEST)\;
  471. $(DEST)\module.obj module.lst: module.asm ../inc/cmacros.inc ../inc/logerror.inc \
  472. ../inc/newexe.inc ikernel.inc kernel.inc \
  473. tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  474. $(ASMCMD) module,$(DEST)\;
  475. $(DEST)\patch.obj patch.lst: patch.asm ../inc/cmacros.inc kernel.inc \
  476. ../inc/gpfix.inc pdb.inc tdb.inc ../inc/newexe.inc protect.inc
  477. $(ASMCMD) patch,$(DEST)\;
  478. $(DEST)\reboot.obj reboot.lst: reboot.asm ../inc/cmacros.inc ../inc/logerror.inc \
  479. ../inc/newexe.inc ikernel.inc kernel.inc \
  480. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  481. $(ASMCMD) reboot,$(DEST)\;
  482. $(DEST)\resaux.obj resaux.lst: resaux.asm ../inc/cmacros.inc ../inc/logerror.inc \
  483. ../inc/newexe.inc ikernel.inc kernel.inc \
  484. protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  485. $(ASMCMD) resaux,$(DEST)\;
  486. $(DEST)\ripaux.obj ripaux.lst: ripaux.asm ../inc/cmacros.inc ../inc/logerror.inc \
  487. ../inc/newexe.inc ikernel.inc kernel.inc \
  488. winkern.inc
  489. $(ASMCMD) ripaux,$(DEST)\;
  490. $(DEST)\stack.obj stack.lst: stack.asm ../inc/cmacros.inc ../inc/logerror.inc \
  491. ikernel.inc kernel.inc winkern.inc
  492. $(ASMCMD) stack,$(DEST)\;
  493. $(DEST)\strings.obj strings.lst: messages\$(ALT_PROJECT)\strings.asm gpcont.inc
  494. $(ASMCMD) messages\$(ALT_PROJECT)\strings,$(DEST)\;
  495. $(DEST)\task.obj task.lst: task.asm ../inc/cmacros.inc ../inc/logerror.inc \
  496. ../inc/newexe.inc ikernel.inc kernel.inc \
  497. pdb.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc \
  498. $(WOWINC)\bop.inc
  499. $(ASMCMD) task,$(DEST)\;
  500. $(DEST)\tasking.obj tasking.lst: tasking.asm ../inc/cmacros.inc \
  501. tdb.inc $(WOWINC)\tdb16.inc $(WOWINC)\wow.inc
  502. $(ASMCMD) tasking,$(DEST)\;
  503. $(DEST)\userpro.obj userpro.lst: userpro.asm ../inc/cmacros.inc ../inc/logerror.inc \
  504. ikernel.inc kernel.inc pdb.inc winkern.inc
  505. $(ASMCMD) userpro,$(DEST)\;
  506. $(DEST)\w32sys.obj w32sys.lst: w32sys.asm ../inc/cmacros.inc ../inc/logerror.inc \
  507. ikernel.inc kernel.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  508. $(ASMCMD) w32sys,$(DEST)\;
  509. $(DEST)\winexec.obj winexec.lst: winexec.asm ../inc/cmacros.inc ../inc/logerror.inc \
  510. ikernel.inc kernel.inc winkern.inc $(WOWINC)\wowcmpat.inc
  511. $(ASMCMD) winexec,$(DEST)\;
  512. $(DEST)\kold.obj kold.lst: kold.asm ../inc/cmacros.inc \
  513. ../inc/logerror.inc ../inc/newexe.inc ikernel.inc \
  514. kernel.inc protect.inc tdb.inc $(WOWINC)\tdb16.inc winkern.inc
  515. $(ASMCMD) kold,$(DEST)\;
  516. $(DEST)\wowdeb.obj wowdeb.lst: wowdeb.asm ../inc/cmacros.inc \
  517. kernel.inc $(WOWINC)\wow.inc
  518. $(ASMCMD) wowdeb,$(DEST)\;
  519. $(DEST)\wow16cal.obj wow16cal.lst: wow16cal.asm ../inc/cmacros.inc \
  520. $(WOWINC)\wow.inc $(WOWINC)\dpmi.inc tdb.inc $(WOWINC)\tdb16.inc
  521. $(ASMCMD) wow16cal,$(DEST)\;
  522. $(DEST)\selman.obj selman.lst: selman.asm ../inc/gpfix.inc kernel.inc
  523. $(ASMCMD) selman,$(DEST)\;
  524. $(DEST)\kflatstb.obj kflatstb.lst: kflatstb.asm kernel.inc
  525. $(ASMCMD) kflatstb,$(DEST)\;
  526. disasm.obj disasm.lst:: disasm.c ../inc/windows.h ../inc/windowsx.h
  527. error.obj error.lst:: error.c ../inc/logerror.h ikernel.h kernel.h
  528. fixexe.obj fixexe.lst:: fixexe.c
  529. rip.obj rip.lst:: rip.c ikernel.h kernel.h newexe.h
  530. # IF YOU PUT STUFF HERE IT WILL GET BLASTED