]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
added missing object file for vidxanm to unix makefile
[wxWidgets.git] / distrib / msw / tmake / vc.t
CommitLineData
f2071dda
VZ
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#!#############################################################################
f2071dda
VZ
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
6a008b33
VZ
38 #! OLE files live in a subdir
39 $project{"WXMSWOBJS"} .= '..\msw\\';
40 $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/;
f2071dda 41 $file =~ s/cp?p?$/obj/;
6a008b33 42 $project{"WXMSWOBJS"} .= '$D\\' . $file . " ";
f2071dda 43 }
2131a664
VS
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
f2071dda 52#$}
f2071dda
VZ
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
72THISDIR=$(WXWIN)\src\msw
73
74!if "$(WXMAKINGDLL)" == "1"
75LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
76DUMMYOBJ=$D\dummydll.obj
77!else
78LIBTARGET=$(WXLIB)
79DUMMYOBJ=$D\dummy.obj
80!endif
81
82# Please set these according to the settings in setup.h, so we can include
83# the appropriate libraries in wx.lib
84
85# This one overrides the others, to be consistent with the settings in setup.h
86MINIMAL_WXWINDOWS_SETUP=0
87
88PERIPH_LIBS=
89PERIPH_TARGET=
90PERIPH_CLEAN_TARGET=
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.
96GENDIR=$(WXDIR)\src\generic
97COMMDIR=$(WXDIR)\src\common
98OLEDIR=ole
99MSWDIR=$(WXDIR)\src\msw
100DOCDIR = $(WXDIR)\docs
101HTMLDIR = $(WXDIR)\src\html
102
103{..\generic}.cpp{..\generic\$D}.obj:
104 cl @<<
105$(CPPFLAGS) /Fo$@ /c /Tp $<
106<<
107
108{..\common}.cpp{..\common\$D}.obj:
109 cl @<<
110$(CPPFLAGS) /Fo$@ /c /Tp $<
111<<
112
9b73db3c
VZ
113{..\common}.c{..\common\$D}.obj:
114 cl @<<
cc9efb9b 115$(CPPFLAGS2) /Fo$@ /c /Tc $<
9b73db3c
VZ
116<<
117
f2071dda
VZ
118{..\msw}.cpp{..\msw\$D}.obj:
119 cl @<<
120$(CPPFLAGS) /Fo$@ /c /Tp $<
121<<
122
e6a5dc94
RD
123{..\msw}.c{..\msw\$D}.obj:
124 cl @<<
125$(CPPFLAGS2) /Fo$@ /c /Tc $<
126<<
127
f2071dda
VZ
128{..\msw\ole}.cpp{..\msw\ole\$D}.obj:
129 cl @<<
130$(CPPFLAGS) /Fo$@ /c /Tp $<
131<<
132
133{..\html}.cpp{..\html\$D}.obj:
134 cl @<<
135$(CPPFLAGS) /Fo$@ /c /Tp $<
136<<
137
138GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
139
140# These are generic things that don't need to be compiled on MSW,
141# but sometimes it's useful to do so for testing purposes.
142NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
143
144COMMONOBJS = \
145 ..\common\$D\y_tab.obj \
146 #$ ExpandList("WXCOMMONOBJS");
147
148MSWOBJS = #$ ExpandList("WXMSWOBJS");
149
2131a664
VS
150HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
151
f2071dda
VZ
152
153# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
154# Add $(HTMLOBJS) if wanting wxHTML classes
e6a5dc94 155OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
f2071dda
VZ
156
157# Normal, static library
5ea6dbbf 158all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET)
f2071dda
VZ
159
160dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
161
162
163test: $(MSWDIR)\$D\wave.obj
164test2: ..\common\Debug\config.obj
165
166$D:
167 mkdir $D
168
169$(COMMDIR)\$D:
170 mkdir $(COMMDIR)\$D
171
172$(MSWDIR)\$D:
173 mkdir $(MSWDIR)\$D
174
175$(GENDIR)\$D:
176 mkdir $(GENDIR)\$D
177
178$(OLEDIR)\$D:
179 mkdir $(OLEDIR)\$D
180
181$(HTMLDIR)\$D:
182 mkdir $(HTMLDIR)\$D
183
184# wxWindows library as DLL
185dll:
186 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
187
188cleandll:
189 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
190
191# wxWindows + app as DLL. Only affects main.cpp.
192dllapp:
193 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
194
195# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
196dllnp:
197 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1
198
199# Use this to make dummy.obj and generate a PCH.
200# You might use the dll target, then the pch target, in order to
201# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
202#
203# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
204# are associated with wx.lib. When using a DLL version of wxWindows, however,
205# the DLL is compiled without a PCH, so you only need it for compiling the app.
206# In fact headers are compiled differently depending on whether a DLL is being made
207# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
208# in each case) so you couldn't use the same PCH.
209pch:
210 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
211
212pch1: dirs $(DUMMYOBJ)
213 echo $(DUMMYOBJ)
214
215!if "$(WXMAKINGDLL)" != "1"
216
217### Static library
218
219$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
220 -erase $(LIBTARGET)
221 $(implib) @<<
222-out:$@
223-machine:$(CPU)
224$(OBJECTS) $(PERIPH_LIBS)
225<<
226
227!else
228
229### Update the import library
230
231$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS)
232 $(implib) @<<
233 -machine:$(CPU)
234 -def:wx.def
235 $(DUMMYOBJ) $(OBJECTS)
236 -out:$(WXDIR)\lib\$(WXLIBNAME).lib
237<<
238
bd53731e
RD
239!if "$(USE_GLCANVAS)" == "1"
240GL_LIBS=opengl32.lib glu32.lib
241!endif
242
f2071dda 243# Update the dynamic link library
a9221a95 244$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
245 $(link) @<<
246 $(LINKFLAGS)
247 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
bd53731e 248 $(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\xpm$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib
f2071dda
VZ
249<<
250
251!endif
252
253
254########################################################
255# Windows-specific objects
256
257$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
258 cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp
259
260$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
261 cl @<<
262$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
263<<
264
bf4d9b2b
JS
265# Compile certain files with no optimization (some files cause a
266# compiler crash for buggy versions of VC++, e.g. 4.0)
267noopt:
268 cl @<<
269$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
270<<
271 cl @<<
272$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp
273<<
274 cl @<<
275$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp
669f7a11
JS
276<<
277 cl @<<
278$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
bf4d9b2b
JS
279<<
280 cl @<<
281$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp
282<<
283 cl @<<
284$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp
285<<
286 cl @<<
287$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp
288<<
289 cl @<<
290$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp
669f7a11
JS
291<<
292 cl @<<
293$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
bf4d9b2b
JS
294<<
295 cl @<<
296$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp
297<<
298 cl @<<
299$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp
300<<
301 cl @<<
302$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp
303<<
304 cl @<<
305$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp
306<<
307 cl @<<
308$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp
309<<
310 cl @<<
311$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp
312<<
313 cl @<<
314$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp
315<<
316 cl @<<
317$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp
318<<
319 cl @<<
320$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp
321<<
322 cl @<<
323$(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp
324<<
325 cl @<<
326$(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp
327<<
328
f2071dda
VZ
329# If taking wxWindows from CVS, setup.h doesn't exist yet.
330# Actually the 'if not exist setup.h' test doesn't work
331# (copies the file anyway)
332# we'll have to comment this rule out.
333
334# $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
335# cd "$(WXDIR)"\include\wx\msw
336# if not exist setup.h copy setup0.h setup.h
337# cd "$(WXDIR)"\src\msw
338
339..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
340 cl @<<
341$(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
342<<
343
344..\common\y_tab.c: ..\common\dosyacc.c
345 copy "..\common"\dosyacc.c "..\common"\y_tab.c
346
347..\common\lex_yy.c: ..\common\doslex.c
348 copy "..\common"\doslex.c "..\common"\lex_yy.c
349
350$(OBJECTS): $(WXDIR)/include/wx/setup.h
351
352..\common\$D\unzip.obj: ..\common\unzip.c
353 cl @<<
354$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
355<<
356
357# Peripheral components
358
359png:
360 cd $(WXDIR)\src\png
3156ba6e 361 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
362 cd $(WXDIR)\src\msw
363
364clean_png:
365 cd $(WXDIR)\src\png
366 nmake -f makefile.vc clean
367 cd $(WXDIR)\src\msw
368
369zlib:
370 cd $(WXDIR)\src\zlib
3156ba6e 371 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
372 cd $(WXDIR)\src\msw
373
374clean_zlib:
375 cd $(WXDIR)\src\zlib
376 nmake -f makefile.vc clean
377 cd $(WXDIR)\src\msw
378
379jpeg:
380 cd $(WXDIR)\src\jpeg
3156ba6e 381 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
382 cd $(WXDIR)\src\msw
383
384clean_jpeg:
385 cd $(WXDIR)\src\jpeg
386 nmake -f makefile.vc clean
387 cd $(WXDIR)\src\msw
388
5ea6dbbf
RD
389tiff:
390 cd $(WXDIR)\src\tiff
391 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
392 cd $(WXDIR)\src\msw
393
394clean_tiff:
395 cd $(WXDIR)\src\tiff
396 nmake -f makefile.vc clean
397 cd $(WXDIR)\src\msw
398
f2071dda
VZ
399xpm:
400 cd $(WXDIR)\src\xpm
3156ba6e 401 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
402 cd $(WXDIR)\src\msw
403
404clean_xpm:
405 cd $(WXDIR)\src\xpm
406 nmake -f makefile.vc clean
407 cd $(WXDIR)\src\msw
408
409rcparser:
410 cd $(WXDIR)\utils\rcparser\src
411 nmake -f makefile.vc FINAL=$(FINAL)
412 cd $(WXDIR)\src\msw
413
50a5c3f3 414cleanall: clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
ccf0b1d7
RD
415 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
416 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
417 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
418 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
419 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
50a5c3f3
RD
420
421
422clean: $(PERIPH_CLEAN_TARGET)
423 -erase $(LIBTARGET)
424 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
f2071dda
VZ
425 -erase *.pdb
426 -erase *.sbr
427 -erase $(WXLIBNAME).pch
428 -erase $(GENDIR)\$D\*.obj
429 -erase $(GENDIR)\$D\*.pdb
430 -erase $(GENDIR)\$D\*.sbr
431 -erase $(COMMDIR)\$D\*.obj
432 -erase $(COMMDIR)\$D\*.pdb
433 -erase $(COMMDIR)\$D\*.sbr
434 -erase $(COMMDIR)\\y_tab.c
435 -erase $(COMMDIR)\lex_yy.c
436 -erase $(MSWDIR)\$D\*.obj
437 -erase $(MSWDIR)\$D\*.sbr
438 -erase $(MSWDIR)\$D\*.pdb
439 -erase $(OLEDIR)\$D\*.obj
440 -erase $(OLEDIR)\$D\*.sbr
441 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
442 -erase $(HTMLDIR)\$D\*.obj
443 -erase $(HTMLDIR)\$D\*.sbr
444 -erase $(HTMLDIR)\$D\*.pdb
f2071dda
VZ
445 -rmdir $(D)
446 -rmdir ole\$(D)
447 -rmdir ..\generic\$(D)
448 -rmdir ..\common\$(D)
d66d9d5b 449 -rmdir ..\html\$(D)
f2071dda 450
f2071dda
VZ
451
452# Making documents
453docs: allhlp allhtml allpdfrtf
454alldocs: docs
1a3aa77f 455hlp: wxhlp
f2071dda 456wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
457refhlp: $(DOCDIR)/winhelp/techref.hlp
458rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 459pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 460refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 461html: wxhtml
f2071dda
VZ
462wxhtml: $(DOCDIR)\html\wx\wx.htm
463htmlhelp: $(DOCDIR)\html\wx\wx.chm
f2071dda
VZ
464ps: wxps referencps
465wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
466referencps: $(WXDIR)\docs\ps\referenc.ps
467
1a3aa77f 468allhlp: wxhlp
f2071dda
VZ
469 cd $(WXDIR)\utils\dialoged\src
470 nmake -f makefile.vc hlp
471 cd $(THISDIR)
472
473# cd $(WXDIR)\utils\wxhelp\src
474# nmake -f makefile.vc hlp
475# cd $(WXDIR)\utils\tex2rtf\src
476# nmake -f makefile.vc hlp
477# cd $(WXDIR)\utils\wxgraph\src
478# nmake -f makefile.vc hlp
479# cd $(WXDIR)\utils\wxchart\src
480# nmake -f makefile.vc hlp
481# cd $(WXDIR)\utils\wxtree\src
482# nmake -f makefile.vc hlp
483# cd $(WXDIR)\utils\wxbuild\src
484# nmake -f makefile.vc hlp
485# cd $(WXDIR)\utils\wxgrid\src
486# nmake -f makefile.vc hlp
487
1a3aa77f 488allhtml: wxhtml
f2071dda
VZ
489 cd $(WXDIR)\utils\dialoged\src
490 nmake -f makefile.vc html
491 cd $(THISDIR)
492
493# nmake -f makefile.vc html
494# cd $(WXDIR)\utils\dialoged\src
495# nmake -f makefile.vc html
496# cd $(WXDIR)\utils\hytext\src
497# nmake -f makefile.vc html
498# cd $(WXDIR)\utils\wxhelp\src
499# nmake -f makefile.vc html
500# cd $(WXDIR)\utils\tex2rtf\src
501# nmake -f makefile.vc html
502# cd $(WXDIR)\utils\wxgraph\src
503# nmake -f makefile.vc html
504# cd $(WXDIR)\utils\wxchart\src
505# nmake -f makefile.vc html
506# cd $(WXDIR)\utils\wxtree\src
507# nmake -f makefile.vc html
508
1a3aa77f 509allps: wxps referencps
f2071dda
VZ
510 cd $(WXDIR)\utils\dialoged\src
511 nmake -f makefile.vc ps
512 cd $(THISDIR)
513
1a3aa77f 514allpdfrtf: pdfrtf
f2071dda
VZ
515 cd $(WXDIR)\utils\dialoged\src
516 nmake -f makefile.vc pdfrtf
517 cd $(THISDIR)
518
519# cd $(WXDIR)\utils\wxhelp\src
520# nmake -f makefile.vc ps
521# cd $(WXDIR)\utils\tex2rtf\src
522# nmake -f makefile.vc ps
523# cd $(WXDIR)\utils\wxgraph\src
524# nmake -f makefile.vc ps
525# cd $(WXDIR)\utils\wxchart\src
526# nmake -f makefile.vc ps
527# cd $(WXDIR)\utils\wxtree\src
528# nmake -f makefile.vc ps
529# cd $(THISDIR)
530
531$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
532 cd $(DOCDIR)/latex/wx
533 -erase wx.ph
534 hc wx
535 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
536 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
537 cd $(THISDIR)
538
f2071dda
VZ
539$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
540 cd $(DOCDIR)/latex/techref
541 -erase techref.ph
542 hc techref
543 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
544 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
545 cd $(THISDIR)
546
547$(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
548 cd $(DOCDIR)\latex\wx
549 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
550 cd $(THISDIR)
551
f2071dda
VZ
552$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
553 cd $(DOCDIR)\latex\techref
554 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
555 cd $(THISDIR)
556
557$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
558 cd $(DOCDIR)\latex\wx
79bc2382
PA
559 -copy *.wmf $(DOCDIR)\pdf
560 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
561 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
562 cd $(THISDIR)
563
f2071dda
VZ
564$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
565 cd $(DOCDIR)\latex\techref
79bc2382
PA
566 -copy *.wmf $(DOCDIR)\pdf
567 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
568 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
569 cd $(THISDIR)
570
571$(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
572 cd $(DOCDIR)\latex\wx
573 -mkdir $(DOCDIR)\html\wx
574 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
575 -erase $(DOCDIR)\html\wx\*.con
576 -erase $(DOCDIR)\html\wx\*.ref
577 -erase $(DOCDIR)\latex\wx\*.con
578 -erase $(DOCDIR)\latex\wx\*.ref
579 cd $(THISDIR)
580
581$(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
582 cd $(DOCDIR)\html\wx
583 -hhc wx.hhp
584 cd $(THISDIR)
585
f2071dda
VZ
586$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
587 cd $(WXDIR)\docs\latex\wx
588 -latex manual
589 -latex manual
590 -makeindx manual
591 -bibtex manual
592 -latex manual
593 -latex manual
594 cd $(THISDIR)
595
f2071dda
VZ
596$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
597 cd $(WXDIR)\docs\latex\wx
598 -dvips32 -o wx.ps manual
599 move wx.ps $(WXDIR)\docs\ps\wx.ps
600 cd $(THISDIR)
601
f2071dda
VZ
602$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
603 cd $(WXDIR)\docs\latex\wx
604 -latex referenc
605 -latex referenc
606 -makeindx referenc
607 -bibtex referenc
608 -latex referenc
609 -latex referenc
610 cd $(THISDIR)
611
612$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
613 cd $(WXDIR)\docs\latex\wx
614 -dvips32 -o referenc.ps referenc
615 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
616 cd $(THISDIR)
617
618# In order to force document reprocessing
619touchmanual:
620 -touch $(WXDIR)\docs\latex\wx\manual.tex
621
622updatedocs: touchmanual alldocs
623
624# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
625# Office StartUp folder, and PDFMaker should be installed.
626updatepdf: # touchmanual pdfrtf
627 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
628
9be9b974
RD
629
630MFTYPE=vc
631makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
632 cd $(WXWIN)\distrib\msw\tmake
633 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
634 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
635