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