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