]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc.t
the missing file for tmake (sorry)
[wxWidgets.git] / distrib / msw / tmake / vc.t
1 #!#############################################################################
2 #! File: vc.t
3 #! Purpose: tmake template file from which makefile.vc is generated by running
4 #! tmake -t vc wxwin.pro -o makefile.vc
5 #! Author: Vadim Zeitlin
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 my $tag = "";
17 if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
18 $tag = "WXNONESSENTIALOBJS";
19 }
20 else {
21 $tag = "WXGENERICOBJS";
22 }
23
24 $file =~ s/cp?p?$/obj/;
25 $project{$tag} .= "..\\generic\\\$D\\" . $file . " "
26 }
27
28 foreach $file (sort keys %wxCommon) {
29 next if $wxCommon{$file} =~ /\b16\b/;
30
31 $file =~ s/cp?p?$/obj/;
32 $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " "
33 }
34
35 foreach $file (sort keys %wxMSW) {
36 next if $wxMSW{$file} =~ /\b16\b/;
37
38 #! OLE files live in a subdir
39 $project{"WXMSWOBJS"} .= '..\msw\\';
40 $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/;
41 $file =~ s/cp?p?$/obj/;
42 $project{"WXMSWOBJS"} .= '$D\\' . $file . " ";
43 }
44 #$}
45 # This file was automatically generated by tmake at #$ Now()
46 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T!
47
48 # File: makefile.vc
49 # Author: Julian Smart
50 # Created: 1997
51 # Updated:
52 # Copyright: (c) 1997, Julian Smart
53 #
54 # "%W% %G%"
55 #
56 # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
57 # Arguments:
58 #
59 # FINAL=1 argument to nmake to build version with no debugging info.
60 # dll builds a library (wxdll.lib) suitable for creating DLLs
61 #
62 !include <..\makevc.env>
63
64 THISDIR=$(WXWIN)\src\msw
65
66 !if "$(WXMAKINGDLL)" == "1"
67 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
68 DUMMYOBJ=$D\dummydll.obj
69 !else
70 LIBTARGET=$(WXLIB)
71 DUMMYOBJ=$D\dummy.obj
72 !endif
73
74 # Please set these according to the settings in setup.h, so we can include
75 # the appropriate libraries in wx.lib
76
77 # This one overrides the others, to be consistent with the settings in setup.h
78 MINIMAL_WXWINDOWS_SETUP=0
79
80 PERIPH_LIBS=
81 PERIPH_TARGET=
82 PERIPH_CLEAN_TARGET=
83
84 # These are absolute paths, so that the compiler
85 # generates correct __FILE__ symbols for debugging.
86 # Otherwise you don't be able to double-click on a memory
87 # error to load that file.
88 GENDIR=$(WXDIR)\src\generic
89 COMMDIR=$(WXDIR)\src\common
90 OLEDIR=ole
91 MSWDIR=$(WXDIR)\src\msw
92 DOCDIR = $(WXDIR)\docs
93 HTMLDIR = $(WXDIR)\src\html
94
95 {..\generic}.cpp{..\generic\$D}.obj:
96 cl @<<
97 $(CPPFLAGS) /Fo$@ /c /Tp $<
98 <<
99
100 {..\common}.cpp{..\common\$D}.obj:
101 cl @<<
102 $(CPPFLAGS) /Fo$@ /c /Tp $<
103 <<
104
105 {..\msw}.cpp{..\msw\$D}.obj:
106 cl @<<
107 $(CPPFLAGS) /Fo$@ /c /Tp $<
108 <<
109
110 {..\msw\ole}.cpp{..\msw\ole\$D}.obj:
111 cl @<<
112 $(CPPFLAGS) /Fo$@ /c /Tp $<
113 <<
114
115 {..\html}.cpp{..\html\$D}.obj:
116 cl @<<
117 $(CPPFLAGS) /Fo$@ /c /Tp $<
118 <<
119
120 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
121
122 # These are generic things that don't need to be compiled on MSW,
123 # but sometimes it's useful to do so for testing purposes.
124 NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
125
126 COMMONOBJS = \
127 ..\common\$D\y_tab.obj \
128 #$ ExpandList("WXCOMMONOBJS");
129
130 MSWOBJS = #$ ExpandList("WXMSWOBJS");
131
132 HTMLOBJS = \
133 ..\html\$D\htmlcell.obj \
134 ..\html\$D\htmlfilter.obj \
135 ..\html\$D\htmlhelp.obj \
136 ..\html\$D\htmlhelp_io.obj \
137 ..\html\$D\htmlparser.obj \
138 ..\html\$D\htmltag.obj \
139 ..\html\$D\htmlwin.obj \
140 ..\html\$D\htmlwinparser.obj \
141 ..\html\$D\mod_fonts.obj \
142 ..\html\$D\mod_hline.obj \
143 ..\html\$D\mod_image.obj \
144 ..\html\$D\mod_layout.obj \
145 ..\html\$D\mod_links.obj \
146 ..\html\$D\mod_list.obj \
147 ..\html\$D\mod_pre.obj \
148 ..\html\$D\mod_tables.obj \
149 ..\html\$D\search.obj
150
151 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
152 # Add $(HTMLOBJS) if wanting wxHTML classes
153 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
154
155 # Normal, static library
156 all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg $(LIBTARGET)
157
158 dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
159
160
161 test: $(MSWDIR)\$D\wave.obj
162 test2: ..\common\Debug\config.obj
163
164 $D:
165 mkdir $D
166
167 $(COMMDIR)\$D:
168 mkdir $(COMMDIR)\$D
169
170 $(MSWDIR)\$D:
171 mkdir $(MSWDIR)\$D
172
173 $(GENDIR)\$D:
174 mkdir $(GENDIR)\$D
175
176 $(OLEDIR)\$D:
177 mkdir $(OLEDIR)\$D
178
179 $(HTMLDIR)\$D:
180 mkdir $(HTMLDIR)\$D
181
182 # wxWindows library as DLL
183 dll:
184 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
185
186 cleandll:
187 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
188
189 # wxWindows + app as DLL. Only affects main.cpp.
190 dllapp:
191 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
192
193 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
194 dllnp:
195 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
196
197 # Use this to make dummy.obj and generate a PCH.
198 # You might use the dll target, then the pch target, in order to
199 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
200 #
201 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
202 # are associated with wx.lib. When using a DLL version of wxWindows, however,
203 # the DLL is compiled without a PCH, so you only need it for compiling the app.
204 # In fact headers are compiled differently depending on whether a DLL is being made
205 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
206 # in each case) so you couldn't use the same PCH.
207 pch:
208 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
209
210 pch1: dirs $(DUMMYOBJ)
211 echo $(DUMMYOBJ)
212
213 !if "$(WXMAKINGDLL)" != "1"
214
215 ### Static library
216
217 $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
218 -erase $(LIBTARGET)
219 $(implib) @<<
220 -out:$@
221 -machine:$(CPU)
222 $(OBJECTS) $(PERIPH_LIBS)
223 <<
224
225 !else
226
227 ### Update the import library
228
229 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
230 $(implib) @<<
231 -machine:$(CPU)
232 -def:wx.def
233 $(DUMMYOBJ) $(OBJECTS)
234 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
235 <<
236
237 # Update the dynamic link library
238 $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib
239 $(link) @<<
240 $(LINKFLAGS)
241 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
242 $(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
243 <<
244
245 !endif
246
247
248 ########################################################
249 # Windows-specific objects
250
251 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
252 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
253
254 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
255 cl @<<
256 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
257 <<
258
259 # If taking wxWindows from CVS, setup.h doesn't exist yet.
260 # Actually the 'if not exist setup.h' test doesn't work
261 # (copies the file anyway)
262 # we'll have to comment this rule out.
263
264 # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
265 # cd "$(WXDIR)"\include\wx\msw
266 # if not exist setup.h copy setup0.h setup.h
267 # cd "$(WXDIR)"\src\msw
268
269 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
270 cl @<<
271 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
272 <<
273
274 ..\common\y_tab.c: ..\common\dosyacc.c
275 copy "..\common"\dosyacc.c "..\common"\y_tab.c
276
277 ..\common\lex_yy.c: ..\common\doslex.c
278 copy "..\common"\doslex.c "..\common"\lex_yy.c
279
280 $(OBJECTS): $(WXDIR)/include/wx/setup.h
281
282 ..\common\$D\unzip.obj: ..\common\unzip.c
283 cl @<<
284 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
285 <<
286
287 # Peripheral components
288
289 png:
290 cd $(WXDIR)\src\png
291 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
292 cd $(WXDIR)\src\msw
293
294 clean_png:
295 cd $(WXDIR)\src\png
296 nmake -f makefile.vc clean
297 cd $(WXDIR)\src\msw
298
299 zlib:
300 cd $(WXDIR)\src\zlib
301 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
302 cd $(WXDIR)\src\msw
303
304 clean_zlib:
305 cd $(WXDIR)\src\zlib
306 nmake -f makefile.vc clean
307 cd $(WXDIR)\src\msw
308
309 jpeg:
310 cd $(WXDIR)\src\jpeg
311 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) all
312 cd $(WXDIR)\src\msw
313
314 clean_jpeg:
315 cd $(WXDIR)\src\jpeg
316 nmake -f makefile.vc clean
317 cd $(WXDIR)\src\msw
318
319 xpm:
320 cd $(WXDIR)\src\xpm
321 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
322 cd $(WXDIR)\src\msw
323
324 clean_xpm:
325 cd $(WXDIR)\src\xpm
326 nmake -f makefile.vc clean
327 cd $(WXDIR)\src\msw
328
329 rcparser:
330 cd $(WXDIR)\utils\rcparser\src
331 nmake -f makefile.vc FINAL=$(FINAL)
332 cd $(WXDIR)\src\msw
333
334 clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm
335 -erase $(LIBTARGET)
336 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
337 -erase ..\..\lib\wx200.dll
338 -erase ..\..\lib\wx200.lib
339 -erase ..\..\lib\wx200.exp
340 -erase ..\..\lib\wx200.pdb
341 -erase ..\..\lib\wx200.ilk
342 -erase *.pdb
343 -erase *.sbr
344 -erase $(WXLIBNAME).pch
345 -erase $(GENDIR)\$D\*.obj
346 -erase $(GENDIR)\$D\*.pdb
347 -erase $(GENDIR)\$D\*.sbr
348 -erase $(COMMDIR)\$D\*.obj
349 -erase $(COMMDIR)\$D\*.pdb
350 -erase $(COMMDIR)\$D\*.sbr
351 -erase $(COMMDIR)\\y_tab.c
352 -erase $(COMMDIR)\lex_yy.c
353 -erase $(MSWDIR)\$D\*.obj
354 -erase $(MSWDIR)\$D\*.sbr
355 -erase $(MSWDIR)\$D\*.pdb
356 -erase $(OLEDIR)\$D\*.obj
357 -erase $(OLEDIR)\$D\*.sbr
358 -erase $(OLEDIR)\$D\*.pdb
359 -rmdir $(D)
360 -rmdir ole\$(D)
361 -rmdir ..\generic\$(D)
362 -rmdir ..\common\$(D)
363
364 cleanall: clean
365
366 # Making documents
367 docs: allhlp allhtml allpdfrtf
368 alldocs: docs
369 hlp: wxhlp portinghlp
370 wxhlp: $(DOCDIR)/winhelp/wx.hlp
371 prophlp: $(DOCDIR)/winhelp/prop.hlp
372 refhlp: $(DOCDIR)/winhelp/techref.hlp
373 rtf: $(DOCDIR)/winhelp/wx.rtf
374 proprtf: $(DOCDIR)/winhelp/prop.rtf
375 pdfrtf: $(DOCDIR)/pdf/wx.rtf
376 proppdfrtf: $(DOCDIR)/pdf/prop.rtf
377 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
378 html: wxhtml portinghtml
379 wxhtml: $(DOCDIR)\html\wx\wx.htm
380 htmlhelp: $(DOCDIR)\html\wx\wx.chm
381 prophtml: $(DOCDIR)\html\proplist\prop.htm
382 ps: wxps referencps
383 wxps: $(WXDIR)\docs\ps\wx.ps
384 propps: $(WXDIR)\docs\ps\prop.ps
385 referencps: $(WXDIR)\docs\ps\referenc.ps
386
387 portinghtml: $(DOCDIR)\html\porting\port.htm
388 portingrtf: $(DOCDIR)/winhelp/porting.rtf
389 portinghlp: $(DOCDIR)/winhelp/porting.hlp
390 portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
391 portingps: $(WXDIR)\docs\ps\porting.ps
392
393 allhlp: wxhlp portinghlp prophlp
394 cd $(WXDIR)\utils\dialoged\src
395 nmake -f makefile.vc hlp
396 cd $(THISDIR)
397
398 # cd $(WXDIR)\utils\wxhelp\src
399 # nmake -f makefile.vc hlp
400 # cd $(WXDIR)\utils\tex2rtf\src
401 # nmake -f makefile.vc hlp
402 # cd $(WXDIR)\utils\wxgraph\src
403 # nmake -f makefile.vc hlp
404 # cd $(WXDIR)\utils\wxchart\src
405 # nmake -f makefile.vc hlp
406 # cd $(WXDIR)\utils\wxtree\src
407 # nmake -f makefile.vc hlp
408 # cd $(WXDIR)\utils\wxbuild\src
409 # nmake -f makefile.vc hlp
410 # cd $(WXDIR)\utils\wxgrid\src
411 # nmake -f makefile.vc hlp
412
413 allhtml: wxhtml portinghtml prophtml
414 cd $(WXDIR)\utils\dialoged\src
415 nmake -f makefile.vc html
416 cd $(THISDIR)
417
418 # nmake -f makefile.vc html
419 # cd $(WXDIR)\utils\dialoged\src
420 # nmake -f makefile.vc html
421 # cd $(WXDIR)\utils\hytext\src
422 # nmake -f makefile.vc html
423 # cd $(WXDIR)\utils\wxhelp\src
424 # nmake -f makefile.vc html
425 # cd $(WXDIR)\utils\tex2rtf\src
426 # nmake -f makefile.vc html
427 # cd $(WXDIR)\utils\wxgraph\src
428 # nmake -f makefile.vc html
429 # cd $(WXDIR)\utils\wxchart\src
430 # nmake -f makefile.vc html
431 # cd $(WXDIR)\utils\wxtree\src
432 # nmake -f makefile.vc html
433
434 allps: wxps referencps portingps propps
435 cd $(WXDIR)\utils\dialoged\src
436 nmake -f makefile.vc ps
437 cd $(THISDIR)
438
439 allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
440 cd $(WXDIR)\utils\dialoged\src
441 nmake -f makefile.vc pdfrtf
442 cd $(THISDIR)
443
444 # cd $(WXDIR)\utils\wxhelp\src
445 # nmake -f makefile.vc ps
446 # cd $(WXDIR)\utils\tex2rtf\src
447 # nmake -f makefile.vc ps
448 # cd $(WXDIR)\utils\wxgraph\src
449 # nmake -f makefile.vc ps
450 # cd $(WXDIR)\utils\wxchart\src
451 # nmake -f makefile.vc ps
452 # cd $(WXDIR)\utils\wxtree\src
453 # nmake -f makefile.vc ps
454 # cd $(THISDIR)
455
456 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
457 cd $(DOCDIR)/latex/wx
458 -erase wx.ph
459 hc wx
460 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
461 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
462 cd $(THISDIR)
463
464 $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
465 cd $(DOCDIR)/latex/porting
466 -erase porting.ph
467 hc porting
468 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
469 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
470 cd $(THISDIR)
471
472 $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
473 cd $(DOCDIR)/latex/proplist
474 -erase prop.ph
475 hc prop
476 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
477 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
478 cd $(THISDIR)
479
480 $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
481 cd $(DOCDIR)/latex/techref
482 -erase techref.ph
483 hc techref
484 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
485 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
486 cd $(THISDIR)
487
488 $(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
489 cd $(DOCDIR)\latex\wx
490 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
491 cd $(THISDIR)
492
493 $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
494 cd $(DOCDIR)\latex\porting
495 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
496 cd $(THISDIR)
497
498 $(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
499 cd $(DOCDIR)\latex\proplist
500 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
501 cd $(THISDIR)
502
503 $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
504 cd $(DOCDIR)\latex\techref
505 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
506 cd $(THISDIR)
507
508 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
509 cd $(DOCDIR)\latex\wx
510 -copy *.bmp *.wmf $(DOCDIR)\pdf
511 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
512 cd $(THISDIR)
513
514 $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
515 cd $(DOCDIR)\latex\porting
516 -copy *.bmp *.wmf $(DOCDIR)\pdf
517 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
518 cd $(THISDIR)
519
520 $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
521 cd $(DOCDIR)\latex\proplist
522 -copy *.bmp *.wmf $(DOCDIR)\pdf
523 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
524 cd $(THISDIR)
525
526 $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
527 cd $(DOCDIR)\latex\techref
528 -copy *.bmp *.wmf $(DOCDIR)\pdf
529 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
530 cd $(THISDIR)
531
532 $(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
533 cd $(DOCDIR)\latex\wx
534 -mkdir $(DOCDIR)\html\wx
535 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
536 -erase $(DOCDIR)\html\wx\*.con
537 -erase $(DOCDIR)\html\wx\*.ref
538 -erase $(DOCDIR)\latex\wx\*.con
539 -erase $(DOCDIR)\latex\wx\*.ref
540 cd $(THISDIR)
541
542 $(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
543 cd $(DOCDIR)\html\wx
544 -hhc wx.hhp
545 cd $(THISDIR)
546
547
548 $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
549 cd $(DOCDIR)\latex\porting
550 -mkdir $(DOCDIR)\html\porting
551 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
552 -erase $(DOCDIR)\html\porting\*.con
553 -erase $(DOCDIR)\html\porting\*.ref
554 -erase $(DOCDIR)\latex\porting\*.con
555 -erase $(DOCDIR)\latex\porting\*.ref
556 cd $(THISDIR)
557
558 $(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
559 cd $(DOCDIR)\latex\proplist
560 -mkdir $(DOCDIR)\html\proplist
561 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
562 -erase $(DOCDIR)\html\proplist\*.con
563 -erase $(DOCDIR)\html\proplist\*.ref
564 -erase $(DOCDIR)\latex\proplist\*.con
565 -erase $(DOCDIR)\latex\proplist\*.ref
566 cd $(THISDIR)
567
568 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
569 cd $(WXDIR)\docs\latex\wx
570 -latex manual
571 -latex manual
572 -makeindx manual
573 -bibtex manual
574 -latex manual
575 -latex manual
576 cd $(THISDIR)
577
578 $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
579 cd $(WXDIR)\docs\latex\porting
580 -latex porting
581 -latex porting
582 -makeindx porting
583 -bibtex porting
584 -latex porting
585 -latex porting
586 cd $(THISDIR)
587
588 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
589 cd $(WXDIR)\docs\latex\wx
590 -dvips32 -o wx.ps manual
591 move wx.ps $(WXDIR)\docs\ps\wx.ps
592 cd $(THISDIR)
593
594 $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
595 cd $(WXDIR)\docs\latex\porting
596 -dvips32 -o porting.ps porting
597 move porting.ps $(WXDIR)\docs\ps\porting.ps
598 cd $(THISDIR)
599
600 $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
601 cd $(WXDIR)\docs\latex\wx
602 -latex referenc
603 -latex referenc
604 -makeindx referenc
605 -bibtex referenc
606 -latex referenc
607 -latex referenc
608 cd $(THISDIR)
609
610 $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
611 cd $(WXDIR)\docs\latex\wx
612 -dvips32 -o referenc.ps referenc
613 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
614 cd $(THISDIR)
615
616 # In order to force document reprocessing
617 touchmanual:
618 -touch $(WXDIR)\docs\latex\wx\manual.tex
619
620 updatedocs: touchmanual alldocs
621
622 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
623 # Office StartUp folder, and PDFMaker should be installed.
624 updatepdf: # touchmanual pdfrtf
625 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
626