]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
added popupcmn.cpp
[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
ab85e6cd 165all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff $(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
f2071dda
VZ
410rcparser:
411 cd $(WXDIR)\utils\rcparser\src
412 nmake -f makefile.vc FINAL=$(FINAL)
413 cd $(WXDIR)\src\msw
414
ab85e6cd 415cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff
ccf0b1d7
RD
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
50a5c3f3
RD
421
422
423clean: $(PERIPH_CLEAN_TARGET)
424 -erase $(LIBTARGET)
425 -erase $(WXDIR)\lib\$(WXLIBNAME).pdb
f2071dda
VZ
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
7fee680b 435 -erase $(COMMDIR)\y_tab.c
f2071dda
VZ
436 -erase $(COMMDIR)\lex_yy.c
437 -erase $(MSWDIR)\$D\*.obj
438 -erase $(MSWDIR)\$D\*.sbr
439 -erase $(MSWDIR)\$D\*.pdb
9e3cb9ee 440 -erase $(MSWDIR)\$D\*.pch
f2071dda
VZ
441 -erase $(OLEDIR)\$D\*.obj
442 -erase $(OLEDIR)\$D\*.sbr
443 -erase $(OLEDIR)\$D\*.pdb
d66d9d5b
JS
444 -erase $(HTMLDIR)\$D\*.obj
445 -erase $(HTMLDIR)\$D\*.sbr
446 -erase $(HTMLDIR)\$D\*.pdb
9e3cb9ee
JS
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
f2071dda 455 -rmdir $(D)
9e3cb9ee
JS
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)
f2071dda 463
f2071dda 464# Making documents
ab85e6cd 465docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp
f2071dda 466alldocs: docs
1a3aa77f 467hlp: wxhlp
f2071dda 468wxhlp: $(DOCDIR)/winhelp/wx.hlp
f2071dda
VZ
469refhlp: $(DOCDIR)/winhelp/techref.hlp
470rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 471pdfrtf: $(DOCDIR)/pdf/wx.rtf
f2071dda 472refpdfrtf: $(DOCDIR)/pdf/techref.rtf
1a3aa77f 473html: wxhtml
f6bcfd97 474htb: $(DOCDIR)\htb\wx.htb
f2071dda 475wxhtml: $(DOCDIR)\html\wx\wx.htm
f6bcfd97 476htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
f2071dda
VZ
477ps: wxps referencps
478wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda
VZ
479referencps: $(WXDIR)\docs\ps\referenc.ps
480
1a3aa77f 481allhlp: wxhlp
f2071dda
VZ
482 cd $(WXDIR)\utils\dialoged\src
483 nmake -f makefile.vc hlp
ab85e6cd
JS
484 cd $(WXDIR)\utils\tex2rtf\src
485 nmake -f makefile.vc hlp
f2071dda
VZ
486 cd $(THISDIR)
487
1a3aa77f 488allhtml: wxhtml
f2071dda
VZ
489 cd $(WXDIR)\utils\dialoged\src
490 nmake -f makefile.vc html
ab85e6cd
JS
491 cd $(WXDIR)\utils\tex2rtf\src
492 nmake -f makefile.vc html
493 cd $(THISDIR)
494
495allhtmlhelp: 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
502allhtb: 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
f2071dda
VZ
507 cd $(THISDIR)
508
1a3aa77f 509allps: wxps referencps
f2071dda
VZ
510 cd $(WXDIR)\utils\dialoged\src
511 nmake -f makefile.vc ps
ab85e6cd
JS
512 cd $(WXDIR)\utils\tex2rtf\src
513 nmake -f makefile.vc ps
f2071dda
VZ
514 cd $(THISDIR)
515
1a3aa77f 516allpdfrtf: pdfrtf
f2071dda
VZ
517 cd $(WXDIR)\utils\dialoged\src
518 nmake -f makefile.vc pdfrtf
ab85e6cd
JS
519 cd $(WXDIR)\utils\tex2rtf\src
520 nmake -f makefile.vc pdfrtf
f2071dda
VZ
521 cd $(THISDIR)
522
f2071dda
VZ
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
f485492a
JS
527 -erase $(DOCDIR)\winhelp\wx.hlp
528 -erase $(DOCDIR)\winhelp\wx.cnt
f2071dda
VZ
529 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
530 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
531 cd $(THISDIR)
532
f2071dda
VZ
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
f2071dda
VZ
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
79bc2382
PA
553 -copy *.wmf $(DOCDIR)\pdf
554 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
555 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
556 cd $(THISDIR)
557
f2071dda
VZ
558$(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex
559 cd $(DOCDIR)\latex\techref
79bc2382
PA
560 -copy *.wmf $(DOCDIR)\pdf
561 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
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
f6bcfd97 568 copy *.gif $(DOCDIR)\html\wx
f2071dda
VZ
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
f6bcfd97 576$(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
f2071dda
VZ
577 cd $(DOCDIR)\html\wx
578 -hhc wx.hhp
f6bcfd97 579 -mkdir ..\..\htmlhelp
f485492a 580 -erase $(DOCDIR)\htmlhelp\wx.chm
f6bcfd97 581 move wx.chm ..\..\htmlhelp
f2071dda
VZ
582 cd $(THISDIR)
583
f2071dda
VZ
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
f2071dda
VZ
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
f2071dda
VZ
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
7fee680b
JS
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.
f6bcfd97 620$(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
7fee680b 621 cd $(WXDIR)\docs\html\wx
f1d93f0b
JS
622 -erase wx.zip wx.htb
623 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
624 -mkdir $(DOCDIR)\htb
625 move wx.zip $(DOCDIR)\htb\wx.htb
7fee680b
JS
626 cd $(THISDIR)
627
f2071dda
VZ
628# In order to force document reprocessing
629touchmanual:
630 -touch $(WXDIR)\docs\latex\wx\manual.tex
631
632updatedocs: touchmanual alldocs
633
f6bcfd97 634cleandocs:
f1d93f0b
JS
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
f6bcfd97 643
f2071dda
VZ
644# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
645# Office StartUp folder, and PDFMaker should be installed.
646updatepdf: # touchmanual pdfrtf
647 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
648
9be9b974
RD
649
650MFTYPE=vc
651makefile.$(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