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