]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
added wxWindows shared library to link of OpenGL wxWindows shared library
[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) {
b9cc8004
VZ
16 next if $wxGeneric{$file} =~ /\bU\b/;
17
f2071dda
VZ
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/;
51f5cff3 27 $project{$tag} .= "\$(GENDIR)\\\$D\\" . $file . " "
f2071dda
VZ
28 }
29
30 foreach $file (sort keys %wxCommon) {
31 next if $wxCommon{$file} =~ /\b16\b/;
32
33 $file =~ s/cp?p?$/obj/;
51f5cff3 34 $project{"WXCOMMONOBJS"} .= "\$(COMMDIR)\\\$D\\" . $file . " "
f2071dda
VZ
35 }
36
37 foreach $file (sort keys %wxMSW) {
38 next if $wxMSW{$file} =~ /\b16\b/;
39
6a008b33 40 #! OLE files live in a subdir
51f5cff3
VZ
41 if( $wxMSW{$file} =~ /\bO\b/ ) {
42 $project{"WXMSWOBJS"} .= '$(OLEDIR)';
43 } else {
44 $project{"WXMSWOBJS"} .= '$(MSWDIR)';
45 }
f2071dda 46 $file =~ s/cp?p?$/obj/;
51f5cff3 47 $project{"WXMSWOBJS"} .= '\\$D\\' . $file . " ";
f2071dda 48 }
2131a664
VS
49
50 foreach $file (sort keys %wxHTML) {
51 next if $wxHTML{$file} =~ /\b16\b/;
52
53 $file =~ s/cp?p?$/obj/;
51f5cff3 54 $project{"WXHTMLOBJS"} .= "\$(HTMLDIR)\\\$D\\" . $file . " "
2131a664
VS
55 }
56
f2071dda 57#$}
f2071dda
VZ
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
77THISDIR=$(WXWIN)\src\msw
78
79!if "$(WXMAKINGDLL)" == "1"
80LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
81DUMMYOBJ=$D\dummydll.obj
82!else
83LIBTARGET=$(WXLIB)
84DUMMYOBJ=$D\dummy.obj
85!endif
86
f2071dda
VZ
87# This one overrides the others, to be consistent with the settings in setup.h
88MINIMAL_WXWINDOWS_SETUP=0
89
90PERIPH_LIBS=
91PERIPH_TARGET=
92PERIPH_CLEAN_TARGET=
93
3ca6a5f0
BP
94# Set to 0 if not using GLCanvas (only affects DLL build)
95USE_GLCANVAS=1
96
f2071dda
VZ
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.
101GENDIR=$(WXDIR)\src\generic
102COMMDIR=$(WXDIR)\src\common
103OLEDIR=ole
104MSWDIR=$(WXDIR)\src\msw
105DOCDIR = $(WXDIR)\docs
106HTMLDIR = $(WXDIR)\src\html
9e3cb9ee
JS
107JPEGDIR = $(WXDIR)\src\jpeg
108TIFFDIR = $(WXDIR)\src\tiff
f2071dda 109
51f5cff3 110{$(GENDIR)}.cpp{$(GENDIR)\$D}.obj:
f2071dda
VZ
111 cl @<<
112$(CPPFLAGS) /Fo$@ /c /Tp $<
113<<
114
51f5cff3 115{$(COMMDIR)}.cpp{$(COMMDIR)\$D}.obj:
f2071dda
VZ
116 cl @<<
117$(CPPFLAGS) /Fo$@ /c /Tp $<
118<<
119
51f5cff3 120{$(COMMDIR)}.c{$(COMMDIR)\$D}.obj:
9b73db3c 121 cl @<<
cc9efb9b 122$(CPPFLAGS2) /Fo$@ /c /Tc $<
9b73db3c
VZ
123<<
124
51f5cff3 125{$(MSWDIR)}.cpp{$(MSWDIR)\$D}.obj:
f2071dda
VZ
126 cl @<<
127$(CPPFLAGS) /Fo$@ /c /Tp $<
128<<
129
51f5cff3 130{$(MSWDIR)}.c{$(MSWDIR)\$D}.obj:
e6a5dc94
RD
131 cl @<<
132$(CPPFLAGS2) /Fo$@ /c /Tc $<
133<<
134
51f5cff3 135{$(OLEDIR)}.cpp{$(OLEDIR)\$D}.obj:
f2071dda
VZ
136 cl @<<
137$(CPPFLAGS) /Fo$@ /c /Tp $<
138<<
139
51f5cff3 140{$(HTMLDIR)}.cpp{$(HTMLDIR)\$D}.obj:
f2071dda
VZ
141 cl @<<
142$(CPPFLAGS) /Fo$@ /c /Tp $<
143<<
144
145GENERICOBJS= #$ 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.
149NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS");
150
151COMMONOBJS = \
51f5cff3 152 $(COMMDIR)\$D\y_tab.obj \
f2071dda
VZ
153 #$ ExpandList("WXCOMMONOBJS");
154
155MSWOBJS = #$ ExpandList("WXMSWOBJS");
156
2131a664
VS
157HTMLOBJS = #$ ExpandList("WXHTMLOBJS");
158
f2071dda
VZ
159
160# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
161# Add $(HTMLOBJS) if wanting wxHTML classes
e6a5dc94 162OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
f2071dda
VZ
163
164# Normal, static library
8e673075 165all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff regex $(LIBTARGET)
f2071dda 166
99a030f5
GT
167setuph:
168 cd $(WXDIR)\include\wx\msw
169 if not exist setup.h copy setup0.h setup.h
170 cd $(WXDIR)\src\msw
f2071dda 171
9e3cb9ee 172dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D $(JPEGDIR)\$D $(TIFFDIR)\$D
f2071dda 173
f2071dda
VZ
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
9e3cb9ee
JS
192$(JPEGDIR)\$D:
193 mkdir $(JPEGDIR)\$D
194
195$(TIFFDIR)\$D:
196 mkdir $(TIFFDIR)\$D
197
f2071dda
VZ
198# wxWindows library as DLL
199dll:
200 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
201
202cleandll:
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.
206dllapp:
207 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1
208
209# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
210dllnp:
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.
223pch:
224 nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
225
226pch1: 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)
7fee680b 238$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
f2071dda
VZ
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
bd53731e
RD
253!if "$(USE_GLCANVAS)" == "1"
254GL_LIBS=opengl32.lib glu32.lib
20a2bdc9 255# GL_LIBS_DELAY=/delayload:opengl32.dll
bd53731e
RD
256!endif
257
f2071dda 258# Update the dynamic link library
a9221a95 259$(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS)
f2071dda
VZ
260 $(link) @<<
261 $(LINKFLAGS)
262 -out:$(WXDIR)\lib\$(WXLIBNAME).dll
ab85e6cd 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
f6bcfd97
BP
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
9e85f5ec 267 /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY)
f2071dda
VZ
268<<
269
270!endif
271
9e85f5ec 272# /delayload:winmm.dll # Removed because it can cause a crash for some people
f2071dda
VZ
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
bf4d9b2b 285# Compile certain files with no optimization (some files cause a
7fee680b
JS
286# compiler crash for buggy versions of VC++, e.g. 4.0).
287# Don't forget to put FINAL=1 on the command line.
bf4d9b2b
JS
288noopt:
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
669f7a11
JS
297<<
298 cl @<<
299$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp
bf4d9b2b
JS
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
669f7a11
JS
312<<
313 cl @<<
314$(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp
bf4d9b2b
JS
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
51f5cff3 350$(COMMDIR)\$D\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c
f2071dda 351 cl @<<
51f5cff3 352$(CPPFLAGS2) /c $(COMMDIR)\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
f2071dda
VZ
353<<
354
51f5cff3
VZ
355$(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c
356 copy "$(COMMDIR)"\dosyacc.c "$(COMMDIR)"\y_tab.c
f2071dda 357
51f5cff3
VZ
358$(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c
359 copy "$(COMMDIR)"\doslex.c "$(COMMDIR)"\lex_yy.c
f2071dda
VZ
360
361$(OBJECTS): $(WXDIR)/include/wx/setup.h
362
51f5cff3 363$(COMMDIR)\$D\unzip.obj: $(COMMDIR)\unzip.c
f2071dda
VZ
364 cl @<<
365$(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@
366<<
367
368# Peripheral components
369
370png:
371 cd $(WXDIR)\src\png
3156ba6e 372 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
373 cd $(WXDIR)\src\msw
374
375clean_png:
376 cd $(WXDIR)\src\png
377 nmake -f makefile.vc clean
378 cd $(WXDIR)\src\msw
379
380zlib:
381 cd $(WXDIR)\src\zlib
3156ba6e 382 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
f2071dda
VZ
383 cd $(WXDIR)\src\msw
384
385clean_zlib:
386 cd $(WXDIR)\src\zlib
387 nmake -f makefile.vc clean
388 cd $(WXDIR)\src\msw
389
390jpeg:
391 cd $(WXDIR)\src\jpeg
3156ba6e 392 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all
f2071dda
VZ
393 cd $(WXDIR)\src\msw
394
395clean_jpeg:
396 cd $(WXDIR)\src\jpeg
397 nmake -f makefile.vc clean
398 cd $(WXDIR)\src\msw
399
5ea6dbbf
RD
400tiff:
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
405clean_tiff:
406 cd $(WXDIR)\src\tiff
407 nmake -f makefile.vc clean
408 cd $(WXDIR)\src\msw
409
8e673075
RD
410regex:
411 cd $(WXDIR)\src\regex
412 nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG)
413 cd $(WXDIR)\src\msw
414
415clean_regex:
416 cd $(WXDIR)\src\regex
417 nmake -f makefile.vc clean
418 cd $(WXDIR)\src\msw
419
f2071dda
VZ
420rcparser:
421 cd $(WXDIR)\utils\rcparser\src
422 nmake -f makefile.vc FINAL=$(FINAL)
423 cd $(WXDIR)\src\msw
424
8e673075 425cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff clean_regex
ccf0b1d7
RD
426 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
427 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
428 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
429 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb
430 -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk
50a5c3f3
RD
431
432
433clean: $(PERIPH_CLEAN_TARGET)
434 -erase $(LIBTARGET)
435 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
f2071dda
VZ
436 -erase *.pdb
437 -erase *.sbr
438 -erase $(WXLIBNAME).pch
439 -erase $(GENDIR)\$D\*.obj
440 -erase $(GENDIR)\$D\*.pdb
441 -erase $(GENDIR)\$D\*.sbr
442 -erase $(COMMDIR)\$D\*.obj
443 -erase $(COMMDIR)\$D\*.pdb
444 -erase $(COMMDIR)\$D\*.sbr
7fee680b 445 -erase $(COMMDIR)\y_tab.c
f2071dda
VZ
446 -erase $(COMMDIR)\lex_yy.c
447 -erase $(MSWDIR)\$D\*.obj
448 -erase $(MSWDIR)\$D\*.sbr
449 -erase $(MSWDIR)\$D\*.pdb
9e3cb9ee 450 -erase $(MSWDIR)\$D\*.pch
f2071dda
VZ
451 -erase $(OLEDIR)\$D\*.obj
452 -erase $(OLEDIR)\$D\*.sbr
453 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
454 -erase $(HTMLDIR)\$D\*.obj
455 -erase $(HTMLDIR)\$D\*.sbr
456 -erase $(HTMLDIR)\$D\*.pdb
9e3cb9ee
JS
457 -erase $(JPEGDIR)\$D\*.obj
458 -erase $(JPEGDIR)\$D\*.sbr
459 -erase $(JPEGDIR)\$D\*.idb
460 -erase $(JPEGDIR)\$D\*.pdb
461 -erase $(TIFFDIR)\$D\*.obj
462 -erase $(TIFFDIR)\$D\*.sbr
463 -erase $(TIFFDIR)\$D\*.pdb
464 -erase $(TIFFDIR)\$D\*.idb
f2071dda 465 -rmdir $(D)
9e3cb9ee
JS
466 -rmdir $(GENDIR)\$(D)
467 -rmdir $(COMMDIR)\$(D)
468 -rmdir $(MSWDIR)\$(D)
469 -rmdir $(OLEDIR)\$(D)
470 -rmdir $(HTMLDIR)\$(D)
471 -rmdir $(JPEGDIR)\$(D)
472 -rmdir $(TIFFDIR)\$(D)
f2071dda 473
f2071dda 474# Making documents
ab85e6cd 475docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
f2071dda 476alldocs: docs
1a3aa77f 477hlp: wxhlp
f2071dda 478wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
479refhlp: $(DOCDIR)/winhelp/techref.hlp
480rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 481pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 482refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 483html: wxhtml
f6bcfd97 484htb: $(DOCDIR)\htb\wx.htb
f2071dda 485wxhtml: $(DOCDIR)\html\wx\wx.htm
f6bcfd97 486htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
f2071dda
VZ
487ps: wxps referencps
488wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
489referencps: $(WXDIR)\docs\ps\referenc.ps
490
1a3aa77f 491allhlp: wxhlp
f2071dda
VZ
492 cd $(WXDIR)\utils\dialoged\src
493 nmake -f makefile.vc hlp
ab85e6cd
JS
494 cd $(WXDIR)\utils\tex2rtf\src
495 nmake -f makefile.vc hlp
f2071dda
VZ
496 cd $(THISDIR)
497
1a3aa77f 498allhtml: wxhtml
f2071dda
VZ
499 cd $(WXDIR)\utils\dialoged\src
500 nmake -f makefile.vc html
ab85e6cd
JS
501 cd $(WXDIR)\utils\tex2rtf\src
502 nmake -f makefile.vc html
503 cd $(THISDIR)
504
505allhtmlhelp: htmlhelp
506 cd $(WXDIR)\utils\dialoged\src
507 nmake -f makefile.vc htmlhelp
508 cd $(WXDIR)\utils\tex2rtf\src
509 nmake -f makefile.vc htmlhelp
510 cd $(THISDIR)
511
512allhtb: htb
513 cd $(WXDIR)\utils\dialoged\src
514 nmake -f makefile.vc htb
515 cd $(WXDIR)\utils\tex2rtf\src
516 nmake -f makefile.vc htb
f2071dda
VZ
517 cd $(THISDIR)
518
1a3aa77f 519allps: wxps referencps
f2071dda
VZ
520 cd $(WXDIR)\utils\dialoged\src
521 nmake -f makefile.vc ps
ab85e6cd
JS
522 cd $(WXDIR)\utils\tex2rtf\src
523 nmake -f makefile.vc ps
f2071dda
VZ
524 cd $(THISDIR)
525
1a3aa77f 526allpdfrtf: pdfrtf
f2071dda
VZ
527 cd $(WXDIR)\utils\dialoged\src
528 nmake -f makefile.vc pdfrtf
ab85e6cd
JS
529 cd $(WXDIR)\utils\tex2rtf\src
530 nmake -f makefile.vc pdfrtf
f2071dda
VZ
531 cd $(THISDIR)
532
f2071dda
VZ
533$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
534 cd $(DOCDIR)/latex/wx
535 -erase wx.ph
536 hc wx
f485492a
JS
537 -erase $(DOCDIR)\winhelp\wx.hlp
538 -erase $(DOCDIR)\winhelp\wx.cnt
f2071dda
VZ
539 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
540 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
541 cd $(THISDIR)
542
f2071dda
VZ
543$(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj
544 cd $(DOCDIR)/latex/techref
545 -erase techref.ph
546 hc techref
547 move techref.hlp $(DOCDIR)\winhelp\techref.hlp
548 move techref.cnt $(DOCDIR)\winhelp\techref.cnt
549 cd $(THISDIR)
550
551$(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
552 cd $(DOCDIR)\latex\wx
553 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp
554 cd $(THISDIR)
555
f2071dda
VZ
556$(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
557 cd $(DOCDIR)\latex\techref
558 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp
559 cd $(THISDIR)
560
561$(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
562 cd $(DOCDIR)\latex\wx
79bc2382
PA
563 -copy *.wmf $(DOCDIR)\pdf
564 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
565 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
566 cd $(THISDIR)
567
f2071dda
VZ
568$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
569 cd $(DOCDIR)\latex\techref
79bc2382
PA
570 -copy *.wmf $(DOCDIR)\pdf
571 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
572 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
573 cd $(THISDIR)
574
575$(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
576 cd $(DOCDIR)\latex\wx
577 -mkdir $(DOCDIR)\html\wx
f6bcfd97 578 copy *.gif $(DOCDIR)\html\wx
f2071dda
VZ
579 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
580 -erase $(DOCDIR)\html\wx\*.con
581 -erase $(DOCDIR)\html\wx\*.ref
582 -erase $(DOCDIR)\latex\wx\*.con
583 -erase $(DOCDIR)\latex\wx\*.ref
584 cd $(THISDIR)
585
f6bcfd97 586$(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
f2071dda
VZ
587 cd $(DOCDIR)\html\wx
588 -hhc wx.hhp
f6bcfd97 589 -mkdir ..\..\htmlhelp
f485492a 590 -erase $(DOCDIR)\htmlhelp\wx.chm
f6bcfd97 591 move wx.chm ..\..\htmlhelp
f2071dda
VZ
592 cd $(THISDIR)
593
f2071dda
VZ
594$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
595 cd $(WXDIR)\docs\latex\wx
596 -latex manual
597 -latex manual
598 -makeindx manual
599 -bibtex manual
600 -latex manual
601 -latex manual
602 cd $(THISDIR)
603
f2071dda
VZ
604$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
605 cd $(WXDIR)\docs\latex\wx
606 -dvips32 -o wx.ps manual
607 move wx.ps $(WXDIR)\docs\ps\wx.ps
608 cd $(THISDIR)
609
f2071dda
VZ
610$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
611 cd $(WXDIR)\docs\latex\wx
612 -latex referenc
613 -latex referenc
614 -makeindx referenc
615 -bibtex referenc
616 -latex referenc
617 -latex referenc
618 cd $(THISDIR)
619
620$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
621 cd $(WXDIR)\docs\latex\wx
622 -dvips32 -o referenc.ps referenc
623 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
624 cd $(THISDIR)
625
7fee680b
JS
626# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
627# files, renamed to htb.
628# This can then be used with e.g. helpview.
629# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
f6bcfd97 630$(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
7fee680b 631 cd $(WXDIR)\docs\html\wx
f1d93f0b
JS
632 -erase wx.zip wx.htb
633 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
634 -mkdir $(DOCDIR)\htb
635 move wx.zip $(DOCDIR)\htb\wx.htb
7fee680b
JS
636 cd $(THISDIR)
637
f2071dda
VZ
638# In order to force document reprocessing
639touchmanual:
640 -touch $(WXDIR)\docs\latex\wx\manual.tex
641
642updatedocs: touchmanual alldocs
643
f6bcfd97 644cleandocs:
f1d93f0b
JS
645 -erase $(DOCDIR)\winhelp\wx.hlp
646 -erase $(DOCDIR)\winhelp\wx.cnt
647 -erase $(DOCDIR)\html\wx\*.htm
648 -erase $(DOCDIR)\pdf\wx.rtf
649 -erase $(DOCDIR)\latex\wx\wx.rtf
650 -erase $(DOCDIR)\latex\wx\WX.PH
651 -erase $(DOCDIR)\htmlhelp\wx.chm
652 -erase $(DOCDIR)\htb\wx.htb
f6bcfd97 653
f2071dda
VZ
654# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
655# Office StartUp folder, and PDFMaker should be installed.
656updatepdf: # touchmanual pdfrtf
657 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
658
9be9b974
RD
659
660MFTYPE=vc
661makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
662 cd $(WXWIN)\distrib\msw\tmake
663 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
664 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
665