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