]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.vc
Added $(WAITFLAG) so other shells can use appropriate flag
[wxWidgets.git] / src / msw / makefile.vc
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1997, Julian Smart
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
11 # Arguments:
12 #
13 # FINAL=1 argument to nmake to build version with no debugging info.
14 # dll builds a library (wxdll.lib) suitable for creating DLLs
15 #
16 !include <..\makevc.env>
17
18 THISDIR=$(WXWIN)\src\msw
19
20 !if "$(WXMAKINGDLL)" == "1"
21 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
22 DUMMYOBJ=$D\dummydll.obj
23 !else
24 LIBTARGET=$(WXLIB)
25 DUMMYOBJ=$D\dummy.obj
26 !endif
27
28 # Please set these according to the settings in setup.h, so we can include
29 # the appropriate libraries in wx.lib
30
31 # This one overrides the others, to be consistent with the settings in setup.h
32 MINIMAL_WXWINDOWS_SETUP=0
33
34 PERIPH_LIBS=
35 PERIPH_TARGET=
36 PERIPH_CLEAN_TARGET=
37
38 # These are absolute paths, so that the compiler
39 # generates correct __FILE__ symbols for debugging.
40 # Otherwise you don't be able to double-click on a memory
41 # error to load that file.
42 GENDIR=$(WXDIR)\src\generic
43 COMMDIR=$(WXDIR)\src\common
44 OLEDIR=ole
45 MSWDIR=$(WXDIR)\src\msw
46 DOCDIR = $(WXDIR)\docs
47
48 {..\generic}.cpp{..\generic\$D}.obj:
49 cl @<<
50 $(CPPFLAGS) /Fo$@ /c /Tp $<
51 <<
52
53 {..\common}.cpp{..\common\$D}.obj:
54 cl @<<
55 $(CPPFLAGS) /Fo$@ /c /Tp $<
56 <<
57
58 {..\msw}.cpp{..\msw\$D}.obj:
59 cl @<<
60 $(CPPFLAGS) /Fo$@ /c /Tp $<
61 <<
62
63 {..\msw\ole}.cpp{..\msw\ole\$D}.obj:
64 cl @<<
65 $(CPPFLAGS) /Fo$@ /c /Tp $<
66 <<
67
68 GENERICOBJS= \
69 ..\generic\$D\choicdgg.obj \
70 ..\generic\$D\gridg.obj \
71 ..\generic\$D\laywin.obj \
72 ..\generic\$D\panelg.obj \
73 ..\generic\$D\prop.obj \
74 ..\generic\$D\propform.obj \
75 ..\generic\$D\proplist.obj \
76 ..\generic\$D\sashwin.obj \
77 ..\generic\$D\scrolwin.obj \
78 ..\generic\$D\splitter.obj \
79 ..\generic\$D\statusbr.obj \
80 ..\generic\$D\tabg.obj \
81 ..\generic\$D\textdlgg.obj
82
83 # ..\generic\$D\imaglist.obj \
84 # ..\generic\$D\treectrl.obj \
85 # ..\generic\$D\listctrl.obj \
86 # ..\generic\$D\notebook.obj \
87
88 # These are generic things that don't need to be compiled on MSW,
89 # but sometimes it's useful to do so for testing purposes.
90 NONESSENTIALOBJS= \
91 ..\generic\$D\printps.obj \
92 ..\generic\$D\prntdlgg.obj \
93 ..\generic\$D\msgdlgg.obj \
94 ..\generic\$D\helpxlp.obj \
95 ..\generic\$D\colrdlgg.obj \
96 ..\generic\$D\fontdlgg.obj
97
98 COMMONOBJS = \
99 ..\common\$D\cmndata.obj \
100 ..\common\$D\config.obj \
101 ..\common\$D\db.obj \
102 ..\common\$D\dbtable.obj \
103 ..\common\$D\docview.obj \
104 ..\common\$D\docmdi.obj \
105 ..\common\$D\dynarray.obj \
106 ..\common\$D\dynlib.obj \
107 ..\common\$D\event.obj \
108 ..\common\$D\file.obj \
109 ..\common\$D\filefn.obj \
110 ..\common\$D\fileconf.obj \
111 ..\common\$D\framecmn.obj \
112 ..\common\$D\ftp.obj \
113 ..\common\$D\gdicmn.obj \
114 ..\common\$D\image.obj \
115 ..\common\$D\imagjpeg.obj \
116 ..\common\$D\imagpng.obj \
117 ..\common\$D\imaggif.obj \
118 ..\common\$D\intl.obj \
119 ..\common\$D\ipcbase.obj \
120 ..\common\$D\helpbase.obj \
121 ..\common\$D\layout.obj \
122 ..\common\$D\log.obj \
123 ..\common\$D\memory.obj \
124 ..\common\$D\mimetype.obj \
125 ..\common\$D\module.obj \
126 ..\common\$D\odbc.obj \
127 ..\common\$D\object.obj \
128 ..\common\$D\prntbase.obj \
129 ..\common\$D\resource.obj \
130 ..\common\$D\tbarbase.obj \
131 ..\common\$D\tbarsmpl.obj \
132 ..\common\$D\textfile.obj \
133 ..\common\$D\timercmn.obj \
134 ..\common\$D\utilscmn.obj \
135 ..\common\$D\validate.obj \
136 ..\common\$D\valgen.obj \
137 ..\common\$D\valtext.obj \
138 ..\common\$D\date.obj \
139 ..\common\$D\hash.obj \
140 ..\common\$D\list.obj \
141 ..\common\$D\paper.obj \
142 ..\common\$D\string.obj \
143 ..\common\$D\socket.obj \
144 ..\common\$D\sckaddr.obj \
145 ..\common\$D\sckfile.obj \
146 ..\common\$D\sckipc.obj \
147 ..\common\$D\sckstrm.obj \
148 ..\common\$D\url.obj \
149 ..\common\$D\http.obj \
150 ..\common\$D\protocol.obj \
151 ..\common\$D\time.obj \
152 ..\common\$D\tokenzr.obj \
153 ..\common\$D\wxexpr.obj \
154 ..\common\$D\y_tab.obj \
155 ..\common\$D\extended.obj \
156 ..\common\$D\process.obj \
157 ..\common\$D\wfstream.obj \
158 ..\common\$D\mstream.obj \
159 ..\common\$D\zstream.obj \
160 ..\common\$D\stream.obj \
161 ..\common\$D\datstrm.obj \
162 ..\common\$D\objstrm.obj \
163 ..\common\$D\variant.obj \
164 ..\common\$D\wincmn.obj
165
166 MSWOBJS = \
167 ..\msw\$D\accel.obj \
168 ..\msw\$D\app.obj \
169 ..\msw\$D\bitmap.obj \
170 ..\msw\$D\bmpbuttn.obj \
171 ..\msw\$D\brush.obj \
172 ..\msw\$D\button.obj \
173 ..\msw\$D\checkbox.obj \
174 ..\msw\$D\checklst.obj \
175 ..\msw\$D\choice.obj \
176 ..\msw\$D\clipbrd.obj \
177 ..\msw\$D\colordlg.obj \
178 ..\msw\$D\colour.obj \
179 ..\msw\$D\combobox.obj \
180 ..\msw\$D\control.obj \
181 ..\msw\$D\curico.obj \
182 ..\msw\$D\cursor.obj \
183 ..\msw\$D\data.obj \
184 ..\msw\$D\dc.obj \
185 ..\msw\$D\dcmemory.obj \
186 ..\msw\$D\dcclient.obj \
187 ..\msw\$D\dcprint.obj \
188 ..\msw\$D\dcscreen.obj \
189 ..\msw\$D\dde.obj \
190 ..\msw\$D\dialog.obj \
191 ..\msw\$D\dib.obj \
192 ..\msw\$D\dibutils.obj \
193 ..\msw\$D\dirdlg.obj \
194 ..\msw\$D\dragimag.obj \
195 ..\msw\$D\filedlg.obj \
196 ..\msw\$D\font.obj \
197 ..\msw\$D\fontdlg.obj \
198 ..\msw\$D\frame.obj \
199 ..\msw\$D\gauge95.obj \
200 ..\msw\$D\gaugemsw.obj \
201 ..\msw\$D\gdiobj.obj \
202 ..\msw\$D\helpwin.obj \
203 ..\msw\$D\icon.obj \
204 ..\msw\$D\iniconf.obj \
205 ..\msw\$D\joystick.obj \
206 ..\msw\$D\imaglist.obj \
207 ..\msw\$D\listbox.obj \
208 ..\msw\$D\listctrl.obj \
209 ..\msw\$D\main.obj \
210 ..\msw\$D\mdi.obj \
211 ..\msw\$D\menu.obj \
212 ..\msw\$D\menuitem.obj \
213 ..\msw\$D\metafile.obj \
214 ..\msw\$D\minifram.obj \
215 ..\msw\$D\msgdlg.obj \
216 ..\msw\$D\nativdlg.obj \
217 ..\msw\$D\notebook.obj \
218 ..\msw\$D\ownerdrw.obj \
219 ..\msw\$D\palette.obj \
220 ..\msw\$D\pen.obj \
221 ..\msw\$D\penwin.obj \
222 ..\msw\$D\pnghand.obj \
223 ..\msw\$D\printdlg.obj \
224 ..\msw\$D\printwin.obj \
225 ..\msw\$D\radiobox.obj \
226 ..\msw\$D\radiobut.obj \
227 ..\msw\$D\region.obj \
228 ..\msw\$D\registry.obj \
229 ..\msw\$D\regconf.obj \
230 ..\msw\$D\scrolbar.obj \
231 ..\msw\$D\settings.obj \
232 ..\msw\$D\slidrmsw.obj \
233 ..\msw\$D\slider95.obj \
234 ..\msw\$D\spinbutt.obj \
235 ..\msw\$D\statbmp.obj \
236 ..\msw\$D\statbox.obj \
237 ..\msw\$D\statbr95.obj \
238 ..\msw\$D\stattext.obj \
239 ..\msw\$D\tabctrl.obj \
240 ..\msw\$D\taskbar.obj \
241 ..\msw\$D\tbar95.obj \
242 ..\msw\$D\tbarmsw.obj \
243 ..\msw\$D\textctrl.obj \
244 ..\msw\$D\thread.obj \
245 ..\msw\$D\timer.obj \
246 ..\msw\$D\tooltip.obj \
247 ..\msw\$D\treectrl.obj \
248 ..\msw\$D\utils.obj \
249 ..\msw\$D\utilsexc.obj \
250 ..\msw\ole\$D\uuid.obj \
251 ..\msw\$D\wave.obj \
252 ..\msw\$D\window.obj \
253 ..\msw\$D\xpmhand.obj \
254 ..\msw\ole\$D\dataobj.obj \
255 ..\msw\ole\$D\automtn.obj \
256 ..\msw\ole\$D\droptgt.obj \
257 ..\msw\ole\$D\dropsrc.obj \
258 ..\msw\ole\$D\oleutils.obj
259
260 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
261 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
262
263 # Normal, static library
264 all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm $(LIBTARGET)
265
266 dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D
267
268 test: $(MSWDIR)\$D\wave.obj
269 test2: ..\common\Debug\config.obj
270
271 $D:
272 mkdir $D
273
274 $(COMMDIR)\$D:
275 mkdir $(COMMDIR)\$D
276
277 $(MSWDIR)\$D:
278 mkdir $(MSWDIR)\$D
279
280 $(GENDIR)\$D:
281 mkdir $(GENDIR)\$D
282
283 $(OLEDIR)\$D:
284 mkdir $(OLEDIR)\$D
285
286 # wxWindows library as DLL
287 dll:
288 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
289
290 cleandll:
291 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1
292
293 # wxWindows + app as DLL. Only affects main.cpp.
294 dllapp:
295 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
296
297 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
298 dllnp:
299 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
300
301 # Use this to make dummy.obj and generate a PCH.
302 # You might use the dll target, then the pch target, in order to
303 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
304 #
305 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
306 # are associated with wx.lib. When using a DLL version of wxWindows, however,
307 # the DLL is compiled without a PCH, so you only need it for compiling the app.
308 # In fact headers are compiled differently depending on whether a DLL is being made
309 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
310 # in each case) so you couldn't use the same PCH.
311 pch:
312 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL)
313
314 pch1: dirs $(DUMMYOBJ)
315 echo $(DUMMYOBJ)
316
317 !if "$(WXMAKINGDLL)" != "1"
318
319 ### Static library
320
321 $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
322 -erase $(LIBTARGET)
323 $(implib) @<<
324 -out:$@
325 -machine:$(CPU)
326 $(OBJECTS) $(PERIPH_LIBS)
327 <<
328
329 !else
330
331 ### Update the import library
332
333 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
334 $(implib) @<<
335 -machine:$(CPU)
336 -def:wx.def
337 $(DUMMYOBJ) $(OBJECTS)
338 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
339 <<
340
341 # Update the dynamic link library
342 $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib
343 $(link) @<<
344 $(LINKFLAGS)
345 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
346 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\xpm.lib
347 <<
348
349 !endif
350
351
352 ########################################################
353 # Windows-specific objects
354
355 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
356 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
357
358 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
359 cl @<<
360 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
361 <<
362
363 # If taking wxWindows from CVS, setup.h doesn't exist yet.
364 # Actually the 'if not exist setup.h' test doesn't work
365 # (copies the file anyway)
366 # we'll have to comment this rule out.
367
368 #$(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
369 # cd "$(WXDIR)"\include\wx\msw
370 # if not exist setup.h copy setup0.h setup.h
371 # cd "$(WXDIR)"\src\msw
372
373 ..\common\$D\extended.obj: ..\common\extended.c
374 cl @<<
375 $(CPPFLAGS2) /c $(COMMDIR)\extended.c /Fo$@
376 <<
377
378 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
379 cl @<<
380 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
381 <<
382
383 ..\common\y_tab.c: ..\common\dosyacc.c
384 copy "..\common"\dosyacc.c "..\common"\y_tab.c
385
386 ..\common\lex_yy.c: ..\common\doslex.c
387 copy "..\common"\doslex.c "..\common"\lex_yy.c
388
389 $(OBJECTS): $(WXDIR)/include/wx/setup.h
390
391 # Peripheral components
392
393 png:
394 cd $(WXDIR)\src\png
395 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
396 cd $(WXDIR)\src\msw
397
398 clean_png:
399 cd $(WXDIR)\src\png
400 nmake -f makefile.vc clean
401 cd $(WXDIR)\src\msw
402
403 zlib:
404 cd $(WXDIR)\src\zlib
405 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
406 cd $(WXDIR)\src\msw
407
408 clean_zlib:
409 cd $(WXDIR)\src\zlib
410 nmake -f makefile.vc clean
411 cd $(WXDIR)\src\msw
412
413 xpm:
414 cd $(WXDIR)\src\xpm
415 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
416 cd $(WXDIR)\src\msw
417
418 clean_xpm:
419 cd $(WXDIR)\src\xpm
420 nmake -f makefile.vc clean
421 cd $(WXDIR)\src\msw
422
423 rcparser:
424 cd $(WXDIR)\utils\rcparser\src
425 nmake -f makefile.vc FINAL=$(FINAL)
426 cd $(WXDIR)\src\msw
427
428 clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_xpm
429 -erase $(LIBTARGET)
430 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
431 -erase ..\..\lib\wx200.dll
432 -erase ..\..\lib\wx200.lib
433 -erase ..\..\lib\wx200.exp
434 -erase ..\..\lib\wx200.pdb
435 -erase ..\..\lib\wx200.ilk
436 -erase *.pdb
437 -erase *.sbr
438 -erase $(WXLIBNAME).pch
439 -erase $(GENDIR)\$D\*.obj
440 -erase $(GENDIR)\$D\*.pdb
441 -erase $(GENDIR)\$D\*.sbr
442 -erase $(COMMDIR)\$D\*.obj
443 -erase $(COMMDIR)\$D\*.pdb
444 -erase $(COMMDIR)\$D\*.sbr
445 -erase $(COMMDIR)\\y_tab.c
446 -erase $(COMMDIR)\lex_yy.c
447 -erase $(MSWDIR)\$D\*.obj
448 -erase $(MSWDIR)\$D\*.sbr
449 -erase $(MSWDIR)\$D\*.pdb
450 -erase $(OLEDIR)\$D\*.obj
451 -erase $(OLEDIR)\$D\*.sbr
452 -erase $(OLEDIR)\$D\*.pdb
453 -rmdir $(D)
454 -rmdir ole\$(D)
455 -rmdir ..\generic\$(D)
456 -rmdir ..\common\$(D)
457
458 cleanall: clean
459
460 # Making documents
461 docs: allhlp allhtml allpdfrtf
462 alldocs: docs
463 hlp: wxhlp portinghlp
464 wxhlp: $(DOCDIR)/winhelp/wx.hlp
465 prophlp: $(DOCDIR)/winhelp/prop.hlp
466 refhlp: $(DOCDIR)/winhelp/techref.hlp
467 rtf: $(DOCDIR)/winhelp/wx.rtf
468 proprtf: $(DOCDIR)/winhelp/prop.rtf
469 pdfrtf: $(DOCDIR)/pdf/wx.rtf
470 proppdfrtf: $(DOCDIR)/pdf/prop.rtf
471 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
472 html: wxhtml portinghtml
473 wxhtml: $(DOCDIR)\html\wx\wx.htm
474 prophtml: $(DOCDIR)\html\proplist\prop.htm
475 ps: wxps referencps
476 wxps: $(WXDIR)\docs\ps\wx.ps
477 propps: $(WXDIR)\docs\ps\prop.ps
478 referencps: $(WXDIR)\docs\ps\referenc.ps
479
480 portinghtml: $(DOCDIR)\html\porting\port.htm
481 portingrtf: $(DOCDIR)/winhelp/porting.rtf
482 portinghlp: $(DOCDIR)/winhelp/porting.hlp
483 portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
484 portingps: $(WXDIR)\docs\ps\porting.ps
485
486 allhlp: wxhlp portinghlp prophlp
487 cd $(WXDIR)\utils\dialoged\src
488 nmake -f makefile.vc hlp
489 cd $(THISDIR)
490
491 # cd $(WXDIR)\utils\wxhelp\src
492 # nmake -f makefile.vc hlp
493 # cd $(WXDIR)\utils\tex2rtf\src
494 # nmake -f makefile.vc hlp
495 # cd $(WXDIR)\utils\wxgraph\src
496 # nmake -f makefile.vc hlp
497 # cd $(WXDIR)\utils\wxchart\src
498 # nmake -f makefile.vc hlp
499 # cd $(WXDIR)\utils\wxtree\src
500 # nmake -f makefile.vc hlp
501 # cd $(WXDIR)\utils\wxbuild\src
502 # nmake -f makefile.vc hlp
503 # cd $(WXDIR)\utils\wxgrid\src
504 # nmake -f makefile.vc hlp
505
506 allhtml: wxhtml portinghtml prophtml
507 cd $(WXDIR)\utils\dialoged\src
508 nmake -f makefile.vc html
509 cd $(THISDIR)
510
511 # nmake -f makefile.vc html
512 # cd $(WXDIR)\utils\dialoged\src
513 # nmake -f makefile.vc html
514 # cd $(WXDIR)\utils\hytext\src
515 # nmake -f makefile.vc html
516 # cd $(WXDIR)\utils\wxhelp\src
517 # nmake -f makefile.vc html
518 # cd $(WXDIR)\utils\tex2rtf\src
519 # nmake -f makefile.vc html
520 # cd $(WXDIR)\utils\wxgraph\src
521 # nmake -f makefile.vc html
522 # cd $(WXDIR)\utils\wxchart\src
523 # nmake -f makefile.vc html
524 # cd $(WXDIR)\utils\wxtree\src
525 # nmake -f makefile.vc html
526
527 allps: wxps referencps portingps propps
528 cd $(WXDIR)\utils\dialoged\src
529 nmake -f makefile.vc ps
530 cd $(THISDIR)
531
532 allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
533 cd $(WXDIR)\utils\dialoged\src
534 nmake -f makefile.vc pdfrtf
535 cd $(THISDIR)
536
537 # cd $(WXDIR)\utils\wxhelp\src
538 # nmake -f makefile.vc ps
539 # cd $(WXDIR)\utils\tex2rtf\src
540 # nmake -f makefile.vc ps
541 # cd $(WXDIR)\utils\wxgraph\src
542 # nmake -f makefile.vc ps
543 # cd $(WXDIR)\utils\wxchart\src
544 # nmake -f makefile.vc ps
545 # cd $(WXDIR)\utils\wxtree\src
546 # nmake -f makefile.vc ps
547 # cd $(THISDIR)
548
549 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
550 cd $(DOCDIR)/latex/wx
551 -erase wx.ph
552 hc wx
553 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
554 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
555 cd $(THISDIR)
556
557 $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
558 cd $(DOCDIR)/latex/porting
559 -erase porting.ph
560 hc porting
561 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
562 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
563 cd $(THISDIR)
564
565 $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
566 cd $(DOCDIR)/latex/proplist
567 -erase prop.ph
568 hc prop
569 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
570 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
571 cd $(THISDIR)
572
573 $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
574 cd $(DOCDIR)/latex/techref
575 -erase techref.ph
576 hc techref
577 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
578 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
579 cd $(THISDIR)
580
581 $(DOCDIR)/latex/wx/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
582 cd $(DOCDIR)\latex\wx
583 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
584 cd $(THISDIR)
585
586 $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
587 cd $(DOCDIR)\latex\porting
588 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
589 cd $(THISDIR)
590
591 $(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
592 cd $(DOCDIR)\latex\proplist
593 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
594 cd $(THISDIR)
595
596 $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
597 cd $(DOCDIR)\latex\techref
598 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
599 cd $(THISDIR)
600
601 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
602 cd $(DOCDIR)\latex\wx
603 -copy *.bmp *.wmf $(DOCDIR)\pdf
604 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
605 cd $(THISDIR)
606
607 $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
608 cd $(DOCDIR)\latex\porting
609 -copy *.bmp *.wmf $(DOCDIR)\pdf
610 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
611 cd $(THISDIR)
612
613 $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
614 cd $(DOCDIR)\latex\proplist
615 -copy *.bmp *.wmf $(DOCDIR)\pdf
616 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
617 cd $(THISDIR)
618
619 $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
620 cd $(DOCDIR)\latex\techref
621 -copy *.bmp *.wmf $(DOCDIR)\pdf
622 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
623 cd $(THISDIR)
624
625 $(DOCDIR)\html\wx\wx.htm: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex
626 cd $(DOCDIR)\latex\wx
627 -mkdir $(DOCDIR)\html\wx
628 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
629 -erase $(DOCDIR)\html\wx\*.con
630 -erase $(DOCDIR)\html\wx\*.ref
631 -erase $(DOCDIR)\latex\wx\*.con
632 -erase $(DOCDIR)\latex\wx\*.ref
633 cd $(THISDIR)
634
635 $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
636 cd $(DOCDIR)\latex\porting
637 -mkdir $(DOCDIR)\html\porting
638 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
639 -erase $(DOCDIR)\html\porting\*.con
640 -erase $(DOCDIR)\html\porting\*.ref
641 -erase $(DOCDIR)\latex\porting\*.con
642 -erase $(DOCDIR)\latex\porting\*.ref
643 cd $(THISDIR)
644
645 $(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex
646 cd $(DOCDIR)\latex\proplist
647 -mkdir $(DOCDIR)\html\proplist
648 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
649 -erase $(DOCDIR)\html\proplist\*.con
650 -erase $(DOCDIR)\html\proplist\*.ref
651 -erase $(DOCDIR)\latex\proplist\*.con
652 -erase $(DOCDIR)\latex\proplist\*.ref
653 cd $(THISDIR)
654
655 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
656 cd $(WXDIR)\docs\latex\wx
657 -latex manual
658 -latex manual
659 -makeindx manual
660 -bibtex manual
661 -latex manual
662 -latex manual
663 cd $(THISDIR)
664
665 $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
666 cd $(WXDIR)\docs\latex\porting
667 -latex porting
668 -latex porting
669 -makeindx porting
670 -bibtex porting
671 -latex porting
672 -latex porting
673 cd $(THISDIR)
674
675 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
676 cd $(WXDIR)\docs\latex\wx
677 -dvips32 -o wx.ps manual
678 move wx.ps $(WXDIR)\docs\ps\wx.ps
679 cd $(THISDIR)
680
681 $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
682 cd $(WXDIR)\docs\latex\porting
683 -dvips32 -o porting.ps porting
684 move porting.ps $(WXDIR)\docs\ps\porting.ps
685 cd $(THISDIR)
686
687 $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
688 cd $(WXDIR)\docs\latex\wx
689 -latex referenc
690 -latex referenc
691 -makeindx referenc
692 -bibtex referenc
693 -latex referenc
694 -latex referenc
695 cd $(THISDIR)
696
697 $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
698 cd $(WXDIR)\docs\latex\wx
699 -dvips32 -o referenc.ps referenc
700 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
701 cd $(THISDIR)
702
703 # In order to force document reprocessing
704 touchmanual:
705 -touch $(WXDIR)\docs\latex\wx\manual.tex
706
707 updatedocs: touchmanual alldocs
708
709 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
710 # Office StartUp folder, and PDFMaker should be installed.
711 updatepdf: # touchmanual pdfrtf
712 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
713