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