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