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