Source code of Windows XP (NT5)
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.

807 lines
20 KiB

  1. ##############################################################################
  2. #### ####
  3. #### Microsoft Windows 3.0 WRITE make file ####
  4. #### For use with the MS-DOS version of the UNIX make utility ####
  5. #### ####
  6. ##############################################################################
  7. !INCLUDE ..\makefile.inc
  8. !ifndef LANGUAGE
  9. WINLIB=..\lib
  10. INCLUDE=-I..\inc -I..\..\inc -I$(_NTBINDIR)\public\sdk\inc
  11. #International mods
  12. # NOTE: INTL_SRC, INTL_EXE and LANG are external macros set by international
  13. !IFNDEF LANG
  14. RES_DIR=.\messages\usa
  15. !IFDEF DBCS
  16. RES_DIR=.\messages\$(DBCS)
  17. !ENDIF
  18. !ELSE
  19. RES_DIR=$(INTL_SRC)\$(LANG)\apps\write
  20. EXE_DIR=$(INTL_EXE)
  21. !ENDIF
  22. APP = write
  23. DEBUGDEF =
  24. !if "$(NTDEBUG)"!="" && "$(NTDEBUG)"!="retail" && "$(NTDEBUG)" != "ntsdnodbg"
  25. CDEBUG = /Zd
  26. ADEBUG = -Zd
  27. LDEBUG = /LI
  28. !ENDIF
  29. !ifdef OS2
  30. CFLAGS = /AM /G2sw /Os /Zpe /PLM /DOS2 $(INCLUDE)
  31. DFLAGS =
  32. LFLAGS = /ALIGN:16 /Map /NOD
  33. AFLAGS = -Mx $(INCLUDE)
  34. RCFLAGS = -DOS2 $(INCLUDE)
  35. !else
  36. !ifdef CVW
  37. CFLAGS = /AM /G2sw /Odi /Zipe /W3 /PLM /DWIN31 $(INCLUDE)
  38. LFLAGS = /ALIGN:16 /Map /NOD
  39. AFLAGS = -Mx -Zi $(INCLUDE)
  40. !else
  41. CFLAGS = /AM /G2sw /Os /Zpe /PLM /DWIN31 $(INCLUDE) $(CDEBUG)
  42. LFLAGS = /ALIGN:16 /MAP /NOD $(LDEBUG)
  43. AFLAGS = -Mx $(INCLUDE) $(ADEBUG)
  44. !endif
  45. DFLAGS =
  46. RCFLAGS = $(INCLUDE)
  47. !endif
  48. # To make a debug version, you can set this variable from the command line:
  49. #
  50. # MAKE "DFLAGS=-DDEBUG -Zid" = turns on general debug code/Codeview
  51. #
  52. # Additional parameters/defines that can be used:
  53. #
  54. # -DCKSM = enables document checksum test code
  55. # -DDFONT = enables font stats and info dump
  56. # -DDFILE = enables file read/write info dump
  57. # -DDPRINT = enables print info dump
  58. # -DDDISP = enables any display tests we might add
  59. # -DBEMG = ?
  60. # -DDFLI = enables FormatLine debug info
  61. # (only when form1.c used rather than format.asm)
  62. # -DPRDRVTEST = enables some diagnostic code to test character
  63. # widths returned by the printer
  64. # -DDINPUT = enables diagnostic code in mouse/keyboard
  65. # input areas
  66. # -DDCLIP = enables clipboard measurement diag output
  67. # -DDMARGINS =
  68. # -DDIAG = turns on comm. port diagnostic output
  69. # [for use with Diag() macro]
  70. #
  71. Res = write.ico mwlores.cur mwhires.cur pmscur.cur
  72. ResH = menudefs.h dlgdefs.h str.h
  73. ResB = cgabtns.bmp egabtns.bmp vgabtns.bmp 8514btns.bmp \
  74. cgamarks.bmp egamarks.bmp vgamarks.bmp 8514mrks.bmp
  75. OBJ1 = addprm.obj cache.obj chngwin.obj clipbord.obj \
  76. clipbrd2.obj clipdisp.obj cmd.obj createww.obj curskeys.obj \
  77. debug.obj diaalert.obj printdlg.obj diadiv.obj diapara.obj \
  78. diarepag.obj diasubs.obj disp.obj doc.obj doprm.obj \
  79. OBJ2 = doslib.obj edit.obj editpgtb.obj \
  80. fetch.obj file.obj fileres.obj fileutil.obj fontdlg.obj fontenum.obj \
  81. fontutil.obj format.obj \
  82. format2.obj heapmain.obj heaprare.obj jumppage.obj \
  83. OBJ3 = initmmw.obj initwin.obj insert.obj insert2.obj insertco.obj \
  84. lib.obj loadfont.obj loadfnt2.obj mainloop.obj \
  85. mdoc.obj menu.obj mglobals.obj mmw.obj \
  86. mouse.obj open.obj \
  87. pageinfo.obj pictdrag.obj picture.obj picture2.obj print.obj \
  88. OBJ4 = print2.obj print3.obj quit.obj \
  89. rare.obj ruler.obj ruler2.obj ruler3.obj running.obj \
  90. screen.obj scrnchng.obj scrollhz.obj scrollvt.obj search.obj \
  91. select.obj select2.obj selectsp.obj \
  92. OBJ5 = transfer.obj trans2.obj trans3.obj trans4.obj transbuf.obj \
  93. undo.obj util.obj util2.obj wwactde.obj \
  94. OBJ6 = obj.obj obj2.obj obj3.obj objreg.obj commdlg.obj objpsp.obj objmini.obj
  95. !IFDEF DBCS
  96. # use FORM1.C(need to link with HELP.C) instead of FORMAT.ASM
  97. OBJ_DBCS=help.obj
  98. !ENDIF
  99. .asm.obj:
  100. $(ASM) $(AFLAGS) $(DEBUGDEF) $*.asm;
  101. .c.obj:
  102. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) $*.c
  103. #International mods
  104. !IFNDEF LANG
  105. all: write.exe
  106. !ELSE
  107. all: write.$(LANG)
  108. !ENDIF
  109. clean: cleanup all
  110. cleanup:
  111. del *.res
  112. del *.rc
  113. del *.rcv
  114. del *.dlg
  115. del *.obj
  116. del *.sym
  117. del *.map
  118. !IFDEF DBCS
  119. $(APP).exe: $(APP).res $(OBJ_DBCS) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(APP).def $(APP).lnk
  120. !ELSE
  121. $(APP).exe: $(APP).res $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(APP).def $(APP).lnk
  122. !ENDIF
  123. #$(APP).exe: $(APP).res $(OBJ6) $(APP).def $(APP).lnk
  124. # ilink /E "link @$(APP).lnk;rc $(RCFLAGS) $(APP).res $(APP).exe" $(APP)
  125. $(LINK) @$(APP).lnk
  126. $(RC) $(RCFLAGS) $(APP).res $(APP).exe
  127. !ifndef CVW
  128. mapsym $(APP)
  129. copy write.exe write16.exe
  130. copy write.map write16.map
  131. copy write.sym write16.sym
  132. echo Check in write16.exe write16.map write16.sym in mvdm\bin86
  133. !endif
  134. ! ifdef OS2
  135. exehdr /newfiles notepad.exe
  136. ! endif
  137. doslib.obj: doslib.asm
  138. !IFDEF DBCS
  139. format.obj: d_form1.c
  140. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) -Foformat.obj d_form1.c
  141. !ELSE
  142. format.obj: format.asm
  143. !ENDIF
  144. lib.obj: lib.asm
  145. msseqds.obj: msseqds.asm
  146. aaa.obj: aaa.c
  147. addprm.obj: addprm.c
  148. cache.obj: cache.c
  149. chlook.obj: chlook.c
  150. chngwin.obj: chngwin.c
  151. clipbord.obj: clipbord.c
  152. clipbrd2.obj: clipbrd2.c
  153. clipdisp.obj: clipdisp.c
  154. cmd.obj: cmd.c
  155. createww.obj: createww.c
  156. curskeys.obj: curskeys.c
  157. debug.obj: debug.c
  158. diaalert.obj: diaalert.c
  159. printdlg.obj: printdlg.c
  160. diadiv.obj: diadiv.c
  161. diapara.obj: diapara.c
  162. diarepag.obj: diarepag.c
  163. diasubs.obj: diasubs.c
  164. !IFDEF DBCS
  165. disp.obj: d_disp.c
  166. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF)-Fodisp.obj d_disp.c
  167. !ELSE
  168. disp.obj: disp.c
  169. !ENDIF
  170. doc.obj: doc.c
  171. doprm.obj: doprm.c
  172. edit.obj: edit.c
  173. editftn.obj: editftn.c
  174. editpgtb.obj: editpgtb.c
  175. editsect.obj: editsect.c
  176. fetch.obj: fetch.c
  177. file.obj: file.c
  178. fileres.obj: fileres.c
  179. fileutil.obj: fileutil.c
  180. fontdlg.obj: fontdlg.c
  181. fontenum.obj: fontenum.c
  182. fontutil.obj: fontutil.c
  183. form1.obj: form1.c
  184. format2.obj: format2.c
  185. heapinit.obj: heapinit.c
  186. heapmain.obj: heapmain.c
  187. heaprare.obj: heaprare.c
  188. help.obj: help.c
  189. initmmw.obj: initmmw.c
  190. initwin.obj: initwin.c
  191. insert.obj: insert.c
  192. insert2.obj: insert2.c
  193. insertco.obj: insertco.c
  194. jumppage.obj: jumppage.c
  195. loadfnt2.obj: loadfnt2.c
  196. loadfont.obj: loadfont.c
  197. mainloop.obj: mainloop.c
  198. mdoc.obj: mdoc.c
  199. menu.obj: menu.c
  200. mglobals.obj: mglobals.c
  201. mmw.obj: mmw.c
  202. mouse.obj: mouse.c
  203. open.obj: open.c
  204. ole.obj: ole.c
  205. pageinfo.obj: pageinfo.c
  206. pictdrag.obj: pictdrag.c
  207. picture.obj: picture.c
  208. picture2.obj: picture2.c
  209. print.obj: print.c
  210. print2.obj: print2.c
  211. print3.obj: print3.c
  212. quit.obj: quit.c
  213. rare.obj: rare.c
  214. ruler.obj: ruler.c
  215. ruler2.obj: ruler2.c
  216. ruler3.obj: ruler3.c
  217. running.obj: running.c
  218. screen.obj: screen.c
  219. scrnchng.obj: scrnchng.c
  220. scrollhz.obj: scrollhz.c
  221. scrollvt.obj: scrollvt.c
  222. search.obj: search.c
  223. select.obj: select.c
  224. !IFDEF DBCS
  225. select2.obj: d_selec2.c
  226. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF)-Foselect2.obj d_selec2.c
  227. !ELSE
  228. select2.obj: select2.c
  229. !ENDIF
  230. selectsp.obj: selectsp.c
  231. trans2.obj: trans2.c
  232. trans3.obj: trans3.c
  233. trans4.obj: trans4.c
  234. transbuf.obj: transbuf.c
  235. transfer.obj: transfer.c
  236. undo.obj: undo.c
  237. util.obj: util.c
  238. util2.obj: util2.c
  239. wwactde.obj: wwactde.c
  240. #International mods
  241. !IFNDEF LANG
  242. $(APP).rc: $(RES_DIR)\$(APP).rc
  243. copy $(RES_DIR)\$(APP).rc
  244. $(APP).rcv: $(RES_DIR)\$(APP).rcv
  245. copy $(RES_DIR)\$(APP).rcv
  246. $(APP).dlg: $(RES_DIR)\$(APP).dlg
  247. copy $(RES_DIR)\$(APP).dlg
  248. ole.dlg: $(RES_DIR)\ole.dlg
  249. copy $(RES_DIR)\ole.dlg
  250. $(APP).res: $(APP).rc $(APP).rcv $(APP).dlg ..\inc\common.ver ..\inc\version.h ..\inc\ver.h ole.dlg $(Res) $(ResH) $(ResB)
  251. $(RC) $(RCFLAGS) -r $(APP).rc
  252. !ELSE
  253. $(APP).res: $(RES_DIR)\$(APP).res
  254. copy $(RES_DIR)\$(APP).res
  255. !ENDIF
  256. $(APP).lnk: MAKEFILE $(APP).sed
  257. sed -n -f $(APP).sed MAKEFILE > $(APP).lnk
  258. !IFDEF DBCS
  259. sed "s/format\.obj/format\.obj help\.obj/" $(APP).lnk > $(DBCS).lnk
  260. copy $(DBCS).lnk $(APP).lnk
  261. del $(DBCS).lnk
  262. !ENDIF
  263. echo $(APP) $(LFLAGS) >> $(APP).lnk
  264. echo $(APP) >> $(APP).lnk
  265. !IFDEF DBCS
  266. echo $(WINLIB)\winnls.lib $(WINLIB)\mlibcew.lib $(WINLIB)\libw.lib $(WINLIB)\olecli.lib $(WINLIB)\commdlg.lib $(WINLIB)\shell.lib >> $(APP).lnk
  267. !ELSE
  268. echo $(WINLIB)\mlibcew.lib $(WINLIB)\libw.lib $(WINLIB)\olecli.lib $(WINLIB)\commdlg.lib $(WINLIB)\shell.lib >> $(APP).lnk
  269. !ENDIF
  270. echo $(APP).def >> $(APP).lnk
  271. #International mods
  272. clean: cleanup all
  273. cleanup:
  274. del *.res
  275. del *.rc
  276. del *.dlg
  277. $(APP).$(LANG): $(APP).res ..\inc\common.ver ..\inc\version.h ..\inc\ver.h
  278. copy $(EXE_DIR)\$(APP).exe $(APP).$(LANG)
  279. $(RC) -t $(RCFLAGS) $(APP).res $(APP).$(LANG)
  280. copy $(app).$(LANG) write16.exe
  281. copy write.sym write16.sym
  282. echo Check in write16.exe write16.map write16.sym in mvdm\bin86
  283. !else
  284. ##############################################################################
  285. #### ####
  286. #### Microsoft Windows NT 4.0 FE WRITE make file ####
  287. #### For use with the MS-DOS version of the UNIX make utility ####
  288. #### ####
  289. ##############################################################################
  290. !IF "$(LANGUAGE)" == "JPN"
  291. DBCS=JAPAN
  292. !ELSEIF "$(LANGUAGE)" == "CHT"
  293. DBCS=TAIWAN
  294. !ELSEIF "$(LANGUAGE)" == "CHS"
  295. DBCS=PRC
  296. !ELSEIF "$(LANGUAGE)" == "CHP"
  297. DBCS=PRC
  298. !ELSEIF "$(LANGUAGE)" == "KOR"
  299. DBCS=KOREA
  300. !ENDIF
  301. WINLIB=..\..\lib
  302. #International mods
  303. # NOTE: INTL_SRC, INTL_EXE and LANG are external macros set by international
  304. RES_DIR=.\messages\usa
  305. DEST=$(LANGUAGE)
  306. APP = $(DEST)\write
  307. DEBUGDEF =
  308. ########## Path definition so we find 16 bit tools ##########
  309. # Also works around stupid bug in RC 3.1 that doesn't allow rcpp.err to be
  310. # in a directory that is greater than 128 chars down the path, even if
  311. # rc 3.1 is running as an OS/2 app.
  312. PATH = $(_NTBINDIR)\private\tools16;$(PATH)
  313. !if "$(NTDEBUG)"!="" && "$(NTDEBUG)"!="retail" && "$(NTDEBUG)" != "ntsdnodbg"
  314. CDEBUG = /Zd
  315. ADEBUG = -Zd
  316. LDEBUG = /LI
  317. !ENDIF
  318. !ifdef CVW
  319. CFLAGS = /AM /G2sw /Odi /Zipe /W3 /PLM /DWIN31
  320. LFLAGS = /ALIGN:16 /Map /NOD
  321. AFLAGS = -Mx -Zi
  322. !else
  323. CFLAGS = /AM /G2sw /Os /Zpe /PLM /DWIN31 $(CDEBUG)
  324. LFLAGS = /ALIGN:16 /MAP /NOD $(LDEBUG)
  325. AFLAGS = -Mx $(ADEBUG)
  326. !endif
  327. DFLAGS =
  328. RCFLAGS = -I.. -I..\..\inc -I..\..\..\inc -DDBCS -D$(DBCS)
  329. CFLAGS =$(CFLAGS) -DDBCS -DDBCS_IME -D$(DBCS) -DDBCS_WIFE -DDBCS_VERT
  330. # To make a debug version, you can set this variable from the command line:
  331. #
  332. # MAKE "DFLAGS=-DDEBUG -Zid" = turns on general debug code/Codeview
  333. #
  334. # Additional parameters/defines that can be used:
  335. #
  336. # -DCKSM = enables document checksum test code
  337. # -DDFONT = enables font stats and info dump
  338. # -DDFILE = enables file read/write info dump
  339. # -DDPRINT = enables print info dump
  340. # -DDDISP = enables any display tests we might add
  341. # -DBEMG = ?
  342. # -DDFLI = enables FormatLine debug info
  343. # (only when form1.c used rather than format.asm)
  344. # -DPRDRVTEST = enables some diagnostic code to test character
  345. # widths returned by the printer
  346. # -DDINPUT = enables diagnostic code in mouse/keyboard
  347. # input areas
  348. # -DDCLIP = enables clipboard measurement diag output
  349. # -DDMARGINS =
  350. # -DDIAG = turns on comm. port diagnostic output
  351. # [for use with Diag() macro]
  352. #
  353. Res = write.ico mwlores.cur mwhires.cur pmscur.cur
  354. ResH = menudefs.h dlgdefs.h str.h
  355. ResB = cgabtns.bmp egabtns.bmp vgabtns.bmp 8514btns.bmp \
  356. cgamarks.bmp egamarks.bmp vgamarks.bmp 8514mrks.bmp
  357. Obj1 = $(DEST)\addprm.obj $(DEST)\cache.obj $(DEST)\chngwin.obj \
  358. $(DEST)\clipbord.obj \
  359. $(DEST)\clipbrd2.obj $(DEST)\clipdisp.obj $(DEST)\cmd.obj \
  360. $(DEST)\createww.obj $(DEST)\curskeys.obj \
  361. $(DEST)\debug.obj $(DEST)\diaalert.obj $(DEST)\printdlg.obj \
  362. $(DEST)\diadiv.obj $(DEST)\diapara.obj \
  363. $(DEST)\diarepag.obj $(DEST)\diasubs.obj $(DEST)\disp.obj \
  364. $(DEST)\doc.obj $(DEST)\doprm.obj \
  365. Obj2 = $(DEST)\doslib.obj $(DEST)\edit.obj $(DEST)\editpgtb.obj \
  366. $(DEST)\fetch.obj $(DEST)\file.obj $(DEST)\fileres.obj \
  367. $(DEST)\fileutil.obj $(DEST)\fontdlg.obj $(DEST)\fontenum.obj \
  368. $(DEST)\fontutil.obj $(DEST)\format.obj \
  369. $(DEST)\format2.obj $(DEST)\heapmain.obj $(DEST)\heaprare.obj \
  370. $(DEST)\jumppage.obj \
  371. Obj3 = $(DEST)\initmmw.obj $(DEST)\initwin.obj $(DEST)\insert.obj \
  372. $(DEST)\insert2.obj $(DEST)\insertco.obj \
  373. $(DEST)\lib.obj $(DEST)\loadfont.obj $(DEST)\loadfnt2.obj \
  374. $(DEST)\mainloop.obj \
  375. $(DEST)\mdoc.obj $(DEST)\menu.obj $(DEST)\mglobals.obj $(DEST)\mmw.obj \
  376. $(DEST)\mouse.obj $(DEST)\open.obj \
  377. $(DEST)\pageinfo.obj $(DEST)\pictdrag.obj $(DEST)\picture.obj \
  378. $(DEST)\picture2.obj $(DEST)\print.obj \
  379. Obj4 = $(DEST)\print2.obj $(DEST)\print3.obj $(DEST)\quit.obj \
  380. $(DEST)\rare.obj $(DEST)\ruler.obj $(DEST)\ruler2.obj \
  381. $(DEST)\ruler3.obj $(DEST)\running.obj \
  382. $(DEST)\screen.obj $(DEST)\scrnchng.obj $(DEST)\scrollhz.obj \
  383. $(DEST)\scrollvt.obj $(DEST)\search.obj \
  384. $(DEST)\select.obj $(DEST)\select2.obj $(DEST)\selectsp.obj \
  385. Obj5 = $(DEST)\transfer.obj $(DEST)\trans2.obj $(DEST)\trans3.obj \
  386. $(DEST)\trans4.obj $(DEST)\transbuf.obj \
  387. $(DEST)\undo.obj $(DEST)\util.obj $(DEST)\util2.obj \
  388. $(DEST)\wwactde.obj \
  389. Obj6 = $(DEST)\obj.obj $(DEST)\obj2.obj $(DEST)\obj3.obj $(DEST)\objreg.obj \
  390. $(DEST)\commdlg.obj $(DEST)\objpsp.obj $(DEST)\objmini.obj
  391. # use FORM1.C(need to link with HELP.C) instead of FORMAT.ASM
  392. Obj_DBCS=$(DEST)\help.obj
  393. .asm.obj:
  394. $(ASM) $(AFLAGS) $(DEBUGDEF) $*.asm;
  395. .asm{$(DEST)\}.obj:
  396. $(ASM) $(AFLAGS) $(DEBUGDEF) $<,$(DEST)\;
  397. .c.obj:
  398. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) $*.c
  399. .c{$(DEST)\}.obj:
  400. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) -Fo$(DEST)\ $<
  401. #International mods
  402. all: makedir all_wo_inc
  403. makedir:
  404. @-if not exist $(DEST) md $(DEST)
  405. all_wo_inc:
  406. nmake INCLUDE=..\inc;..\..\inc $(APP).exe
  407. clean: cleanup all
  408. cleanup:
  409. if exist $(DEST)\*.def del $(DEST)\*.def
  410. if exist $(DEST)\*.lnk del $(DEST)\*.lnk
  411. if exist $(DEST)\*.res del $(DEST)\*.res
  412. if exist $(DEST)\*.rc del $(DEST)\*.rc
  413. if exist $(DEST)\*.rcv del $(DEST)\*.rcv
  414. if exist $(DEST)\*.dlg del $(DEST)\*.dlg
  415. if exist $(DEST)\*.obj del $(DEST)\*.obj
  416. if exist $(DEST)\*.exe del $(DEST)\*.exe
  417. if exist $(DEST)\*.sym del $(DEST)\*.sym
  418. if exist $(DEST)\*.map del $(DEST)\*.map
  419. $(APP).exe: $(APP).res $(Obj_DBCS) $(Obj1) $(Obj2) $(Obj3) $(Obj4) $(Obj5) $(Obj6) $(APP).def $(APP).lnk
  420. cd $(DEST)
  421. $(LINK) @write.lnk
  422. $(RC) $(RCFLAGS) write.res write.exe
  423. !ifndef CVW
  424. mapsym write
  425. copy write.exe write16.exe
  426. copy write.map write16.map
  427. copy write.sym write16.sym
  428. echo Check in write16.exe write16.map write16.sym in mvdm\bin86
  429. !endif
  430. cd ..
  431. $(DEST)\doslib.obj: doslib.asm
  432. $(DEST)\format.obj: d_form1.c
  433. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) -Fo$(DEST)\format.obj d_form1.c
  434. $(DEST)\lib.obj: lib.asm
  435. $(DEST)\msseqds.obj: msseqds.asm
  436. $(DEST)\aaa.obj: aaa.c
  437. $(DEST)\addprm.obj: addprm.c
  438. $(DEST)\cache.obj: cache.c
  439. $(DEST)\chlook.obj: chlook.c
  440. $(DEST)\chngwin.obj: chngwin.c
  441. $(DEST)\clipbord.obj: clipbord.c
  442. $(DEST)\clipbrd2.obj: clipbrd2.c
  443. $(DEST)\clipdisp.obj: clipdisp.c
  444. $(DEST)\cmd.obj: cmd.c
  445. $(DEST)\commdlg.obj: commdlg.c
  446. $(DEST)\createww.obj: createww.c
  447. $(DEST)\curskeys.obj: curskeys.c
  448. $(DEST)\debug.obj: debug.c
  449. $(DEST)\diaalert.obj: diaalert.c
  450. $(DEST)\printdlg.obj: printdlg.c
  451. $(DEST)\diadiv.obj: diadiv.c
  452. $(DEST)\diapara.obj: diapara.c
  453. $(DEST)\diarepag.obj: diarepag.c
  454. $(DEST)\diasubs.obj: diasubs.c
  455. $(DEST)\disp.obj: d_disp.c
  456. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF)-Fo$(DEST)\disp.obj d_disp.c
  457. $(DEST)\doc.obj: doc.c
  458. $(DEST)\doprm.obj: doprm.c
  459. $(DEST)\edit.obj: edit.c
  460. $(DEST)\editftn.obj: editftn.c
  461. $(DEST)\editpgtb.obj: editpgtb.c
  462. $(DEST)\editsect.obj: editsect.c
  463. $(DEST)\fetch.obj: fetch.c
  464. $(DEST)\file.obj: file.c
  465. $(DEST)\fileres.obj: fileres.c
  466. $(DEST)\fileutil.obj: fileutil.c
  467. $(DEST)\fontdlg.obj: fontdlg.c
  468. $(DEST)\fontenum.obj: fontenum.c
  469. $(DEST)\fontutil.obj: fontutil.c
  470. $(DEST)\form1.obj: form1.c
  471. $(DEST)\format2.obj: format2.c
  472. $(DEST)\heapinit.obj: heapinit.c
  473. $(DEST)\heapmain.obj: heapmain.c
  474. $(DEST)\heaprare.obj: heaprare.c
  475. $(DEST)\help.obj: help.c
  476. $(DEST)\initmmw.obj: initmmw.c
  477. $(DEST)\initwin.obj: initwin.c
  478. $(DEST)\insert.obj: insert.c
  479. $(DEST)\insert2.obj: insert2.c
  480. $(DEST)\insertco.obj: insertco.c
  481. $(DEST)\jumppage.obj: jumppage.c
  482. $(DEST)\loadfnt2.obj: loadfnt2.c
  483. $(DEST)\loadfont.obj: loadfont.c
  484. $(DEST)\mainloop.obj: mainloop.c
  485. $(DEST)\mdoc.obj: mdoc.c
  486. $(DEST)\menu.obj: menu.c
  487. $(DEST)\mglobals.obj: mglobals.c
  488. $(DEST)\mmw.obj: mmw.c
  489. $(DEST)\mouse.obj: mouse.c
  490. $(DEST)\obj.obj: obj.c
  491. $(DEST)\obj2.obj: obj2.c
  492. $(DEST)\obj3.obj: obj3.c
  493. $(DEST)\objmini.obj: objmini.asm
  494. $(DEST)\objpsp.obj: objpsp.c
  495. $(DEST)\objreg.obj: objreg.c
  496. $(DEST)\open.obj: open.c
  497. $(DEST)\ole.obj: ole.c
  498. $(DEST)\pageinfo.obj: pageinfo.c
  499. $(DEST)\pictdrag.obj: pictdrag.c
  500. $(DEST)\picture.obj: picture.c
  501. $(DEST)\picture2.obj: picture2.c
  502. $(DEST)\print.obj: print.c
  503. $(DEST)\print2.obj: print2.c
  504. $(DEST)\print3.obj: print3.c
  505. $(DEST)\quit.obj: quit.c
  506. $(DEST)\rare.obj: rare.c
  507. $(DEST)\ruler.obj: ruler.c
  508. $(DEST)\ruler2.obj: ruler2.c
  509. $(DEST)\ruler3.obj: ruler3.c
  510. $(DEST)\running.obj: running.c
  511. $(DEST)\screen.obj: screen.c
  512. $(DEST)\scrnchng.obj: scrnchng.c
  513. $(DEST)\scrollhz.obj: scrollhz.c
  514. $(DEST)\scrollvt.obj: scrollvt.c
  515. $(DEST)\search.obj: search.c
  516. $(DEST)\select.obj: select.c
  517. $(DEST)\select2.obj: d_selec2.c
  518. $(CL) -c $(CFLAGS) $(DFLAGS) $(DEBUGDEF) -Fo$(DEST)\select2.obj d_selec2.c
  519. $(DEST)\selectsp.obj: selectsp.c
  520. $(DEST)\trans2.obj: trans2.c
  521. $(DEST)\trans3.obj: trans3.c
  522. $(DEST)\trans4.obj: trans4.c
  523. $(DEST)\transbuf.obj: transbuf.c
  524. $(DEST)\transfer.obj: transfer.c
  525. $(DEST)\undo.obj: undo.c
  526. $(DEST)\util.obj: util.c
  527. $(DEST)\util2.obj: util2.c
  528. $(DEST)\wwactde.obj: wwactde.c
  529. #International mods
  530. $(APP).rc: $(RES_DIR)\write.rc
  531. copy $(RES_DIR)\write.rc $(DEST)
  532. $(APP).rcv: $(RES_DIR)\write.rcv
  533. copy $(RES_DIR)\write.rcv $(DEST)
  534. $(APP).dlg: $(RES_DIR)\write.dlg
  535. copy $(RES_DIR)\write.dlg $(DEST)
  536. ole.dlg: $(RES_DIR)\ole.dlg
  537. copy $(RES_DIR)\ole.dlg $(DEST)
  538. $(APP).res: $(APP).rc $(APP).rcv $(APP).dlg ..\inc\common.ver ..\inc\version.h ..\inc\ver.h ole.dlg $(Res) $(ResH) $(ResB)
  539. cd $(DEST)
  540. $(RC) $(RCFLAGS) -r write.rc
  541. cd ..
  542. $(APP).lnk: MAKEFILE write.sed
  543. sed -n -f write.sed MAKEFILE > $(APP).lnk
  544. !IFDEF DBCS
  545. sed "s/format\.obj/format\.obj help\.obj/" $(APP).lnk > $(DBCS).lnk
  546. copy $(DBCS).lnk $(APP).lnk
  547. del $(DBCS).lnk
  548. !ENDIF
  549. echo write $(LFLAGS) >> $(APP).lnk
  550. echo write >> $(APP).lnk
  551. echo $(WINLIB)\winnls.lib $(WINLIB)\mlibcew.lib $(WINLIB)\libw.lib $(WINLIB)\olecli.lib $(WINLIB)\commdlg.lib $(WINLIB)\shell.lib >> $(APP).lnk
  552. echo write.def >> $(APP).lnk
  553. $(APP).def: write.def
  554. copy write.def $(DEST)
  555. !endif
  556.