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