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