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