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