]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/b32.t
86aa07b3419f064f32cf48f76361eff5f50e7395
[wxWidgets.git] / distrib / msw / tmake / b32.t
1 #!#############################################################################
2 #! File: b32.t
3 #! Purpose: tmake template file from which makefile.b32 is generated by running
4 #! tmake -t b32 wxwin.pro
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 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
19
20 $file =~ s/cp?p?$/obj/;
21 $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " "
22 }
23
24 foreach $file (sort keys %wxHTML) {
25 next if $wxHTML{$file} =~ /\b16\b/;
26
27 $file =~ s/cp?p?$/obj/;
28 $project{"WXHTMLOBJS"} .= "\$(MSWDIR)\\" . $file . " "
29 }
30
31 foreach $file (sort keys %wxCommon) {
32 $isCFile = $file =~ /\.c$/;
33 $file =~ s/cp?p?$/obj/;
34 $obj = "\$(MSWDIR)\\" . $file . " ";
35 $project{"WXCOMMONOBJS"} .= $obj;
36 $project{"WXCOBJS"} .= $obj if $isCFile;
37 }
38
39 foreach $file (sort keys %wxMSW) {
40 next if $wxMSW{$file} =~ /\b16\b/;
41
42 if ( $file =~ /^automtn/ ) {
43 #! comment in old makefile.b32 seems to imply that this file can't
44 #! be compiled with Borland (leads to crash in oleauto sample)
45 next;
46 }
47
48 $isCFile = $file =~ /\.c$/;
49
50 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
51 $file =~ s/cp?p?$/obj/;
52 my $obj = "\$(MSWDIR)\\" . $file . " ";
53
54 $project{"WXMSWOBJS"} .= $obj;
55 if ( $isOleObj ) {
56 #! remember that this file is in ole subdir
57 $project{"WXOLEOBJS"} .= $obj;
58 }
59 $project{"WXCOBJS"} .= $obj if $isCFile;
60 }
61 #$}
62
63 # This file was automatically generated by tmake at #$ Now()
64 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
65
66 #
67 # File: makefile.b32
68 # Author: Julian Smart
69 # Created: 1998
70 # Updated:
71 # Copyright:
72 #
73 # "%W% %G%"
74 #
75 # Makefile : Builds wxWindows library wx.lib for MS Windows,
76 # and Borland C++ (32-bit).
77
78 !if "$(BCCDIR)" == ""
79 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
80 !endif
81
82 !if "$(WXWIN)" == ""
83 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
84 !endif
85
86 WXDIR = $(WXWIN)
87 THISDIR = $(WXDIR)\src\msw
88
89 # Set all these to 1 if you want to build a dynamic library
90 !if "$(DLL)" == "1"
91 WXMAKINGDLL=1
92 WXBUILDDLL=1
93 !endif
94
95 !include $(WXDIR)\src\makeb32.env
96
97 # Please set these according to the settings in wx_setup.h, so we can include
98 # the appropriate libraries in wx.lib
99 USE_CTL3D=0
100 USE_XPM_IN_MSW=1
101
102 PERIPH_LIBS=
103 PERIPH_TARGET=
104 PERIPH_CLEAN_TARGET=
105
106 !if "$(USE_CTL3D)" == "1"
107 #Use WIN32S/WIN95 32 bit version ctl3d32.dll under win95 (Andre Beltman)
108 PERIPH_LIBS=$(WXDIR)\lib\ctl3d32.lib $(PERIPH_LIBS)
109 PERIPH_TARGET=ctl3d $(PERIPH_TARGET)
110 PERIPH_CLEAN_TARGET=clean_ctl3d $(PERIPH_CLEAN_TARGET)
111 !endif
112
113 !if "$(USE_XPM_IN_MSW)" == "1"
114 PERIPH_LIBS=$(WXLIB)\xpm.lib $(PERIPH_LIBS)
115 PERIPH_TARGET=xpm $(PERIPH_TARGET)
116 PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET)
117 !endif
118
119 #PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\jpeg.lib $(PERIPH_LIBS)
120 PERIPH_LIBS=
121 PERIPH_TARGET=zlib png jpeg tiff $(PERIPH_TARGET)
122 PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff $(PERIPH_CLEAN_TARGET)
123
124 !if "$(DLL)" == "0"
125 DUMMY=dummy
126 !else
127 DUMMY=dummydll
128 LIBS= cw32 import32 ole2w32
129 !endif
130
131 LIBTARGET=$(WXLIB)
132
133 GENDIR=..\generic
134 COMMDIR=..\common
135 HTMLDIR=..\html
136 OLEDIR=.\ole
137 MSWDIR=.
138
139 DOCDIR = $(WXDIR)\docs
140
141 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
142
143 # Not needed:
144 # $(MSWDIR)\colrdlgg.obj \
145 # $(MSWDIR)\fontdlgg.obj \
146 # $(MSWDIR)\helpxlp.obj \
147 # $(MSWDIR)\msgdlgg.obj \
148 # $(MSWDIR)\printps.obj \
149 # $(MSWDIR)\prntdlgg.obj \
150 # $(MSWDIR)\listctrl.obj \
151 # $(MSWDIR)\notebook.obj \
152 # $(MSWDIR)\treectrl.obj
153
154 COMMONOBJS = \
155 $(MSWDIR)\y_tab.obj \
156 #$ ExpandList("WXCOMMONOBJS");
157
158 MSWOBJS = #$ ExpandList("WXMSWOBJS");
159
160 HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
161
162 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
163
164 default: wx
165
166 wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
167
168 all: all_libs all_execs
169
170 !if "$(DLL)" == "0"
171
172 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
173 -erase $(LIBTARGET)
174 tlib $(LIBTARGET) /P1024 @&&!
175 +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
176 !
177
178 !else
179
180 $(LIBTARGET): $(DUMMY).obj $(OBJECTS)
181 -erase $(LIBTARGET)
182 -erase $(WXLIBDIR)\wx.dll
183 tlink32 $(LINK_FLAGS) /v @&&!
184 c0d32.obj $(OBJECTS)
185 $(WXLIBDIR)\wx
186 nul
187 $(PERIPH_LIBS) $(LIBS)
188 wxb32
189 !
190 implib -c $(LIBTARGET) $(WXLIBDIR)\wx.dll
191
192 !endif
193
194 dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
195 dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
196
197 $(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
198
199 # cl @<<
200 # $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
201 # <<
202
203 $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
204 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
205
206 $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
207 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
208
209 # $(OBJECTS): $(WXDIR)\include\wx\setup.h
210
211 #${
212 $_ = $project{"WXMSWOBJS"};
213 my @objs = split;
214 foreach (@objs) {
215 $text .= $_ . ": ";
216 if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
217 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
218 s/obj$/$suffix/;
219 $text .= $_ . "\n\n";
220 }
221 #$}
222
223 ########################################################
224 # Common objects (always compiled)
225
226 #${
227 $_ = $project{"WXCOMMONOBJS"};
228 my @objs = split;
229 foreach (@objs) {
230 $text .= $_ . ": ";
231 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
232 s/MSWDIR/COMMDIR/;
233 s/obj$/$suffix/;
234 $text .= $_ . "\n\n";
235 }
236 #$}
237
238 ########################################################
239 # Generic objects (not always compiled, depending on
240 # whether platforms have native implementations)
241
242 #${
243 $_ = $project{"WXGENERICOBJS"};
244 my @objs = split;
245 foreach (@objs) {
246 $text .= $_ . ": ";
247 s/MSWDIR/GENDIR/;
248 s/obj$/\$(SRCSUFF)/;
249 $text .= $_ . "\n\n";
250 }
251 #$}
252
253 ########################################################
254 # HTML objects (always compiled)
255
256 #${
257 $_ = $project{"WXHTMLOBJS"};
258 my @objs = split;
259 foreach (@objs) {
260 $text .= $_ . ": ";
261 s/MSWDIR/HTMLDIR/;
262 s/obj$/\$(SRCSUFF)/;
263 $text .= $_ . "\n\n";
264 }
265 #$}
266
267
268 all_utils:
269 cd $(WXDIR)\utils
270 make -f makefile.b32
271 cd $(WXDIR)\src\msw
272
273 all_samples:
274 cd $(WXDIR)\samples
275 make -f makefile.b32
276 cd $(WXDIR)\src\msw
277
278 all_execs:
279 cd $(WXDIR)\utils
280 make -f makefile.b32 all_execs
281 cd $(WXDIR)\src\msw
282
283 wxxpm: $(CFG)
284 cd $(WXDIR)\src\xpm
285 make -f makefile.b32 -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
286 cd $(WXDIR)\src\msw
287
288 clean_wxxpm: $(CFG)
289 cd $(WXDIR)\src\xpm
290 make -f makefile.b32 clean
291 cd $(WXDIR)\src\msw
292
293 png: $(CFG)
294 cd $(WXDIR)\src\png
295 make -f makefile.b32
296 cd $(WXDIR)\src\msw
297
298 clean_png:
299 cd $(WXDIR)\src\png
300 make -f makefile.b32 clean
301 cd $(WXDIR)\src\msw
302
303 zlib: $(CFG)
304 cd $(WXDIR)\src\zlib
305 make -f makefile.b32 lib
306 cd $(WXDIR)\src\msw
307
308 clean_zlib:
309 cd $(WXDIR)\src\zlib
310 make -f makefile.b32 clean
311 cd $(WXDIR)\src\msw
312
313 jpeg: $(CFG)
314 cd $(WXDIR)\src\jpeg
315 make -f makefile.b32
316 cd $(WXDIR)\src\msw
317
318 clean_jpeg:
319 cd $(WXDIR)\src\jpeg
320 make -f makefile.b32 clean
321 cd $(WXDIR)\src\msw
322
323 xpm: $(CFG)
324 cd $(WXDIR)\src\xpm
325 make -f makefile.b32 lib
326 cd $(WXDIR)\src\msw
327
328 clean_xpm:
329 cd $(WXDIR)\src\xpm
330 make -f makefile.b32 clean
331 cd $(WXDIR)\src\msw
332
333 tiff: $(CFG)
334 cd $(WXDIR)\src\tiff
335 make -f makefile.b32 lib
336 cd $(WXDIR)\src\msw
337
338 clean_tiff:
339 cd $(WXDIR)\src\tiff
340 make -f makefile.b32 clean
341 cd $(WXDIR)\src\msw
342
343 $(CFG): makefile.b32
344 copy &&!
345 -H=$(WXDIR)\src\msw\wx32.csm
346 -3
347 -d
348 -a1 # byte alignment
349 -R-
350 -X
351 -w-par
352 -w-aus
353 -w-hid # virtual function A hides virtual function B
354 -WE
355 -tWM
356
357 -I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm;$(WXDIR)/src/tiff
358 -I$(WXDIR)\include\wx\msw\gnuwin32
359
360 -L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
361 -D__WXWIN__
362 -D__WXMSW__
363 -D__WINDOWS__
364 -DWIN32
365 $(OPT)
366 $(DEBUG_FLAGS)
367 $(WIN95FLAG)
368 ! $(CFG)
369
370 $(LNKCFG): makefile.b32
371 copy &&!
372 -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
373 ! $(LNKCFG)
374
375 #-I$(WXDIR)\src\common\wxxpm\libxpm.34b\lib
376 # -Oxt
377
378 clean: $(PERIPH_CLEAN_TARGET)
379 -erase $(LIBTARGET)
380 -erase *.obj
381 -erase *.pch
382 -erase *.csm
383 -erase *.cfg
384 -erase "wx32.#??"
385 -erase ..\common\y_tab.c
386 -erase ..\common\lex_yy.c
387
388 cleanall: clean
389
390
391 # Making documents
392 docs: allhlp allhtml allpdfrtf
393 alldocs: docs
394 hlp: wxhlp portinghlp
395 wxhlp: $(DOCDIR)/winhelp/wx.hlp
396 prophlp: $(DOCDIR)/winhelp/prop.hlp
397 refhlp: $(DOCDIR)/winhelp/techref.hlp
398 rtf: $(DOCDIR)/winhelp/wx.rtf
399 proprtf: $(DOCDIR)/winhelp/prop.rtf
400 pdfrtf: $(DOCDIR)/pdf/wx.rtf
401 proppdfrtf: $(DOCDIR)/pdf/prop.rtf
402 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
403 html: wxhtml portinghtml
404 wxhtml: $(DOCDIR)\html\wx\wx.htm
405 htmlhelp: $(DOCDIR)\html\wx\wx.chm
406 prophtml: $(DOCDIR)\html\proplist\prop.htm
407 ps: wxps referencps
408 wxps: $(WXDIR)\docs\ps\wx.ps
409 propps: $(WXDIR)\docs\ps\prop.ps
410 referencps: $(WXDIR)\docs\ps\referenc.ps
411
412 portinghtml: $(DOCDIR)\html\porting\port.htm
413 portingrtf: $(DOCDIR)/winhelp/porting.rtf
414 portinghlp: $(DOCDIR)/winhelp/porting.hlp
415 portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
416 portingps: $(WXDIR)\docs\ps\porting.ps
417
418 allhlp: wxhlp portinghlp prophlp
419 cd $(WXDIR)\utils\dialoged\src
420 make -f makefile.b32 hlp
421 cd $(THISDIR)
422
423 # cd $(WXDIR)\utils\wxhelp\src
424 # make -f makefile.b32 hlp
425 # cd $(WXDIR)\utils\tex2rtf\src
426 # make -f makefile.b32 hlp
427 # cd $(WXDIR)\utils\wxgraph\src
428 # make -f makefile.b32 hlp
429 # cd $(WXDIR)\utils\wxchart\src
430 # make -f makefile.b32 hlp
431 # cd $(WXDIR)\utils\wxtree\src
432 # make -f makefile.b32 hlp
433 # cd $(WXDIR)\utils\wxbuild\src
434 # make -f makefile.b32 hlp
435 # cd $(WXDIR)\utils\wxgrid\src
436 # make -f makefile.b32 hlp
437
438 allhtml: wxhtml portinghtml prophtml
439 cd $(WXDIR)\utils\dialoged\src
440 make -f makefile.b32 html
441 cd $(THISDIR)
442
443 # make -f makefile.b32 html
444 # cd $(WXDIR)\utils\dialoged\src
445 # make -f makefile.b32 html
446 # cd $(WXDIR)\utils\hytext\src
447 # make -f makefile.b32 html
448 # cd $(WXDIR)\utils\wxhelp\src
449 # make -f makefile.b32 html
450 # cd $(WXDIR)\utils\tex2rtf\src
451 # make -f makefile.b32 html
452 # cd $(WXDIR)\utils\wxgraph\src
453 # make -f makefile.b32 html
454 # cd $(WXDIR)\utils\wxchart\src
455 # make -f makefile.b32 html
456 # cd $(WXDIR)\utils\wxtree\src
457 # make -f makefile.b32 html
458
459 allps: wxps referencps portingps propps
460 cd $(WXDIR)\utils\dialoged\src
461 make -f makefile.b32 ps
462 cd $(THISDIR)
463
464 allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
465 cd $(WXDIR)\utils\dialoged\src
466 make -f makefile.b32 pdfrtf
467 cd $(THISDIR)
468
469 # cd $(WXDIR)\utils\wxhelp\src
470 # make -f makefile.b32 ps
471 # cd $(WXDIR)\utils\tex2rtf\src
472 # make -f makefile.b32 ps
473 # cd $(WXDIR)\utils\wxgraph\src
474 # make -f makefile.b32 ps
475 # cd $(WXDIR)\utils\wxchart\src
476 # make -f makefile.b32 ps
477 # cd $(WXDIR)\utils\wxtree\src
478 # make -f makefile.b32 ps
479 # cd $(THISDIR)
480
481 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
482 cd $(DOCDIR)/latex/wx
483 -erase wx.ph
484 hc wx
485 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
486 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
487 cd $(THISDIR)
488
489 $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
490 cd $(DOCDIR)/latex/porting
491 -erase porting.ph
492 hc porting
493 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
494 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
495 cd $(THISDIR)
496
497 $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
498 cd $(DOCDIR)/latex/proplist
499 -erase prop.ph
500 hc prop
501 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
502 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
503 cd $(THISDIR)
504
505 $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
506 cd $(DOCDIR)/latex/techref
507 -erase techref.ph
508 hc techref
509 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
510 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
511 cd $(THISDIR)
512
513 $(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
514 cd $(DOCDIR)\latex\wx
515 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
516 cd $(THISDIR)
517
518 $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
519 cd $(DOCDIR)\latex\porting
520 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
521 cd $(THISDIR)
522
523 $(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
524 cd $(DOCDIR)\latex\proplist
525 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
526 cd $(THISDIR)
527
528 $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
529 cd $(DOCDIR)\latex\techref
530 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
531 cd $(THISDIR)
532
533 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
534 cd $(DOCDIR)\latex\wx
535 -copy *.wmf $(DOCDIR)\pdf
536 -copy *.bmp $(DOCDIR)\pdf
537 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
538 cd $(THISDIR)
539
540 $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
541 cd $(DOCDIR)\latex\porting
542 -copy *.wmf $(DOCDIR)\pdf
543 -copy *.bmp $(DOCDIR)\pdf
544 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
545 cd $(THISDIR)
546
547 $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
548 cd $(DOCDIR)\latex\proplist
549 -copy *.wmf $(DOCDIR)\pdf
550 -copy *.bmp $(DOCDIR)\pdf
551 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
552 cd $(THISDIR)
553
554 $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
555 cd $(DOCDIR)\latex\techref
556 -copy *.wmf $(DOCDIR)\pdf
557 -copy *.bmp $(DOCDIR)\pdf
558 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
559 cd $(THISDIR)
560
561 $(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
562 cd $(DOCDIR)\latex\wx
563 -mkdir $(DOCDIR)\html\wx
564 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
565 -erase $(DOCDIR)\html\wx\*.con
566 -erase $(DOCDIR)\html\wx\*.ref
567 -erase $(DOCDIR)\latex\wx\*.con
568 -erase $(DOCDIR)\latex\wx\*.ref
569 cd $(THISDIR)
570
571 $(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
572 cd $(DOCDIR)\html\wx
573 -hhc wx.hhp
574 cd $(THISDIR)
575
576
577 $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
578 cd $(DOCDIR)\latex\porting
579 -mkdir $(DOCDIR)\html\porting
580 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
581 -erase $(DOCDIR)\html\porting\*.con
582 -erase $(DOCDIR)\html\porting\*.ref
583 -erase $(DOCDIR)\latex\porting\*.con
584 -erase $(DOCDIR)\latex\porting\*.ref
585 cd $(THISDIR)
586
587 $(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
588 cd $(DOCDIR)\latex\proplist
589 -mkdir $(DOCDIR)\html\proplist
590 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
591 -erase $(DOCDIR)\html\proplist\*.con
592 -erase $(DOCDIR)\html\proplist\*.ref
593 -erase $(DOCDIR)\latex\proplist\*.con
594 -erase $(DOCDIR)\latex\proplist\*.ref
595 cd $(THISDIR)
596
597 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
598 cd $(WXDIR)\docs\latex\wx
599 -latex manual
600 -latex manual
601 -makeindx manual
602 -bibtex manual
603 -latex manual
604 -latex manual
605 cd $(THISDIR)
606
607 $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
608 cd $(WXDIR)\docs\latex\porting
609 -latex porting
610 -latex porting
611 -makeindx porting
612 -bibtex porting
613 -latex porting
614 -latex porting
615 cd $(THISDIR)
616
617 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
618 cd $(WXDIR)\docs\latex\wx
619 -dvips32 -o wx.ps manual
620 move wx.ps $(WXDIR)\docs\ps\wx.ps
621 cd $(THISDIR)
622
623 $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
624 cd $(WXDIR)\docs\latex\porting
625 -dvips32 -o porting.ps porting
626 move porting.ps $(WXDIR)\docs\ps\porting.ps
627 cd $(THISDIR)
628
629 $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
630 cd $(WXDIR)\docs\latex\wx
631 -latex referenc
632 -latex referenc
633 -makeindx referenc
634 -bibtex referenc
635 -latex referenc
636 -latex referenc
637 cd $(THISDIR)
638
639 $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
640 cd $(WXDIR)\docs\latex\wx
641 -dvips32 -o referenc.ps referenc
642 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
643 cd $(THISDIR)
644
645 # In order to force document reprocessing
646 touchmanual:
647 -touch $(WXDIR)\docs\latex\wx\manual.tex
648
649 updatedocs: touchmanual alldocs
650
651 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
652 # Office StartUp folder, and PDFMaker should be installed.
653 updatepdf: # touchmanual pdfrtf
654 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
655
656
657 MFTYPE=b32
658 # Can't use this or we'll have to distribute all tmake files with wxWindows
659 # makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
660
661 self:
662 cd $(WXWIN)\distrib\msw\tmake
663 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
664 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
665