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