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