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.

571 lines
22 KiB

  1. #************************** makefile for cmd\command *********************
  2. #
  3. # SUDEEPB 22-Mar-1991 Ported For NT
  4. #
  5. #*************************************************************************
  6. include ..\..\make.inc
  7. target =$(DEST)\command.com
  8. #
  9. ####################### dependencies begin here. #########################
  10. #
  11. all: buildmsg $(target)
  12. binplace -o $(ALT_PROJECT_TARGET) $(target)
  13. include ..\..\cleanup.inc
  14. buildmsg: $(ALT_PROJECT)\buildmsg.exe
  15. $(ALT_PROJECT)\buildmsg.exe: buildmsg.c $(ALT_PROJECT)\bldmsg.h
  16. cl16 /Zl /Gs -c -I$(ALT_PROJECT) -I..\..\h -Fo$(DEST)\buildmsg.obj buildmsg.c
  17. $(LINK) /stack:4096/onerror:noexe $(DEST)\buildmsg.obj,$(ALT_PROJECT)\buildmsg.exe,,..\..\lib\slibce.lib;
  18. $(DEST)\command.ctl: $(ALT_PROJECT)\command.skl \
  19. $(msg)\$(ALT_PROJECT).msg \
  20. makefile.sub
  21. cd $(DEST)
  22. !if "$(ALT_PROJECT)" == "JPN" || "$(ALT_PROJECT)" == "KOR"
  23. buildmsg.exe ..\..\..\$(msg)\$(ALT_PROJECT) ..\..\command.skl
  24. !else
  25. ..\..\buildmsg.exe ..\..\..\$(msg)\$(ALT_PROJECT) ..\..\command.skl
  26. !endif
  27. cd ..\..\..
  28. $(DEST)\command1.obj: command1.asm \
  29. $(inc)\dossym.inc \
  30. $(inc)\dbcs.sw \
  31. $(inc)\dosmac.inc \
  32. $(inc)\versiona.inc \
  33. $(inc)\buffer.inc \
  34. $(inc)\dirent.inc \
  35. $(inc)\error.inc \
  36. $(inc)\syscall.inc \
  37. comsw.asm \
  38. $(cinc)\curdir.inc \
  39. comequ.asm \
  40. resmsg.equ \
  41. envdata.asm
  42. $(DEST)\command2.obj: command2.asm \
  43. $(inc)\dossym.inc \
  44. $(inc)\dbcs.sw \
  45. $(inc)\dosmac.inc \
  46. $(inc)\versiona.inc \
  47. $(inc)\buffer.inc \
  48. $(inc)\dirent.inc \
  49. $(inc)\error.inc \
  50. $(inc)\pdb.inc \
  51. $(inc)\syscall.inc \
  52. comsw.asm \
  53. $(cinc)\curdir.inc \
  54. comequ.asm \
  55. resmsg.equ
  56. $(DEST)\copy.obj: copy.asm \
  57. comsw.asm \
  58. $(inc)\dossym.inc \
  59. $(inc)\dbcs.sw \
  60. $(inc)\dosmac.inc \
  61. $(inc)\versiona.inc \
  62. $(inc)\buffer.inc \
  63. $(inc)\dirent.inc \
  64. $(inc)\error.inc \
  65. $(inc)\syscall.inc \
  66. $(inc)\sf.inc \
  67. comseg.asm \
  68. $(cinc)\curdir.inc \
  69. comequ.asm
  70. $(DEST)\copypr1.obj: copypr1.asm \
  71. comsw.asm \
  72. $(inc)\dossym.inc \
  73. $(inc)\dbcs.sw \
  74. $(inc)\dosmac.inc \
  75. $(inc)\versiona.inc \
  76. $(inc)\buffer.inc \
  77. $(inc)\dirent.inc \
  78. $(inc)\error.inc \
  79. $(inc)\syscall.inc \
  80. $(inc)\sf.inc \
  81. comseg.asm \
  82. $(cinc)\curdir.inc \
  83. comequ.asm
  84. $(DEST)\copypr2.obj: copypr2.asm \
  85. comsw.asm \
  86. $(inc)\dossym.inc \
  87. $(inc)\dbcs.sw \
  88. $(inc)\dosmac.inc \
  89. $(inc)\versiona.inc \
  90. $(inc)\buffer.inc \
  91. $(inc)\dirent.inc \
  92. $(inc)\error.inc \
  93. $(inc)\syscall.inc \
  94. $(inc)\sf.inc \
  95. comseg.asm \
  96. $(cinc)\curdir.inc \
  97. comequ.asm
  98. $(DEST)\cparse.obj: cparse.asm \
  99. comsw.asm \
  100. $(inc)\dossym.inc \
  101. $(inc)\dbcs.sw \
  102. $(inc)\dosmac.inc \
  103. $(inc)\versiona.inc \
  104. $(inc)\buffer.inc \
  105. $(inc)\dirent.inc \
  106. $(inc)\error.inc \
  107. $(inc)\devsym.inc \
  108. comseg.asm \
  109. $(cinc)\curdir.inc \
  110. comequ.asm
  111. $(DEST)\init.obj: init.asm \
  112. $(inc)\dossym.inc \
  113. $(inc)\pdb.inc \
  114. $(inc)\dbcs.sw \
  115. $(inc)\dosmac.inc \
  116. $(inc)\versiona.inc \
  117. $(inc)\buffer.inc \
  118. $(inc)\dirent.inc \
  119. $(inc)\error.inc \
  120. $(inc)\mult.inc \
  121. $(inc)\syscall.inc \
  122. $(inc)\doscntry.inc \
  123. $(cinc)\cmdsvc.inc \
  124. comsw.asm \
  125. comseg.asm \
  126. $(cinc)\curdir.inc \
  127. comequ.asm \
  128. resmsg.equ
  129. $(DEST)\iparse.obj: iparse.asm \
  130. comseg.asm \
  131. $(inc)\parse.asm \
  132. $(inc)\psdata.inc
  133. $(DEST)\parse2.obj: parse2.asm \
  134. $(inc)\dossym.inc \
  135. $(inc)\dbcs.sw \
  136. $(inc)\dosmac.inc \
  137. $(inc)\versiona.inc \
  138. $(inc)\buffer.inc \
  139. $(inc)\dirent.inc \
  140. $(inc)\error.inc \
  141. $(inc)\devsym.inc \
  142. comsw.asm \
  143. comseg.asm \
  144. $(cinc)\curdir.inc \
  145. comequ.asm
  146. $(DEST)\path1.obj: path1.asm \
  147. $(inc)\dossym.inc \
  148. $(inc)\dbcs.sw \
  149. $(inc)\dosmac.inc \
  150. $(inc)\versiona.inc \
  151. $(inc)\buffer.inc \
  152. $(inc)\dirent.inc \
  153. $(inc)\error.inc \
  154. $(inc)\syscall.inc \
  155. comsw.asm \
  156. comseg.asm \
  157. $(cinc)\curdir.inc \
  158. comequ.asm
  159. $(DEST)\path2.obj: path2.asm \
  160. $(inc)\dossym.inc \
  161. $(inc)\dbcs.sw \
  162. $(inc)\dosmac.inc \
  163. $(inc)\versiona.inc \
  164. $(inc)\buffer.inc \
  165. $(inc)\dirent.inc \
  166. $(inc)\error.inc \
  167. $(inc)\syscall.inc \
  168. $(inc)\find.inc \
  169. comsw.asm \
  170. comseg.asm \
  171. $(cinc)\curdir.inc \
  172. comequ.asm
  173. $(DEST)\rdata.obj: rdata.asm \
  174. comsw.asm \
  175. comseg.asm \
  176. resmsg.equ \
  177. $(msg)\comrmsg.inc
  178. $(DEST)\stub.obj: stub.asm \
  179. comseg.asm
  180. $(DEST)\rucode.obj: rucode.asm \
  181. $(inc)\dossym.inc \
  182. $(inc)\dbcs.sw \
  183. $(inc)\dosmac.inc \
  184. $(inc)\versiona.inc \
  185. $(inc)\buffer.inc \
  186. $(inc)\dirent.inc \
  187. $(inc)\error.inc \
  188. $(inc)\syscall.inc \
  189. $(inc)\filemode.inc \
  190. $(inc)\pdb.inc \
  191. $(inc)\mult.inc \
  192. $(inc)\doscntry.inc \
  193. $(inc)\devsym.inc \
  194. comsw.asm \
  195. comseg.asm \
  196. $(cinc)\curdir.inc \
  197. comequ.asm \
  198. resmsg.equ
  199. $(DEST)\tbatch.obj: tbatch.asm \
  200. comsw.asm \
  201. $(inc)\dossym.inc \
  202. $(inc)\dbcs.sw \
  203. $(inc)\dosmac.inc \
  204. $(inc)\versiona.inc \
  205. $(inc)\buffer.inc \
  206. $(inc)\dirent.inc \
  207. $(inc)\error.inc \
  208. $(inc)\syscall.inc \
  209. $(inc)\doscntry.inc \
  210. comseg.asm \
  211. $(cinc)\curdir.inc \
  212. comequ.asm
  213. $(DEST)\tbatch2.obj: tbatch2.asm \
  214. comsw.asm \
  215. $(inc)\dossym.inc \
  216. $(inc)\dbcs.sw \
  217. $(inc)\dosmac.inc \
  218. $(inc)\versiona.inc \
  219. $(inc)\buffer.inc \
  220. $(inc)\dirent.inc \
  221. $(inc)\error.inc \
  222. $(inc)\syscall.inc \
  223. comseg.asm \
  224. $(cinc)\curdir.inc \
  225. comequ.asm
  226. $(DEST)\dir.obj: dir.asm \
  227. comsw.asm \
  228. $(inc)\dossym.inc \
  229. $(inc)\dbcs.sw \
  230. $(inc)\dosmac.inc \
  231. $(inc)\versiona.inc \
  232. $(inc)\buffer.inc \
  233. $(inc)\dirent.inc \
  234. $(inc)\error.inc \
  235. $(inc)\syscall.inc \
  236. $(inc)\bpb.inc \
  237. $(inc)\filemode.inc \
  238. $(inc)\find.inc \
  239. $(inc)\ioctl.inc \
  240. $(inc)\devsym.inc \
  241. $(inc)\rombios.inc \
  242. comseg.asm \
  243. $(cinc)\curdir.inc \
  244. comequ.asm \
  245. ifequ.asm
  246. $(DEST)\tcmd1b.obj: tcmd1b.asm \
  247. comsw.asm \
  248. $(inc)\dossym.inc \
  249. $(inc)\dbcs.sw \
  250. $(inc)\dosmac.inc \
  251. $(inc)\versiona.inc \
  252. $(inc)\buffer.inc \
  253. $(inc)\dirent.inc \
  254. $(inc)\error.inc \
  255. $(inc)\bpb.inc \
  256. $(inc)\syscall.inc \
  257. $(inc)\filemode.inc \
  258. $(inc)\sf.inc \
  259. $(inc)\ioctl.inc \
  260. comseg.asm \
  261. $(cinc)\curdir.inc \
  262. comequ.asm
  263. $(DEST)\tcmd2a.obj: tcmd2a.asm \
  264. comsw.asm \
  265. $(inc)\dossym.inc \
  266. $(inc)\bpb.inc \
  267. $(inc)\dbcs.sw \
  268. $(inc)\dosmac.inc \
  269. $(inc)\versiona.inc \
  270. $(inc)\buffer.inc \
  271. $(inc)\dirent.inc \
  272. $(inc)\error.inc \
  273. $(inc)\syscall.inc \
  274. $(inc)\filemode.inc \
  275. $(inc)\sf.inc \
  276. $(inc)\ioctl.inc \
  277. $(cinc)\curdir.inc \
  278. $(inc)\rombios.inc \
  279. comseg.asm comequ.asm
  280. $(DEST)\tcmd2b.obj: tcmd2b.asm comsw.asm \
  281. $(inc)\dossym.inc \
  282. $(inc)\syscall.inc \
  283. $(inc)\dbcs.sw \
  284. $(inc)\dosmac.inc \
  285. $(inc)\versiona.inc \
  286. $(inc)\buffer.inc \
  287. $(inc)\dirent.inc \
  288. $(inc)\error.inc \
  289. $(cinc)\curdir.inc \
  290. $(inc)\pdb.inc \
  291. $(inc)\mult.inc \
  292. comseg.asm \
  293. comequ.asm \
  294. $(cinc)\cmdsvc.inc
  295. $(DEST)\tcode.obj: tcode.asm \
  296. comsw.asm \
  297. $(inc)\dossym.inc \
  298. $(inc)\syscall.inc \
  299. $(inc)\dbcs.sw \
  300. $(inc)\dosmac.inc \
  301. $(inc)\versiona.inc \
  302. $(inc)\buffer.inc \
  303. $(inc)\dirent.inc \
  304. $(inc)\error.inc \
  305. $(cinc)\curdir.inc \
  306. comseg.asm \
  307. comequ.asm \
  308. $(inc)\vector.inc \
  309. $(inc)\pdb.inc \
  310. $(inc)\arena.inc \
  311. $(inc)\mshalo.asm \
  312. $(cinc)\cmdsvc.inc \
  313. $(cinc)\vint.inc
  314. $(DEST)\tdata.obj: tdata.asm \
  315. comsw.asm \
  316. comseg.asm \
  317. $(inc)\dirent.inc \
  318. $(cinc)\curdir.inc \
  319. $(inc)\error.inc \
  320. ifequ.asm \
  321. comequ.asm \
  322. $(inc)\sysmsg.inc \
  323. $(inc)\versiona.inc \
  324. $(DEST)\command.ctl \
  325. $(inc)\msgdcl.inc \
  326. $(inc)\msgserv.asm \
  327. tranmsg.asm
  328. $(DEST)\tenv.obj: tenv.asm \
  329. comsw.asm \
  330. $(inc)\dossym.inc \
  331. $(inc)\syscall.inc \
  332. $(inc)\dbcs.sw \
  333. $(inc)\dosmac.inc \
  334. $(inc)\versiona.inc \
  335. $(inc)\buffer.inc \
  336. $(inc)\dirent.inc \
  337. $(inc)\error.inc \
  338. $(cinc)\curdir.inc \
  339. $(inc)\arena.inc \
  340. comseg.asm \
  341. comequ.asm \
  342. $(inc)\doscntry.inc
  343. $(DEST)\tenv2.obj: tenv2.asm \
  344. comsw.asm \
  345. $(inc)\dossym.inc \
  346. $(inc)\syscall.inc \
  347. $(inc)\dbcs.sw \
  348. $(inc)\dosmac.inc \
  349. $(inc)\versiona.inc \
  350. $(inc)\buffer.inc \
  351. $(inc)\dirent.inc \
  352. $(inc)\error.inc \
  353. $(cinc)\curdir.inc \
  354. $(inc)\find.inc \
  355. comseg.asm \
  356. comequ.asm
  357. $(DEST)\tfor.obj: tfor.asm \
  358. comsw.asm \
  359. $(inc)\dossym.inc \
  360. $(inc)\syscall.inc \
  361. $(inc)\dbcs.sw \
  362. $(inc)\dosmac.inc \
  363. $(inc)\versiona.inc \
  364. $(inc)\buffer.inc \
  365. $(inc)\dirent.inc \
  366. $(inc)\error.inc \
  367. $(cinc)\curdir.inc \
  368. $(inc)\find.inc \
  369. $(inc)\devsym.inc \
  370. comseg.asm \
  371. comequ.asm \
  372. fordata.asm
  373. $(DEST)\tmisc1.obj: tmisc1.asm \
  374. comsw.asm \
  375. $(inc)\dossym.inc \
  376. $(inc)\syscall.inc \
  377. $(inc)\dbcs.sw \
  378. $(inc)\dosmac.inc \
  379. $(inc)\versiona.inc \
  380. $(inc)\buffer.inc \
  381. $(inc)\dirent.inc \
  382. $(inc)\error.inc \
  383. $(cinc)\curdir.inc \
  384. comseg.asm \
  385. comequ.asm
  386. $(DEST)\tmisc2.obj: tmisc2.asm \
  387. comsw.asm \
  388. $(inc)\dossym.inc \
  389. $(inc)\syscall.inc \
  390. $(inc)\dbcs.sw \
  391. $(inc)\dosmac.inc \
  392. $(inc)\versiona.inc \
  393. $(inc)\buffer.inc \
  394. $(inc)\dirent.inc \
  395. $(inc)\error.inc \
  396. $(inc)\pdb.inc \
  397. $(inc)\sf.inc \
  398. $(inc)\ioctl.inc \
  399. $(cinc)\curdir.inc \
  400. comseg.asm \
  401. comequ.asm
  402. $(DEST)\tparse.obj: tparse.asm \
  403. comsw.asm \
  404. comseg.asm \
  405. $(inc)\parse.asm \
  406. $(inc)\psdata.inc
  407. $(DEST)\tpipe.obj: tpipe.asm \
  408. comsw.asm \
  409. $(inc)\dossym.inc \
  410. $(inc)\syscall.inc \
  411. $(inc)\dbcs.sw \
  412. $(inc)\dosmac.inc \
  413. $(inc)\versiona.inc \
  414. $(inc)\buffer.inc \
  415. $(inc)\dirent.inc \
  416. $(inc)\error.inc \
  417. $(cinc)\curdir.inc \
  418. $(inc)\pdb.inc \
  419. comseg.asm \
  420. comequ.asm
  421. $(DEST)\tprintf.obj: tprintf.asm \
  422. comsw.asm \
  423. $(inc)\dosmac.inc \
  424. comseg.asm \
  425. comequ.asm \
  426. $(cinc)\curdir.inc \
  427. $(inc)\sysmsg.inc \
  428. $(inc)\versiona.inc \
  429. $(DEST)\command.ctl \
  430. $(inc)\msgdcl.inc \
  431. $(inc)\msgserv.asm
  432. $(DEST)\tspc.obj: tspc.asm \
  433. comsw.asm \
  434. $(inc)\dossym.inc \
  435. $(inc)\find.inc \
  436. $(inc)\dbcs.sw \
  437. $(inc)\dosmac.inc \
  438. $(inc)\versiona.inc \
  439. $(inc)\buffer.inc \
  440. $(inc)\dirent.inc \
  441. $(inc)\error.inc \
  442. $(cinc)\curdir.inc \
  443. $(inc)\intnat.inc \
  444. comequ.asm \
  445. comseg.asm
  446. $(DEST)\tucode.obj: tucode.asm \
  447. $(inc)\dossym.inc \
  448. $(inc)\syscall.inc \
  449. $(inc)\dbcs.sw \
  450. $(inc)\dosmac.inc \
  451. $(inc)\versiona.inc \
  452. $(inc)\buffer.inc \
  453. $(inc)\dirent.inc \
  454. $(inc)\error.inc \
  455. $(cinc)\curdir.inc \
  456. comsw.asm \
  457. comseg.asm \
  458. comequ.asm
  459. $(DEST)\uinit.obj: uinit.asm \
  460. comsw.asm \
  461. comseg.asm \
  462. ifequ.asm \
  463. $(msg)\comimsg.inc
  464. $(DEST)\loadhi.obj: loadhi.asm \
  465. comseg.asm \
  466. comequ.asm \
  467. $(inc)\dossym.inc \
  468. $(inc)\syscall.inc \
  469. $(inc)\arena.inc
  470. $(DEST)\command.exc: \
  471. $(DEST)\command1.obj $(DEST)\tenv2.obj \
  472. $(DEST)\command2.obj $(DEST)\tmisc1.obj \
  473. $(DEST)\rucode.obj $(DEST)\tmisc2.obj \
  474. $(DEST)\rdata.obj $(DEST)\tpipe.obj \
  475. $(DEST)\init.obj $(DEST)\parse2.obj \
  476. $(DEST)\iparse.obj $(DEST)\path1.obj \
  477. $(DEST)\uinit.obj $(DEST)\path2.obj \
  478. $(DEST)\tcode.obj $(DEST)\tucode.obj \
  479. $(DEST)\tbatch.obj $(DEST)\copy.obj \
  480. $(DEST)\tbatch2.obj $(DEST)\copypr1.obj \
  481. $(DEST)\tfor.obj $(DEST)\copypr2.obj \
  482. $(DEST)\dir.obj $(DEST)\cparse.obj \
  483. $(DEST)\tcmd1b.obj $(DEST)\tparse.obj \
  484. $(DEST)\tcmd2a.obj $(DEST)\tprintf.obj \
  485. $(DEST)\tcmd2b.obj $(DEST)\tdata.obj \
  486. $(DEST)\tenv.obj $(DEST)\tspc.obj \
  487. $(DEST)\stub.obj $(DEST)\loadhi.obj
  488. @echo $(DEST)\command1.obj + >$(DEST)\tmp.lnk
  489. @echo $(DEST)\command2.obj + >>$(DEST)\tmp.lnk
  490. @echo $(DEST)\rucode.obj + >>$(DEST)\tmp.lnk
  491. @echo $(DEST)\stub.obj + >>$(DEST)\tmp.lnk
  492. @echo $(DEST)\rdata.obj + >>$(DEST)\tmp.lnk
  493. @echo $(DEST)\init.obj + >>$(DEST)\tmp.lnk
  494. @echo $(DEST)\iparse.obj + >>$(DEST)\tmp.lnk
  495. @echo $(DEST)\uinit.obj + >>$(DEST)\tmp.lnk
  496. @echo $(DEST)\tcode.obj + >>$(DEST)\tmp.lnk
  497. @echo $(DEST)\tbatch.obj + >>$(DEST)\tmp.lnk
  498. @echo $(DEST)\tbatch2.obj + >>$(DEST)\tmp.lnk
  499. @echo $(DEST)\tfor.obj + >>$(DEST)\tmp.lnk
  500. @echo $(DEST)\dir.obj + >>$(DEST)\tmp.lnk
  501. @echo $(DEST)\tcmd1b.obj + >>$(DEST)\tmp.lnk
  502. @echo $(DEST)\tcmd2a.obj + >>$(DEST)\tmp.lnk
  503. @echo $(DEST)\tcmd2b.obj + >>$(DEST)\tmp.lnk
  504. @echo $(DEST)\tenv.obj + >>$(DEST)\tmp.lnk
  505. @echo $(DEST)\tenv2.obj + >>$(DEST)\tmp.lnk
  506. @echo $(DEST)\tmisc1.obj + >>$(DEST)\tmp.lnk
  507. @echo $(DEST)\tmisc2.obj + >>$(DEST)\tmp.lnk
  508. @echo $(DEST)\tpipe.obj + >>$(DEST)\tmp.lnk
  509. @echo $(DEST)\parse2.obj + >>$(DEST)\tmp.lnk
  510. @echo $(DEST)\path1.obj + >>$(DEST)\tmp.lnk
  511. @echo $(DEST)\path2.obj + >>$(DEST)\tmp.lnk
  512. @echo $(DEST)\tucode.obj + >>$(DEST)\tmp.lnk
  513. @echo $(DEST)\copy.obj + >>$(DEST)\tmp.lnk
  514. @echo $(DEST)\copypr1.obj + >>$(DEST)\tmp.lnk
  515. @echo $(DEST)\copypr2.obj + >>$(DEST)\tmp.lnk
  516. @echo $(DEST)\cparse.obj + >>$(DEST)\tmp.lnk
  517. @echo $(DEST)\tparse.obj + >>$(DEST)\tmp.lnk
  518. @echo $(DEST)\tprintf.obj + >>$(DEST)\tmp.lnk
  519. @echo $(DEST)\loadhi.obj + >>$(DEST)\tmp.lnk
  520. @echo $(DEST)\tdata.obj + >>$(DEST)\tmp.lnk
  521. @echo $(DEST)\tspc.obj, >>$(DEST)\tmp.lnk
  522. @echo $(DEST)\command.exc,$(DEST)\command.map; >>$(DEST)\tmp.lnk
  523. link16 $(link_opts) @$(DEST)\tmp.lnk
  524. erase $(DEST)\tmp.lnk
  525. $(target): $(DEST)\command.exc