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