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