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