]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/b32.t
added wxDir::Traverse
[wxWidgets.git] / distrib / msw / tmake / b32.t
CommitLineData
f2071dda
VZ
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 = "";
8ed88978 18 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
f2071dda
VZ
19
20 $file =~ s/cp?p?$/obj/;
21 $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " "
22 }
23
c09f2879
VZ
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
f2071dda 31 foreach $file (sort keys %wxCommon) {
9f3553c8 32 $isCFile = $file =~ /\.c$/;
f2071dda 33 $file =~ s/cp?p?$/obj/;
9f3553c8
VZ
34 $obj = "\$(MSWDIR)\\" . $file . " ";
35 $project{"WXCOMMONOBJS"} .= $obj;
36 $project{"WXCOBJS"} .= $obj if $isCFile;
f2071dda
VZ
37 }
38
39 foreach $file (sort keys %wxMSW) {
40 next if $wxMSW{$file} =~ /\b16\b/;
41
f6bcfd97
BP
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#! }
f2071dda 48
83b1f353
VZ
49 $isCFile = $file =~ /\.c$/;
50
6e29a95a 51 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
f2071dda 52 $file =~ s/cp?p?$/obj/;
6e29a95a
VZ
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 }
83b1f353 60 $project{"WXCOBJS"} .= $obj if $isCFile;
f2071dda
VZ
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
87WXDIR = $(WXWIN)
c09f2879 88THISDIR = $(WXDIR)\src\msw
f2071dda
VZ
89
90# Set all these to 1 if you want to build a dynamic library
91!if "$(DLL)" == "1"
92WXMAKINGDLL=1
93WXBUILDDLL=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
100USE_CTL3D=0
f2071dda
VZ
101
102PERIPH_LIBS=
103PERIPH_TARGET=
104PERIPH_CLEAN_TARGET=
105
106!if "$(USE_CTL3D)" == "1"
107#Use WIN32S/WIN95 32 bit version ctl3d32.dll under win95 (Andre Beltman)
108PERIPH_LIBS=$(WXDIR)\lib\ctl3d32.lib $(PERIPH_LIBS)
109PERIPH_TARGET=ctl3d $(PERIPH_TARGET)
110PERIPH_CLEAN_TARGET=clean_ctl3d $(PERIPH_CLEAN_TARGET)
111!endif
112
f6bcfd97 113#PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\tiff.lib $(PERIPH_LIBS)
f2071dda 114PERIPH_LIBS=
176513eb
VZ
115PERIPH_TARGET=zlib png jpeg tiff $(PERIPH_TARGET)
116PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff $(PERIPH_CLEAN_TARGET)
f2071dda
VZ
117
118!if "$(DLL)" == "0"
119DUMMY=dummy
120!else
121DUMMY=dummydll
268d5364 122LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff
f2071dda
VZ
123!endif
124
125LIBTARGET=$(WXLIB)
126
127GENDIR=..\generic
128COMMDIR=..\common
c09f2879 129HTMLDIR=..\html
f2071dda
VZ
130OLEDIR=.\ole
131MSWDIR=.
132
133DOCDIR = $(WXDIR)\docs
134
135GENERICOBJS= #$ 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
148COMMONOBJS = \
149 $(MSWDIR)\y_tab.obj \
150 #$ ExpandList("WXCOMMONOBJS");
151
152MSWOBJS = #$ ExpandList("WXMSWOBJS");
153
c09f2879
VZ
154HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
155
156OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
f2071dda
VZ
157
158default: wx
159
b2cf617c 160wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
f2071dda
VZ
161
162all: all_libs all_execs
163
164!if "$(DLL)" == "0"
165
166$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
167 -erase $(LIBTARGET)
20a2bdc9 168 tlib "$(LIBTARGET)" /P1024 @&&!
f2071dda
VZ
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
f6bcfd97 177 $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
f2071dda
VZ
178c0d32.obj $(OBJECTS)
179$(WXLIBDIR)\wx
180nul
181$(PERIPH_LIBS) $(LIBS)
182wxb32
183!
184 implib -c $(LIBTARGET) $(WXLIBDIR)\wx.dll
185
186!endif
187
188dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
189dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
190
191$(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
192
193# cl @<<
194# $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
195# <<
196
197$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
198 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
199
200$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
201 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
202
203# $(OBJECTS): $(WXDIR)\include\wx\setup.h
204
205#${
206 $_ = $project{"WXMSWOBJS"};
207 my @objs = split;
208 foreach (@objs) {
209 $text .= $_ . ": ";
6e29a95a 210 if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
83b1f353
VZ
211 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
212 s/obj$/$suffix/;
f2071dda
VZ
213 $text .= $_ . "\n\n";
214 }
215#$}
216
217########################################################
218# Common objects (always compiled)
219
220#${
221 $_ = $project{"WXCOMMONOBJS"};
222 my @objs = split;
223 foreach (@objs) {
224 $text .= $_ . ": ";
9f3553c8 225 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
f2071dda 226 s/MSWDIR/COMMDIR/;
9f3553c8 227 s/obj$/$suffix/;
f2071dda
VZ
228 $text .= $_ . "\n\n";
229 }
230#$}
231
232########################################################
233# Generic objects (not always compiled, depending on
234# whether platforms have native implementations)
235
236#${
237 $_ = $project{"WXGENERICOBJS"};
238 my @objs = split;
239 foreach (@objs) {
240 $text .= $_ . ": ";
241 s/MSWDIR/GENDIR/;
242 s/obj$/\$(SRCSUFF)/;
243 $text .= $_ . "\n\n";
244 }
245#$}
246
c09f2879
VZ
247########################################################
248# HTML objects (always compiled)
249
250#${
251 $_ = $project{"WXHTMLOBJS"};
252 my @objs = split;
253 foreach (@objs) {
254 $text .= $_ . ": ";
255 s/MSWDIR/HTMLDIR/;
256 s/obj$/\$(SRCSUFF)/;
257 $text .= $_ . "\n\n";
258 }
259#$}
260
f2071dda
VZ
261
262all_utils:
263 cd $(WXDIR)\utils
264 make -f makefile.b32
265 cd $(WXDIR)\src\msw
266
267all_samples:
268 cd $(WXDIR)\samples
269 make -f makefile.b32
270 cd $(WXDIR)\src\msw
271
272all_execs:
273 cd $(WXDIR)\utils
274 make -f makefile.b32 all_execs
275 cd $(WXDIR)\src\msw
276
f2071dda
VZ
277png: $(CFG)
278 cd $(WXDIR)\src\png
9be9b974 279 make -f makefile.b32
f2071dda
VZ
280 cd $(WXDIR)\src\msw
281
282clean_png:
283 cd $(WXDIR)\src\png
284 make -f makefile.b32 clean
285 cd $(WXDIR)\src\msw
286
287zlib: $(CFG)
288 cd $(WXDIR)\src\zlib
289 make -f makefile.b32 lib
290 cd $(WXDIR)\src\msw
291
292clean_zlib:
293 cd $(WXDIR)\src\zlib
294 make -f makefile.b32 clean
295 cd $(WXDIR)\src\msw
296
297jpeg: $(CFG)
298 cd $(WXDIR)\src\jpeg
9be9b974 299 make -f makefile.b32
f2071dda
VZ
300 cd $(WXDIR)\src\msw
301
302clean_jpeg:
303 cd $(WXDIR)\src\jpeg
304 make -f makefile.b32 clean
176513eb
VZ
305 cd $(WXDIR)\src\msw
306
176513eb
VZ
307tiff: $(CFG)
308 cd $(WXDIR)\src\tiff
309 make -f makefile.b32 lib
310 cd $(WXDIR)\src\msw
311
312clean_tiff:
313 cd $(WXDIR)\src\tiff
314 make -f makefile.b32 clean
f2071dda
VZ
315 cd $(WXDIR)\src\msw
316
317$(CFG): makefile.b32
318 copy &&!
f6bcfd97 319-Hc
f2071dda
VZ
320-H=$(WXDIR)\src\msw\wx32.csm
321-3
322-d
60fe7303 323-a1 # byte alignment
f2071dda
VZ
324-R-
325-X
326-w-par
327-w-aus
328-w-hid # virtual function A hides virtual function B
329-WE
330-tWM
331
268d5364 332-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
f2071dda
VZ
333-I$(WXDIR)\include\wx\msw\gnuwin32
334
8e97b17b 335-L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
f2071dda
VZ
336-D__WXWIN__
337-D__WXMSW__
338-D__WINDOWS__
339-DWIN32
340$(OPT)
341$(DEBUG_FLAGS)
342$(WIN95FLAG)
343! $(CFG)
344
f2071dda
VZ
345clean: $(PERIPH_CLEAN_TARGET)
346 -erase $(LIBTARGET)
f6bcfd97
BP
347 -erase $(WXLIBDIR)\wx.dll
348 -erase $(WXLIBDIR)\wx.tds
349 -erase $(WXLIBDIR)\wx.il?
f2071dda
VZ
350 -erase *.obj
351 -erase *.pch
352 -erase *.csm
353 -erase *.cfg
c09f2879 354 -erase "wx32.#??"
f2071dda
VZ
355 -erase ..\common\y_tab.c
356 -erase ..\common\lex_yy.c
357
358cleanall: clean
359
360
c09f2879
VZ
361# Making documents
362docs: allhlp allhtml allpdfrtf
363alldocs: docs
364hlp: wxhlp portinghlp
365wxhlp: $(DOCDIR)/winhelp/wx.hlp
366prophlp: $(DOCDIR)/winhelp/prop.hlp
367refhlp: $(DOCDIR)/winhelp/techref.hlp
368rtf: $(DOCDIR)/winhelp/wx.rtf
369proprtf: $(DOCDIR)/winhelp/prop.rtf
370pdfrtf: $(DOCDIR)/pdf/wx.rtf
371proppdfrtf: $(DOCDIR)/pdf/prop.rtf
372refpdfrtf: $(DOCDIR)/pdf/techref.rtf
373html: wxhtml portinghtml
374wxhtml: $(DOCDIR)\html\wx\wx.htm
375htmlhelp: $(DOCDIR)\html\wx\wx.chm
376prophtml: $(DOCDIR)\html\proplist\prop.htm
377ps: wxps referencps
378wxps: $(WXDIR)\docs\ps\wx.ps
379propps: $(WXDIR)\docs\ps\prop.ps
380referencps: $(WXDIR)\docs\ps\referenc.ps
381
382portinghtml: $(DOCDIR)\html\porting\port.htm
383portingrtf: $(DOCDIR)/winhelp/porting.rtf
384portinghlp: $(DOCDIR)/winhelp/porting.hlp
385portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
386portingps: $(WXDIR)\docs\ps\porting.ps
387
388allhlp: wxhlp portinghlp prophlp
389 cd $(WXDIR)\utils\dialoged\src
390 make -f makefile.b32 hlp
391 cd $(THISDIR)
392
393# cd $(WXDIR)\utils\wxhelp\src
394# make -f makefile.b32 hlp
395# cd $(WXDIR)\utils\tex2rtf\src
396# make -f makefile.b32 hlp
397# cd $(WXDIR)\utils\wxgraph\src
398# make -f makefile.b32 hlp
399# cd $(WXDIR)\utils\wxchart\src
400# make -f makefile.b32 hlp
401# cd $(WXDIR)\utils\wxtree\src
402# make -f makefile.b32 hlp
403# cd $(WXDIR)\utils\wxbuild\src
404# make -f makefile.b32 hlp
405# cd $(WXDIR)\utils\wxgrid\src
406# make -f makefile.b32 hlp
407
408allhtml: wxhtml portinghtml prophtml
409 cd $(WXDIR)\utils\dialoged\src
410 make -f makefile.b32 html
411 cd $(THISDIR)
412
413# make -f makefile.b32 html
414# cd $(WXDIR)\utils\dialoged\src
415# make -f makefile.b32 html
416# cd $(WXDIR)\utils\hytext\src
417# make -f makefile.b32 html
418# cd $(WXDIR)\utils\wxhelp\src
419# make -f makefile.b32 html
420# cd $(WXDIR)\utils\tex2rtf\src
421# make -f makefile.b32 html
422# cd $(WXDIR)\utils\wxgraph\src
423# make -f makefile.b32 html
424# cd $(WXDIR)\utils\wxchart\src
425# make -f makefile.b32 html
426# cd $(WXDIR)\utils\wxtree\src
427# make -f makefile.b32 html
428
429allps: wxps referencps portingps propps
430 cd $(WXDIR)\utils\dialoged\src
431 make -f makefile.b32 ps
432 cd $(THISDIR)
433
434allpdfrtf: pdfrtf portingpdfrtf proppdfrtf
435 cd $(WXDIR)\utils\dialoged\src
436 make -f makefile.b32 pdfrtf
437 cd $(THISDIR)
438
439# cd $(WXDIR)\utils\wxhelp\src
440# make -f makefile.b32 ps
441# cd $(WXDIR)\utils\tex2rtf\src
442# make -f makefile.b32 ps
443# cd $(WXDIR)\utils\wxgraph\src
444# make -f makefile.b32 ps
445# cd $(WXDIR)\utils\wxchart\src
446# make -f makefile.b32 ps
447# cd $(WXDIR)\utils\wxtree\src
448# make -f makefile.b32 ps
449# cd $(THISDIR)
450
451$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
452 cd $(DOCDIR)/latex/wx
453 -erase wx.ph
454 hc wx
455 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
456 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
457 cd $(THISDIR)
458
459$(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
460 cd $(DOCDIR)/latex/porting
461 -erase porting.ph
462 hc porting
463 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
464 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
465 cd $(THISDIR)
466
467$(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj
468 cd $(DOCDIR)/latex/proplist
469 -erase prop.ph
470 hc prop
471 move prop.hlp $(DOCDIR)\winhelp\prop.hlp
472 move prop.cnt $(DOCDIR)\winhelp\prop.cnt
473 cd $(THISDIR)
474
475$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
476 cd $(DOCDIR)/latex/techref
477 -erase techref.ph
478 hc techref
479 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
480 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
481 cd $(THISDIR)
482
483$(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
484 cd $(DOCDIR)\latex\wx
485 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
486 cd $(THISDIR)
487
488$(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
489 cd $(DOCDIR)\latex\porting
490 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
491 cd $(THISDIR)
492
493$(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
494 cd $(DOCDIR)\latex\proplist
495 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp
496 cd $(THISDIR)
497
498$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
499 cd $(DOCDIR)\latex\techref
500 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
501 cd $(THISDIR)
502
503$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
504 cd $(DOCDIR)\latex\wx
505 -copy *.wmf $(DOCDIR)\pdf
506 -copy *.bmp $(DOCDIR)\pdf
507 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
508 cd $(THISDIR)
509
510$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
511 cd $(DOCDIR)\latex\porting
512 -copy *.wmf $(DOCDIR)\pdf
513 -copy *.bmp $(DOCDIR)\pdf
514 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
515 cd $(THISDIR)
516
517$(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
518 cd $(DOCDIR)\latex\proplist
519 -copy *.wmf $(DOCDIR)\pdf
520 -copy *.bmp $(DOCDIR)\pdf
521 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
522 cd $(THISDIR)
523
524$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
525 cd $(DOCDIR)\latex\techref
526 -copy *.wmf $(DOCDIR)\pdf
527 -copy *.bmp $(DOCDIR)\pdf
528 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
529 cd $(THISDIR)
530
531$(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
532 cd $(DOCDIR)\latex\wx
533 -mkdir $(DOCDIR)\html\wx
534 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
535 -erase $(DOCDIR)\html\wx\*.con
536 -erase $(DOCDIR)\html\wx\*.ref
537 -erase $(DOCDIR)\latex\wx\*.con
538 -erase $(DOCDIR)\latex\wx\*.ref
539 cd $(THISDIR)
540
541$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
542 cd $(DOCDIR)\html\wx
543 -hhc wx.hhp
544 cd $(THISDIR)
545
546
547$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
548 cd $(DOCDIR)\latex\porting
549 -mkdir $(DOCDIR)\html\porting
550 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
551 -erase $(DOCDIR)\html\porting\*.con
552 -erase $(DOCDIR)\html\porting\*.ref
553 -erase $(DOCDIR)\latex\porting\*.con
554 -erase $(DOCDIR)\latex\porting\*.ref
555 cd $(THISDIR)
556
557$(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
558 cd $(DOCDIR)\latex\proplist
559 -mkdir $(DOCDIR)\html\proplist
560 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html
561 -erase $(DOCDIR)\html\proplist\*.con
562 -erase $(DOCDIR)\html\proplist\*.ref
563 -erase $(DOCDIR)\latex\proplist\*.con
564 -erase $(DOCDIR)\latex\proplist\*.ref
565 cd $(THISDIR)
566
567$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
568 cd $(WXDIR)\docs\latex\wx
569 -latex manual
570 -latex manual
571 -makeindx manual
572 -bibtex manual
573 -latex manual
574 -latex manual
575 cd $(THISDIR)
576
577$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
578 cd $(WXDIR)\docs\latex\porting
579 -latex porting
580 -latex porting
581 -makeindx porting
582 -bibtex porting
583 -latex porting
584 -latex porting
585 cd $(THISDIR)
586
587$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
588 cd $(WXDIR)\docs\latex\wx
589 -dvips32 -o wx.ps manual
590 move wx.ps $(WXDIR)\docs\ps\wx.ps
591 cd $(THISDIR)
592
593$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
594 cd $(WXDIR)\docs\latex\porting
595 -dvips32 -o porting.ps porting
596 move porting.ps $(WXDIR)\docs\ps\porting.ps
597 cd $(THISDIR)
598
599$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
600 cd $(WXDIR)\docs\latex\wx
601 -latex referenc
602 -latex referenc
603 -makeindx referenc
604 -bibtex referenc
605 -latex referenc
606 -latex referenc
607 cd $(THISDIR)
608
609$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
610 cd $(WXDIR)\docs\latex\wx
611 -dvips32 -o referenc.ps referenc
612 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
613 cd $(THISDIR)
614
615# In order to force document reprocessing
616touchmanual:
617 -touch $(WXDIR)\docs\latex\wx\manual.tex
618
619updatedocs: touchmanual alldocs
620
621# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
622# Office StartUp folder, and PDFMaker should be installed.
623updatepdf: # touchmanual pdfrtf
624 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
625
626
9be9b974 627MFTYPE=b32
1b9315eb
JS
628# Can't use this or we'll have to distribute all tmake files with wxWindows
629# makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
630
631self:
9be9b974
RD
632 cd $(WXWIN)\distrib\msw\tmake
633 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
634 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
635