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