]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/vc.t
first pass of wxUniv merge - nothing works, most parts don't even compile
[wxWidgets.git] / distrib / msw / tmake / vc.t
1 #!#############################################################################
2 #! File: vc.t
3 #! Purpose: tmake template file from which makefile.vc is generated by running
4 #! tmake -t vc wxwin.pro -o makefile.vc
5 #! Author: Vadim Zeitlin
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 my $tag = "";
17 if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) {
18 $tag = "WXNONESSENTIALOBJS";
19 }
20 else {
21 $tag = "WXGENERICOBJS";
22 }
23
24 $file =~ s/cp?p?$/obj/;
25 $project{$tag} .= "..\\generic\\\$D\\" . $file . " "
26 }
27
28 foreach $file (sort keys %wxCommon) {
29 next if $wxCommon{$file} =~ /\b16\b/;
30
31 $file =~ s/cp?p?$/obj/;
32 $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " "
33 }
34
35 foreach $file (sort keys %wxMSW) {
36 next if $wxMSW{$file} =~ /\b16\b/;
37
38 #! OLE files live in a subdir
39 $project{"WXMSWOBJS"} .= '..\msw\\';
40 $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/;
41 $file =~ s/cp?p?$/obj/;
42 $project{"WXMSWOBJS"} .= '$D\\' . $file . " ";
43 }
44
45 foreach $file (sort keys %wxHTML) {
46 next if $wxHTML{$file} =~ /\b16\b/;
47
48 $file =~ s/cp?p?$/obj/;
49 $project{"WXHTMLOBJS"} .= "..\\html\\\$D\\" . $file . " "
50 }
51
52 #$}
53 # This file was automatically generated by tmake at #$ Now()
54 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T!
55
56 # File: makefile.vc
57 # Author: Julian Smart
58 # Created: 1997
59 # Updated:
60 # Copyright: (c) 1997, Julian Smart
61 #
62 # "%W% %G%"
63 #
64 # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit)
65 # Arguments:
66 #
67 # FINAL=1 argument to nmake to build version with no debugging info.
68 # dll builds a library (wxdll.lib) suitable for creating DLLs
69 #
70 !include <..\makevc.env>
71
72 THISDIR=$(WXWIN)\src\msw
73
74 !if "$(WXMAKINGDLL)" == "1"
75 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
76 DUMMYOBJ=$D\dummydll.obj
77 !else
78 LIBTARGET=$(WXLIB)
79 DUMMYOBJ=$D\dummy.obj
80 !endif
81
82 # This one overrides the others, to be consistent with the settings in setup.h
83 MINIMAL_WXWINDOWS_SETUP=0
84
85 PERIPH_LIBS=
86 PERIPH_TARGET=
87 PERIPH_CLEAN_TARGET=
88
89 # Set to 0 if not using GLCanvas (only affects DLL build)
90 USE_GLCANVAS=1
91
92 # These are absolute paths, so that the compiler
93 # generates correct __FILE__ symbols for debugging.
94 # Otherwise you don't be able to double-click on a memory
95 # error to load that file.
96 GENDIR=$(WXDIR)\src\generic
97 COMMDIR=$(WXDIR)\src\common
98 OLEDIR=ole
99 MSWDIR=$(WXDIR)\src\msw
100 DOCDIR = $(WXDIR)\docs
101 HTMLDIR = $(WXDIR)\src\html
102 JPEGDIR = $(WXDIR)\src\jpeg
103 TIFFDIR = $(WXDIR)\src\tiff
104
105 {..\generic}.cpp{..\generic\$D}.obj:
106 cl @<<
107 $(CPPFLAGS) /Fo$@ /c /Tp $<
108 <<
109
110 {..\common}.cpp{..\common\$D}.obj:
111 cl @<<
112 $(CPPFLAGS) /Fo$@ /c /Tp $<
113 <<
114
115 {..\common}.c{..\common\$D}.obj:
116 cl @<<
117 $(CPPFLAGS2) /Fo$@ /c /Tc $<
118 <<
119
120 {..\msw}.cpp{..\msw\$D}.obj:
121 cl @<<
122 $(CPPFLAGS) /Fo$@ /c /Tp $<
123 <<
124
125 {..\msw}.c{..\msw\$D}.obj:
126 cl @<<
127 $(CPPFLAGS2) /Fo$@ /c /Tc $<
128 <<
129
130 {..\msw\ole}.cpp{..\msw\ole\$D}.obj:
131 cl @<<
132 $(CPPFLAGS) /Fo$@ /c /Tp $<
133 <<
134
135 {..\html}.cpp{..\html\$D}.obj:
136 cl @<<
137 $(CPPFLAGS) /Fo$@ /c /Tp $<
138 <<
139
140 GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
141
142 # These are generic things that don't need to be compiled on MSW,
143 # but sometimes it's useful to do so for testing purposes.
144 NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
145
146 COMMONOBJS = \
147 ..\common\$D\y_tab.obj \
148 #$ ExpandList("WXCOMMONOBJS");
149
150 MSWOBJS = #$ ExpandList("WXMSWOBJS");
151
152 HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
153
154
155 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
156 # Add $(HTMLOBJS) if wanting wxHTML classes
157 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
158
159 # Normal, static library
160 all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff $(LIBTARGET)
161
162 setuph:
163 cd $(WXDIR)\include\wx\msw
164 if not exist setup.h copy setup0.h setup.h
165 cd $(WXDIR)\src\msw
166
167 dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D $(JPEGDIR)\$D $(TIFFDIR)\$D
168
169 $D:
170 mkdir $D
171
172 $(COMMDIR)\$D:
173 mkdir $(COMMDIR)\$D
174
175 $(MSWDIR)\$D:
176 mkdir $(MSWDIR)\$D
177
178 $(GENDIR)\$D:
179 mkdir $(GENDIR)\$D
180
181 $(OLEDIR)\$D:
182 mkdir $(OLEDIR)\$D
183
184 $(HTMLDIR)\$D:
185 mkdir $(HTMLDIR)\$D
186
187 $(JPEGDIR)\$D:
188 mkdir $(JPEGDIR)\$D
189
190 $(TIFFDIR)\$D:
191 mkdir $(TIFFDIR)\$D
192
193 # wxWindows library as DLL
194 dll:
195 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
196
197 cleandll:
198 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
199
200 # wxWindows + app as DLL. Only affects main.cpp.
201 dllapp:
202 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
203
204 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
205 dllnp:
206 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
207
208 # Use this to make dummy.obj and generate a PCH.
209 # You might use the dll target, then the pch target, in order to
210 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
211 #
212 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
213 # are associated with wx.lib. When using a DLL version of wxWindows, however,
214 # the DLL is compiled without a PCH, so you only need it for compiling the app.
215 # In fact headers are compiled differently depending on whether a DLL is being made
216 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
217 # in each case) so you couldn't use the same PCH.
218 pch:
219 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
220
221 pch1: dirs $(DUMMYOBJ)
222 echo $(DUMMYOBJ)
223
224 !if "$(WXMAKINGDLL)" != "1"
225
226 ### Static library
227
228 $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
229 -erase $(LIBTARGET)
230 $(implib) @<<
231 -out:$@
232 -machine:$(CPU)
233 $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
234 <<
235
236 !else
237
238 ### Update the import library
239
240 $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
241 $(implib) @<<
242 -machine:$(CPU)
243 -def:wx.def
244 $(DUMMYOBJ) $(OBJECTS)
245 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
246 <<
247
248 !if "$(USE_GLCANVAS)" == "1"
249 GL_LIBS=opengl32.lib glu32.lib
250 # GL_LIBS_DELAY=/delayload:opengl32.dll
251 !endif
252
253 # Update the dynamic link library
254 $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
255 $(link) @<<
256 $(LINKFLAGS)
257 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
258 $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(GL_LIBS) $(WXDIR)\lib\png$(LIBEXT).lib $(WXDIR)\lib\zlib$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib
259 delayimp.lib
260 /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll
261 /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll
262 /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY)
263 <<
264
265 !endif
266
267 # /delayload:winmm.dll # Removed because it can cause a crash for some people
268
269 ########################################################
270 # Windows-specific objects
271
272 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
273 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
274
275 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
276 cl @<<
277 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
278 <<
279
280 # Compile certain files with no optimization (some files cause a
281 # compiler crash for buggy versions of VC++, e.g. 4.0).
282 # Don't forget to put FINAL=1 on the command line.
283 noopt:
284 cl @<<
285 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
286 <<
287 cl @<<
288 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
289 <<
290 cl @<<
291 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
292 <<
293 cl @<<
294 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
295 <<
296 cl @<<
297 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
298 <<
299 cl @<<
300 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
301 <<
302 cl @<<
303 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
304 <<
305 cl @<<
306 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
307 <<
308 cl @<<
309 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
310 <<
311 cl @<<
312 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
313 <<
314 cl @<<
315 $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
316 <<
317 cl @<<
318 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
319 <<
320 cl @<<
321 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
322 <<
323 cl @<<
324 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
325 <<
326 cl @<<
327 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
328 <<
329 cl @<<
330 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
331 <<
332 cl @<<
333 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
334 <<
335 cl @<<
336 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
337 <<
338 cl @<<
339 $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
340 <<
341 cl @<<
342 $(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
343 <<
344
345 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
346 cl @<<
347 $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
348 <<
349
350 ..\common\y_tab.c: ..\common\dosyacc.c
351 copy "..\common"\dosyacc.c "..\common"\y_tab.c
352
353 ..\common\lex_yy.c: ..\common\doslex.c
354 copy "..\common"\doslex.c "..\common"\lex_yy.c
355
356 $(OBJECTS): $(WXDIR)/include/wx/setup.h
357
358 ..\common\$D\unzip.obj: ..\common\unzip.c
359 cl @<<
360 $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
361 <<
362
363 # Peripheral components
364
365 png:
366 cd $(WXDIR)\src\png
367 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
368 cd $(WXDIR)\src\msw
369
370 clean_png:
371 cd $(WXDIR)\src\png
372 nmake -f makefile.vc clean
373 cd $(WXDIR)\src\msw
374
375 zlib:
376 cd $(WXDIR)\src\zlib
377 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
378 cd $(WXDIR)\src\msw
379
380 clean_zlib:
381 cd $(WXDIR)\src\zlib
382 nmake -f makefile.vc clean
383 cd $(WXDIR)\src\msw
384
385 jpeg:
386 cd $(WXDIR)\src\jpeg
387 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
388 cd $(WXDIR)\src\msw
389
390 clean_jpeg:
391 cd $(WXDIR)\src\jpeg
392 nmake -f makefile.vc clean
393 cd $(WXDIR)\src\msw
394
395 tiff:
396 cd $(WXDIR)\src\tiff
397 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
398 cd $(WXDIR)\src\msw
399
400 clean_tiff:
401 cd $(WXDIR)\src\tiff
402 nmake -f makefile.vc clean
403 cd $(WXDIR)\src\msw
404
405 rcparser:
406 cd $(WXDIR)\utils\rcparser\src
407 nmake -f makefile.vc FINAL=$(FINAL)
408 cd $(WXDIR)\src\msw
409
410 cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff
411 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
412 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
413 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
414 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
415 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
416
417
418 clean: $(PERIPH_CLEAN_TARGET)
419 -erase $(LIBTARGET)
420 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
421 -erase *.pdb
422 -erase *.sbr
423 -erase $(WXLIBNAME).pch
424 -erase $(GENDIR)\$D\*.obj
425 -erase $(GENDIR)\$D\*.pdb
426 -erase $(GENDIR)\$D\*.sbr
427 -erase $(COMMDIR)\$D\*.obj
428 -erase $(COMMDIR)\$D\*.pdb
429 -erase $(COMMDIR)\$D\*.sbr
430 -erase $(COMMDIR)\y_tab.c
431 -erase $(COMMDIR)\lex_yy.c
432 -erase $(MSWDIR)\$D\*.obj
433 -erase $(MSWDIR)\$D\*.sbr
434 -erase $(MSWDIR)\$D\*.pdb
435 -erase $(MSWDIR)\$D\*.pch
436 -erase $(OLEDIR)\$D\*.obj
437 -erase $(OLEDIR)\$D\*.sbr
438 -erase $(OLEDIR)\$D\*.pdb
439 -erase $(HTMLDIR)\$D\*.obj
440 -erase $(HTMLDIR)\$D\*.sbr
441 -erase $(HTMLDIR)\$D\*.pdb
442 -erase $(JPEGDIR)\$D\*.obj
443 -erase $(JPEGDIR)\$D\*.sbr
444 -erase $(JPEGDIR)\$D\*.idb
445 -erase $(JPEGDIR)\$D\*.pdb
446 -erase $(TIFFDIR)\$D\*.obj
447 -erase $(TIFFDIR)\$D\*.sbr
448 -erase $(TIFFDIR)\$D\*.pdb
449 -erase $(TIFFDIR)\$D\*.idb
450 -rmdir $(D)
451 -rmdir $(GENDIR)\$(D)
452 -rmdir $(COMMDIR)\$(D)
453 -rmdir $(MSWDIR)\$(D)
454 -rmdir $(OLEDIR)\$(D)
455 -rmdir $(HTMLDIR)\$(D)
456 -rmdir $(JPEGDIR)\$(D)
457 -rmdir $(TIFFDIR)\$(D)
458
459 # Making documents
460 docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
461 alldocs: docs
462 hlp: wxhlp
463 wxhlp: $(DOCDIR)/winhelp/wx.hlp
464 refhlp: $(DOCDIR)/winhelp/techref.hlp
465 rtf: $(DOCDIR)/winhelp/wx.rtf
466 pdfrtf: $(DOCDIR)/pdf/wx.rtf
467 refpdfrtf: $(DOCDIR)/pdf/techref.rtf
468 html: wxhtml
469 htb: $(DOCDIR)\htb\wx.htb
470 wxhtml: $(DOCDIR)\html\wx\wx.htm
471 htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
472 ps: wxps referencps
473 wxps: $(WXDIR)\docs\ps\wx.ps
474 referencps: $(WXDIR)\docs\ps\referenc.ps
475
476 allhlp: wxhlp
477 cd $(WXDIR)\utils\dialoged\src
478 nmake -f makefile.vc hlp
479 cd $(WXDIR)\utils\tex2rtf\src
480 nmake -f makefile.vc hlp
481 cd $(THISDIR)
482
483 allhtml: wxhtml
484 cd $(WXDIR)\utils\dialoged\src
485 nmake -f makefile.vc html
486 cd $(WXDIR)\utils\tex2rtf\src
487 nmake -f makefile.vc html
488 cd $(THISDIR)
489
490 allhtmlhelp: htmlhelp
491 cd $(WXDIR)\utils\dialoged\src
492 nmake -f makefile.vc htmlhelp
493 cd $(WXDIR)\utils\tex2rtf\src
494 nmake -f makefile.vc htmlhelp
495 cd $(THISDIR)
496
497 allhtb: htb
498 cd $(WXDIR)\utils\dialoged\src
499 nmake -f makefile.vc htb
500 cd $(WXDIR)\utils\tex2rtf\src
501 nmake -f makefile.vc htb
502 cd $(THISDIR)
503
504 allps: wxps referencps
505 cd $(WXDIR)\utils\dialoged\src
506 nmake -f makefile.vc ps
507 cd $(WXDIR)\utils\tex2rtf\src
508 nmake -f makefile.vc ps
509 cd $(THISDIR)
510
511 allpdfrtf: pdfrtf
512 cd $(WXDIR)\utils\dialoged\src
513 nmake -f makefile.vc pdfrtf
514 cd $(WXDIR)\utils\tex2rtf\src
515 nmake -f makefile.vc pdfrtf
516 cd $(THISDIR)
517
518 $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
519 cd $(DOCDIR)/latex/wx
520 -erase wx.ph
521 hc wx
522 -erase $(DOCDIR)\winhelp\wx.hlp
523 -erase $(DOCDIR)\winhelp\wx.cnt
524 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
525 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
526 cd $(THISDIR)
527
528 $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
529 cd $(DOCDIR)/latex/techref
530 -erase techref.ph
531 hc techref
532 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
533 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
534 cd $(THISDIR)
535
536 $(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
537 cd $(DOCDIR)\latex\wx
538 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
539 cd $(THISDIR)
540
541 $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
542 cd $(DOCDIR)\latex\techref
543 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
544 cd $(THISDIR)
545
546 $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
547 cd $(DOCDIR)\latex\wx
548 -copy *.wmf $(DOCDIR)\pdf
549 -copy *.bmp $(DOCDIR)\pdf
550 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
551 cd $(THISDIR)
552
553 $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
554 cd $(DOCDIR)\latex\techref
555 -copy *.wmf $(DOCDIR)\pdf
556 -copy *.bmp $(DOCDIR)\pdf
557 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
558 cd $(THISDIR)
559
560 $(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
561 cd $(DOCDIR)\latex\wx
562 -mkdir $(DOCDIR)\html\wx
563 copy *.gif $(DOCDIR)\html\wx
564 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
565 -erase $(DOCDIR)\html\wx\*.con
566 -erase $(DOCDIR)\html\wx\*.ref
567 -erase $(DOCDIR)\latex\wx\*.con
568 -erase $(DOCDIR)\latex\wx\*.ref
569 cd $(THISDIR)
570
571 $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
572 cd $(DOCDIR)\html\wx
573 -hhc wx.hhp
574 -mkdir ..\..\htmlhelp
575 -erase $(DOCDIR)\htmlhelp\wx.chm
576 move wx.chm ..\..\htmlhelp
577 cd $(THISDIR)
578
579 $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
580 cd $(WXDIR)\docs\latex\wx
581 -latex manual
582 -latex manual
583 -makeindx manual
584 -bibtex manual
585 -latex manual
586 -latex manual
587 cd $(THISDIR)
588
589 $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
590 cd $(WXDIR)\docs\latex\wx
591 -dvips32 -o wx.ps manual
592 move wx.ps $(WXDIR)\docs\ps\wx.ps
593 cd $(THISDIR)
594
595 $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
596 cd $(WXDIR)\docs\latex\wx
597 -latex referenc
598 -latex referenc
599 -makeindx referenc
600 -bibtex referenc
601 -latex referenc
602 -latex referenc
603 cd $(THISDIR)
604
605 $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
606 cd $(WXDIR)\docs\latex\wx
607 -dvips32 -o referenc.ps referenc
608 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
609 cd $(THISDIR)
610
611 # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
612 # files, renamed to htb.
613 # This can then be used with e.g. helpview.
614 # Optionally, a cached version of the .hhp file can be generated with hhp2cached.
615 $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
616 cd $(WXDIR)\docs\html\wx
617 -erase wx.zip wx.htb
618 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
619 -mkdir $(DOCDIR)\htb
620 move wx.zip $(DOCDIR)\htb\wx.htb
621 cd $(THISDIR)
622
623 # In order to force document reprocessing
624 touchmanual:
625 -touch $(WXDIR)\docs\latex\wx\manual.tex
626
627 updatedocs: touchmanual alldocs
628
629 cleandocs:
630 -erase $(DOCDIR)\winhelp\wx.hlp
631 -erase $(DOCDIR)\winhelp\wx.cnt
632 -erase $(DOCDIR)\html\wx\*.htm
633 -erase $(DOCDIR)\pdf\wx.rtf
634 -erase $(DOCDIR)\latex\wx\wx.rtf
635 -erase $(DOCDIR)\latex\wx\WX.PH
636 -erase $(DOCDIR)\htmlhelp\wx.chm
637 -erase $(DOCDIR)\htb\wx.htb
638
639 # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
640 # Office StartUp folder, and PDFMaker should be installed.
641 updatepdf: # touchmanual pdfrtf
642 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
643
644
645 MFTYPE=vc
646 makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
647 cd $(WXWIN)\distrib\msw\tmake
648 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
649 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
650