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