]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/b32.t
Get rid of this file
[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
2b5f62a0
VZ
16 foreach $file (sort keys %wxUNIV) {
17 next if $wxUNIV{$file} =~ /\T\b/;
f2071dda
VZ
18
19 $file =~ s/cp?p?$/obj/;
2b5f62a0
VZ
20 $obj = "\$(UNIVDIR)\\" . $file . " ";
21 $project{"WXUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " "
22 }
23
24 foreach $file (sort keys %wxUNIV) {
25 next unless $wxUNIV{$file} =~ /\T\b/;
26
27 $file =~ s/cp?p?$/obj/;
28 $obj = "\$(UNIVTHEMEDIR)\\" . $file . " ";
29 $project{"WXUNIVTHEMEOBJS"} .= "\$(MSWDIR)\\" . $file . " "
f2071dda
VZ
30 }
31
c09f2879
VZ
32 foreach $file (sort keys %wxHTML) {
33 next if $wxHTML{$file} =~ /\b16\b/;
34
35 $file =~ s/cp?p?$/obj/;
36 $project{"WXHTMLOBJS"} .= "\$(MSWDIR)\\" . $file . " "
37 }
38
f2071dda 39 foreach $file (sort keys %wxCommon) {
6a253da1
VS
40 next if $wxCommon{$file} =~ /\b(16|U)\b/;
41
9f3553c8 42 $isCFile = $file =~ /\.c$/;
f2071dda 43 $file =~ s/cp?p?$/obj/;
9f3553c8
VZ
44 $obj = "\$(MSWDIR)\\" . $file . " ";
45 $project{"WXCOMMONOBJS"} .= $obj;
46 $project{"WXCOBJS"} .= $obj if $isCFile;
f2071dda
VZ
47 }
48
2b5f62a0 49#! MSW dir for native port
f2071dda
VZ
50 foreach $file (sort keys %wxMSW) {
51 next if $wxMSW{$file} =~ /\b16\b/;
52
f6bcfd97
BP
53#! if ( $file =~ /^automtn/ ) {
54#! #! comment in old makefile.b32 seems to imply that this file can not
55#! #! be compiled with Borland (leads to crash in oleauto sample)
56#! No longer true, at least for BC++ 5.2
57#! next;
58#! }
f2071dda 59
83b1f353
VZ
60 $isCFile = $file =~ /\.c$/;
61
6e29a95a 62 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
f2071dda 63 $file =~ s/cp?p?$/obj/;
6e29a95a
VZ
64 my $obj = "\$(MSWDIR)\\" . $file . " ";
65
66 $project{"WXMSWOBJS"} .= $obj;
67 if ( $isOleObj ) {
68 #! remember that this file is in ole subdir
69 $project{"WXOLEOBJS"} .= $obj;
70 }
83b1f353 71 $project{"WXCOBJS"} .= $obj if $isCFile;
f2071dda 72 }
2b5f62a0
VZ
73
74#! Now do MSW dir for UNIV
75 foreach $file (sort keys %wxMSW) {
76 next unless $wxMSW{$file} =~ /\b(L|B)\b/;
77
78#! if ( $file =~ /^automtn/ ) {
79#! #! comment in old makefile.b32 seems to imply that this file can not
80#! #! be compiled with Borland (leads to crash in oleauto sample)
81#! No longer true, at least for BC++ 5.2
82#! next;
83#! }
84
85 $isCFile = $file =~ /\.c$/;
86
87 my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
88 $file =~ s/cp?p?$/obj/;
89 my $obj = "\$(MSWDIR)\\" . $file . " ";
90
91 $project{"WXMSWUNIVOBJS"} .= $obj;
92 if ( $isOleObj ) {
93 #! remember that this file is in ole subdir
94 $project{"WXOLEUNIVOBJS"} .= $obj;
95 }
96 $project{"WXCUNIVOBJS"} .= $obj if $isCFile;
97 }
98
99#! Generic Dir for Native Port
100 foreach $file (sort keys %wxGeneric) {
101 my $tag = "";
102 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
103
104 $file =~ s/cp?p?$/obj/;
105 $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " "
106 }
107
108#! Generic Dir for UNIV Port
109 foreach $file (sort keys %wxGeneric) {
110 my $filereal = $file;
111 if ( $file =~ /^([^.]+)g.cpp$/ ) {
112 $filereal = "$1.cpp";
113 }
114 $file =~ s/cp?p?$/obj/;
115 $filereal =~ s/cp?p?$/obj/;
116
117 next if $project{"WXMSWUNIVOBJS"} =~ /\b$filereal\b/ ||
118 $project{"WXUNIVOBJS"} =~ /\b$filereal\b/;
119
120
121 $project{"WXGENERICUNIVOBJS"} .= "\$(MSWDIR)\\" . $file . " "
122 }
123
f2071dda
VZ
124#$}
125
cc77c86d 126# This file was automatically generated by tmake
f2071dda
VZ
127# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
128
129#
130# File: makefile.b32
131# Author: Julian Smart
132# Created: 1998
133# Updated:
134# Copyright:
135#
136# "%W% %G%"
137#
138# Makefile : Builds wxWindows library wx.lib for MS Windows,
139# and Borland C++ (32-bit).
140
6b6fc9b0 141# BCCDIR now defined in ../makeb32.env
f2071dda
VZ
142
143!if "$(WXWIN)" == ""
144!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
145!endif
146
147WXDIR = $(WXWIN)
c09f2879 148THISDIR = $(WXDIR)\src\msw
f2071dda 149
2b5f62a0 150
f2071dda
VZ
151# Set all these to 1 if you want to build a dynamic library
152!if "$(DLL)" == "1"
153WXMAKINGDLL=1
154WXBUILDDLL=1
155!endif
156
157!include $(WXDIR)\src\makeb32.env
158
159# Please set these according to the settings in wx_setup.h, so we can include
160# the appropriate libraries in wx.lib
161USE_CTL3D=0
f2071dda
VZ
162
163PERIPH_LIBS=
164PERIPH_TARGET=
165PERIPH_CLEAN_TARGET=
166
167!if "$(USE_CTL3D)" == "1"
168#Use WIN32S/WIN95 32 bit version ctl3d32.dll under win95 (Andre Beltman)
169PERIPH_LIBS=$(WXDIR)\lib\ctl3d32.lib $(PERIPH_LIBS)
170PERIPH_TARGET=ctl3d $(PERIPH_TARGET)
171PERIPH_CLEAN_TARGET=clean_ctl3d $(PERIPH_CLEAN_TARGET)
172!endif
173
f6bcfd97 174#PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\jpeg.lib $(WXDIR)\lib\tiff.lib $(PERIPH_LIBS)
f2071dda 175PERIPH_LIBS=
bed118ca
VZ
176PERIPH_TARGET=zlib png jpeg tiff regex $(PERIPH_TARGET)
177PERIPH_CLEAN_TARGET=clean_zlib clean_png clean_jpeg clean_tiff clean_regex $(PERIPH_CLEAN_TARGET)
f2071dda
VZ
178
179!if "$(DLL)" == "0"
180DUMMY=dummy
181!else
182DUMMY=dummydll
bed118ca 183LIBS= cw32mti import32 ole2w32 odbc32 zlib winpng jpeg tiff regex
f2071dda
VZ
184!endif
185
186LIBTARGET=$(WXLIB)
187
188GENDIR=..\generic
189COMMDIR=..\common
c09f2879 190HTMLDIR=..\html
f2071dda 191OLEDIR=.\ole
2b5f62a0
VZ
192UNIVDIR=..\univ
193UNIVTHEMEDIR=..\univ\themes
f2071dda
VZ
194MSWDIR=.
195
196DOCDIR = $(WXDIR)\docs
197
198GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
199
2b5f62a0 200MSWOBJS = #$ ExpandList("WXMSWOBJS");
f2071dda 201
2b5f62a0 202GENERICUNIVOBJS= #$ ExpandList("WXGENERICUNIVOBJS");
f2071dda 203
2b5f62a0
VZ
204MSWUNIVOBJS = #$ ExpandList("WXMSWUNIVOBJS");
205
206UNIVOBJS = #$ ExpandList("WXUNIVOBJS");
207
208UNIVTHEMEOBJS = #$ ExpandList("WXUNIVTHEMEOBJS");
f2071dda 209
c09f2879
VZ
210HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
211
2b5f62a0 212COMMONOBJS = \
2b5f62a0
VZ
213 #$ ExpandList("WXCOMMONOBJS");
214
215!if "$(WXUSINGUNIV)" == "1"
216OBJECTS = $(COMMONOBJS) $(GENERICUNIVOBJS) $(MSWUNIVOBJS) $(HTMLOBJS) $(UNIVOBJS) $(UNIVTHEMEOBJS)
217!else
c09f2879 218OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
2b5f62a0 219!endif
f2071dda 220
cc77c86d 221default: wx
f2071dda 222
9f24e0b5 223wx: $(ARCHINCDIR)\wx makesetuph makearchsetuph $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
ea450825 224
cc77c86d 225all: wx
9f24e0b5
JS
226
227# Copy the in-CVS setup0.h to setup.h if necessary
228makesetuph:
ea450825
JS
229 cd $(WXDIR)\include\wx\msw
230 if not exist setup.h copy setup0.h setup.h
231 cd $(WXDIR)\src\msw
f2071dda 232
9f24e0b5
JS
233# Copy include\wx\msw\setup.h to the architecture-specific location
234makearchsetuph:
2b5f62a0 235 copy $(SETUPSRCDIR)\setup.h $(ARCHSETUPH)
9f24e0b5
JS
236 cd $(WXDIR)\src\msw
237
238$(ARCHINCDIR)\wx:
4d50d684
JS
239 -mkdir $(ARCHINCDIR)
240 -mkdir $(ARCHINCDIR)\wx
2dcd33c2 241 -erase $(CFG)
f2071dda
VZ
242
243!if "$(DLL)" == "0"
244
245$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
246 -erase $(LIBTARGET)
cc77c86d 247 tlib "$(LIBTARGET)" /P1024 $(LINKDEBUGFLAGS) @&&!
f2071dda
VZ
248+$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
249!
250
251!else
252
253$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
cc77c86d
CE
254 -erase $(LIBTARGET)
255 -erase $(WXDLL)
256 $(LINK) $(LINK_FLAGS) $(LINKDEBUGFLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk @&&!
f2071dda 257c0d32.obj $(OBJECTS)
cc77c86d 258$(WXDLL)
f2071dda
VZ
259nul
260$(PERIPH_LIBS) $(LIBS)
261wxb32
262!
cc77c86d 263 implib -c $(LIBTARGET) $(WXDLL)
f2071dda
VZ
264!endif
265
266dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
4c5032cc 267dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res
f2071dda 268
cc77c86d
CE
269version.res:
270 brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc
76484b24 271
cc77c86d 272# $(OBJECTS): $(WXDIR)\include\wx\setup.h
f2071dda 273
2b5f62a0
VZ
274!if "$(WXUSINGUNIV)" == "1"
275########################################################
276# MSW objects (compile Native or UNIV) - UNIV
277
278#${
279 $_ = $project{"WXMSWUNIVOBJS"};
280 my @objs = split;
281 foreach (@objs) {
282 $text .= $_ . ": ";
283 if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
284 $suffix = $project{"WXCUNIVOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
285 s/obj$/$suffix/;
286 $text .= $_ . "\n\n";
287 }
288#$}
289
290
291!else
292########################################################
293# MSW objects (compile Native or UNIV) - Native
294
f2071dda
VZ
295#${
296 $_ = $project{"WXMSWOBJS"};
297 my @objs = split;
298 foreach (@objs) {
299 $text .= $_ . ": ";
6e29a95a 300 if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
83b1f353
VZ
301 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
302 s/obj$/$suffix/;
f2071dda
VZ
303 $text .= $_ . "\n\n";
304 }
305#$}
2b5f62a0
VZ
306!endif
307
308!if "$(WXUSINGUNIV)" == "1"
309########################################################
310# UNIV objects
311#${
312 $_ = $project{"WXUNIVOBJS"};
313 my @objs = split;
314 foreach (@objs) {
315 $text .= $_ . ": ";
316 s/MSWDIR/UNIVDIR/;
317 s/obj$/\$(SRCSUFF)/;
318 $text .= $_ . "\n\n";
319 }
320#$}
321
322
323########################################################
324# UNIV THEME objects
325
326#${
327 $_ = $project{"WXUNIVTHEMEOBJS"};
328 my @objs = split;
329 foreach (@objs) {
330 $text .= $_ . ": ";
331 s/MSWDIR/UNIVTHEMEDIR/;
332 s/obj$/\$(SRCSUFF)/;
333 $text .= $_ . "\n\n";
334 }
335#$}
336
337!endif
f2071dda
VZ
338
339########################################################
340# Common objects (always compiled)
341
342#${
343 $_ = $project{"WXCOMMONOBJS"};
344 my @objs = split;
345 foreach (@objs) {
346 $text .= $_ . ": ";
9f3553c8 347 $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
f2071dda 348 s/MSWDIR/COMMDIR/;
9f3553c8 349 s/obj$/$suffix/;
f2071dda
VZ
350 $text .= $_ . "\n\n";
351 }
352#$}
353
2b5f62a0
VZ
354!if "$(WXUSINGUNIV)" == "1"
355########################################################
356# Generic objects (not always compiled, depending on
357# whether platforms have native implementations)
358# Native
359
360
361#${
362 $_ = $project{"WXGENERICUNIVOBJS"};
363 my @objs = split;
364 foreach (@objs) {
365 $text .= $_ . ": ";
366 s/MSWDIR/GENDIR/;
367 s/obj$/\$(SRCSUFF)/;
368 $text .= $_ . "\n\n";
369 }
370#$}
371
372!else
f2071dda
VZ
373########################################################
374# Generic objects (not always compiled, depending on
375# whether platforms have native implementations)
2b5f62a0 376# Native
f2071dda
VZ
377
378#${
379 $_ = $project{"WXGENERICOBJS"};
380 my @objs = split;
381 foreach (@objs) {
382 $text .= $_ . ": ";
383 s/MSWDIR/GENDIR/;
384 s/obj$/\$(SRCSUFF)/;
385 $text .= $_ . "\n\n";
386 }
387#$}
2b5f62a0 388!endif
f2071dda 389
c09f2879
VZ
390########################################################
391# HTML objects (always compiled)
392
393#${
394 $_ = $project{"WXHTMLOBJS"};
395 my @objs = split;
396 foreach (@objs) {
397 $text .= $_ . ": ";
398 s/MSWDIR/HTMLDIR/;
399 s/obj$/\$(SRCSUFF)/;
400 $text .= $_ . "\n\n";
401 }
402#$}
403
f2071dda
VZ
404
405all_utils:
406 cd $(WXDIR)\utils
affb67e1 407 ${MAKE} -f makefile.b32
f2071dda
VZ
408 cd $(WXDIR)\src\msw
409
410all_samples:
411 cd $(WXDIR)\samples
affb67e1 412 ${MAKE} -f makefile.b32
f2071dda
VZ
413 cd $(WXDIR)\src\msw
414
415all_execs:
416 cd $(WXDIR)\utils
affb67e1 417 ${MAKE} -f makefile.b32 all_execs
f2071dda
VZ
418 cd $(WXDIR)\src\msw
419
f2071dda
VZ
420png: $(CFG)
421 cd $(WXDIR)\src\png
2b5f62a0 422 ${MAKE} -f makefile.b32 FINAL=$(FINAL)
f2071dda
VZ
423 cd $(WXDIR)\src\msw
424
425clean_png:
426 cd $(WXDIR)\src\png
affb67e1 427 ${MAKE} -f makefile.b32 clean
f2071dda
VZ
428 cd $(WXDIR)\src\msw
429
430zlib: $(CFG)
431 cd $(WXDIR)\src\zlib
2b5f62a0 432 ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
f2071dda
VZ
433 cd $(WXDIR)\src\msw
434
435clean_zlib:
436 cd $(WXDIR)\src\zlib
affb67e1 437 ${MAKE} -f makefile.b32 clean
f2071dda
VZ
438 cd $(WXDIR)\src\msw
439
440jpeg: $(CFG)
441 cd $(WXDIR)\src\jpeg
2b5f62a0 442 ${MAKE} -f makefile.b32 FINAL=$(FINAL)
f2071dda
VZ
443 cd $(WXDIR)\src\msw
444
445clean_jpeg:
446 cd $(WXDIR)\src\jpeg
affb67e1 447 ${MAKE} -f makefile.b32 clean
176513eb
VZ
448 cd $(WXDIR)\src\msw
449
bed118ca
VZ
450regex: $(CFG)
451 cd $(WXDIR)\src\regex
2b5f62a0 452 ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
bed118ca
VZ
453 cd $(WXDIR)\src\msw
454
455clean_regex:
456 cd $(WXDIR)\src\regex
affb67e1 457 ${MAKE} -f makefile.b32 clean
bed118ca
VZ
458 cd $(WXDIR)\src\msw
459
176513eb
VZ
460tiff: $(CFG)
461 cd $(WXDIR)\src\tiff
2b5f62a0 462 ${MAKE} -f makefile.b32 FINAL=$(FINAL) lib
176513eb
VZ
463 cd $(WXDIR)\src\msw
464
465clean_tiff:
466 cd $(WXDIR)\src\tiff
affb67e1 467 ${MAKE} -f makefile.b32 clean
f2071dda
VZ
468 cd $(WXDIR)\src\msw
469
470$(CFG): makefile.b32
cc77c86d 471 copy &&!
f6bcfd97 472-Hc
f2071dda
VZ
473-H=$(WXDIR)\src\msw\wx32.csm
474-3
475-d
60fe7303 476-a1 # byte alignment
f2071dda
VZ
477-R-
478-X
479-w-par
480-w-aus
481-w-hid # virtual function A hides virtual function B
f2071dda
VZ
482-tWM
483
92fe4afe 484-I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff
f2071dda
VZ
485-I$(WXDIR)\include\wx\msw\gnuwin32
486
8e97b17b 487-L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
f2071dda 488-D__WXWIN__
2b5f62a0 489-D$(PORT)
f2071dda
VZ
490-D__WINDOWS__
491-DWIN32
492$(OPT)
493$(DEBUG_FLAGS)
494$(WIN95FLAG)
495! $(CFG)
496
f2071dda 497clean: $(PERIPH_CLEAN_TARGET)
f6bcfd97
BP
498 -erase $(WXLIBDIR)\wx.tds
499 -erase $(WXLIBDIR)\wx.il?
f2071dda
VZ
500 -erase *.obj
501 -erase *.pch
502 -erase *.csm
c09f2879 503 -erase "wx32.#??"
f2071dda
VZ
504
505cleanall: clean
506
507
c09f2879
VZ
508# Making documents
509docs: allhlp allhtml allpdfrtf
510alldocs: docs
511hlp: wxhlp portinghlp
512wxhlp: $(DOCDIR)/winhelp/wx.hlp
c09f2879
VZ
513refhlp: $(DOCDIR)/winhelp/techref.hlp
514rtf: $(DOCDIR)/winhelp/wx.rtf
c09f2879 515pdfrtf: $(DOCDIR)/pdf/wx.rtf
c09f2879 516refpdfrtf: $(DOCDIR)/pdf/techref.rtf
cc77c86d
CE
517html: wxhtml portinghtml
518wxhtml: $(DOCDIR)\html\wx\wx.htm
c09f2879 519htmlhelp: $(DOCDIR)\html\wx\wx.chm
c09f2879 520ps: wxps referencps
cc77c86d 521wxps: $(WXDIR)\docs\ps\wx.ps
cc77c86d 522referencps: $(WXDIR)\docs\ps\referenc.ps
c09f2879
VZ
523
524portinghtml: $(DOCDIR)\html\porting\port.htm
525portingrtf: $(DOCDIR)/winhelp/porting.rtf
526portinghlp: $(DOCDIR)/winhelp/porting.hlp
527portingpdfrtf: $(DOCDIR)/pdf/porting.rtf
cc77c86d 528portingps: $(WXDIR)\docs\ps\porting.ps
c09f2879 529
2fc9385a 530allhlp: wxhlp portinghlp
c09f2879 531 cd $(WXDIR)\utils\dialoged\src
affb67e1 532 ${MAKE} -f makefile.b32 hlp
c09f2879
VZ
533 cd $(THISDIR)
534
535# cd $(WXDIR)\utils\wxhelp\src
affb67e1 536# ${MAKE} -f makefile.b32 hlp
c09f2879 537# cd $(WXDIR)\utils\tex2rtf\src
affb67e1 538# ${MAKE} -f makefile.b32 hlp
c09f2879 539# cd $(WXDIR)\utils\wxgraph\src
affb67e1 540# ${MAKE} -f makefile.b32 hlp
c09f2879 541# cd $(WXDIR)\utils\wxchart\src
affb67e1 542# ${MAKE} -f makefile.b32 hlp
c09f2879 543# cd $(WXDIR)\utils\wxtree\src
affb67e1 544# ${MAKE} -f makefile.b32 hlp
c09f2879 545# cd $(WXDIR)\utils\wxbuild\src
affb67e1 546# ${MAKE} -f makefile.b32 hlp
c09f2879 547# cd $(WXDIR)\utils\wxgrid\src
affb67e1 548# ${MAKE} -f makefile.b32 hlp
c09f2879 549
2fc9385a 550allhtml: wxhtml portinghtml
c09f2879 551 cd $(WXDIR)\utils\dialoged\src
affb67e1 552 ${MAKE} -f makefile.b32 html
c09f2879
VZ
553 cd $(THISDIR)
554
affb67e1 555# ${MAKE} -f makefile.b32 html
c09f2879 556# cd $(WXDIR)\utils\dialoged\src
affb67e1 557# ${MAKE} -f makefile.b32 html
c09f2879 558# cd $(WXDIR)\utils\hytext\src
affb67e1 559# ${MAKE} -f makefile.b32 html
c09f2879 560# cd $(WXDIR)\utils\wxhelp\src
affb67e1 561# ${MAKE} -f makefile.b32 html
c09f2879 562# cd $(WXDIR)\utils\tex2rtf\src
affb67e1 563# ${MAKE} -f makefile.b32 html
c09f2879 564# cd $(WXDIR)\utils\wxgraph\src
affb67e1 565# ${MAKE} -f makefile.b32 html
c09f2879 566# cd $(WXDIR)\utils\wxchart\src
affb67e1 567# ${MAKE} -f makefile.b32 html
c09f2879 568# cd $(WXDIR)\utils\wxtree\src
affb67e1 569# ${MAKE} -f makefile.b32 html
c09f2879 570
2fc9385a 571allps: wxps referencps portingps
c09f2879 572 cd $(WXDIR)\utils\dialoged\src
affb67e1 573 ${MAKE} -f makefile.b32 ps
c09f2879
VZ
574 cd $(THISDIR)
575
2fc9385a 576allpdfrtf: pdfrtf portingpdfrtf
c09f2879 577 cd $(WXDIR)\utils\dialoged\src
affb67e1 578 ${MAKE} -f makefile.b32 pdfrtf
c09f2879
VZ
579 cd $(THISDIR)
580
581# cd $(WXDIR)\utils\wxhelp\src
affb67e1 582# ${MAKE} -f makefile.b32 ps
c09f2879 583# cd $(WXDIR)\utils\tex2rtf\src
affb67e1 584# ${MAKE} -f makefile.b32 ps
c09f2879 585# cd $(WXDIR)\utils\wxgraph\src
affb67e1 586# ${MAKE} -f makefile.b32 ps
c09f2879 587# cd $(WXDIR)\utils\wxchart\src
affb67e1 588# ${MAKE} -f makefile.b32 ps
c09f2879 589# cd $(WXDIR)\utils\wxtree\src
affb67e1 590# ${MAKE} -f makefile.b32 ps
c09f2879
VZ
591# cd $(THISDIR)
592
593$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
594 cd $(DOCDIR)/latex/wx
595 -erase wx.ph
596 hc wx
597 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
598 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
599 cd $(THISDIR)
600
601$(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj
602 cd $(DOCDIR)/latex/porting
603 -erase porting.ph
604 hc porting
605 move porting.hlp $(DOCDIR)\winhelp\porting.hlp
606 move porting.cnt $(DOCDIR)\winhelp\porting.cnt
607 cd $(THISDIR)
608
c09f2879
VZ
609$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
610 cd $(DOCDIR)/latex/techref
611 -erase techref.ph
612 hc techref
613 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
614 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
615 cd $(THISDIR)
616
617$(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
618 cd $(DOCDIR)\latex\wx
619 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
620 cd $(THISDIR)
621
622$(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
623 cd $(DOCDIR)\latex\porting
624 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp
625 cd $(THISDIR)
626
c09f2879
VZ
627$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
628 cd $(DOCDIR)\latex\techref
629 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
630 cd $(THISDIR)
631
632$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
633 cd $(DOCDIR)\latex\wx
634 -copy *.wmf $(DOCDIR)\pdf
635 -copy *.bmp $(DOCDIR)\pdf
636 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
637 cd $(THISDIR)
638
639$(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex
640 cd $(DOCDIR)\latex\porting
641 -copy *.wmf $(DOCDIR)\pdf
642 -copy *.bmp $(DOCDIR)\pdf
643 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
644 cd $(THISDIR)
645
c09f2879
VZ
646$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
647 cd $(DOCDIR)\latex\techref
648 -copy *.wmf $(DOCDIR)\pdf
649 -copy *.bmp $(DOCDIR)\pdf
650 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
651 cd $(THISDIR)
652
653$(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
654 cd $(DOCDIR)\latex\wx
655 -mkdir $(DOCDIR)\html\wx
656 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
657 -erase $(DOCDIR)\html\wx\*.con
658 -erase $(DOCDIR)\html\wx\*.ref
659 -erase $(DOCDIR)\latex\wx\*.con
660 -erase $(DOCDIR)\latex\wx\*.ref
661 cd $(THISDIR)
662
663$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
cc77c86d
CE
664 cd $(DOCDIR)\html\wx
665 -hhc wx.hhp
666 cd $(THISDIR)
c09f2879
VZ
667
668
669$(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex
670 cd $(DOCDIR)\latex\porting
671 -mkdir $(DOCDIR)\html\porting
672 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html
673 -erase $(DOCDIR)\html\porting\*.con
674 -erase $(DOCDIR)\html\porting\*.ref
675 -erase $(DOCDIR)\latex\porting\*.con
676 -erase $(DOCDIR)\latex\porting\*.ref
677 cd $(THISDIR)
678
cc77c86d
CE
679$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
680 cd $(WXDIR)\docs\latex\wx
c09f2879
VZ
681 -latex manual
682 -latex manual
683 -makeindx manual
684 -bibtex manual
685 -latex manual
686 -latex manual
687 cd $(THISDIR)
688
cc77c86d
CE
689$(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex
690 cd $(WXDIR)\docs\latex\porting
c09f2879
VZ
691 -latex porting
692 -latex porting
693 -makeindx porting
694 -bibtex porting
695 -latex porting
696 -latex porting
697 cd $(THISDIR)
698
cc77c86d
CE
699$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
700 cd $(WXDIR)\docs\latex\wx
c09f2879
VZ
701 -dvips32 -o wx.ps manual
702 move wx.ps $(WXDIR)\docs\ps\wx.ps
703 cd $(THISDIR)
704
cc77c86d
CE
705$(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi
706 cd $(WXDIR)\docs\latex\porting
c09f2879
VZ
707 -dvips32 -o porting.ps porting
708 move porting.ps $(WXDIR)\docs\ps\porting.ps
709 cd $(THISDIR)
710
cc77c86d
CE
711$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
712 cd $(WXDIR)\docs\latex\wx
c09f2879
VZ
713 -latex referenc
714 -latex referenc
715 -makeindx referenc
716 -bibtex referenc
717 -latex referenc
718 -latex referenc
719 cd $(THISDIR)
720
cc77c86d
CE
721$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
722 cd $(WXDIR)\docs\latex\wx
c09f2879
VZ
723 -dvips32 -o referenc.ps referenc
724 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
725 cd $(THISDIR)
726
727# In order to force document reprocessing
728touchmanual:
729 -touch $(WXDIR)\docs\latex\wx\manual.tex
730
731updatedocs: touchmanual alldocs
732
733# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
734# Office StartUp folder, and PDFMaker should be installed.
735updatepdf: # touchmanual pdfrtf
736 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
737
738
9be9b974 739MFTYPE=b32
1b9315eb
JS
740# Can't use this or we'll have to distribute all tmake files with wxWindows
741# makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
742
743self:
cc77c86d
CE
744 cd $(WXWIN)\distrib\msw\tmake
745 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
746 copy makefile.$(MFTYPE) $(WXWIN)\src\msw