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