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