]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc.t
Added wxTB_NODIVIDER and wxTB_NOALIGN so native Windows toolbar can
[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#$}
2417bf69 58# This file was automatically generated by tmake
f2071dda
VZ
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:
2417bf69 220 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) UNICODE=$(UNICODE) MSLU=$(MSLU)
f2071dda
VZ
221
222cleandll:
2417bf69 223 nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) UNICODE=$(UNICODE) MSLU=$(MSLU)
f2071dda
VZ
224
225# wxWindows + app as DLL. Only affects main.cpp.
226dllapp:
2417bf69 227 nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 UNICODE=$(UNICODE) MSLU=$(MSLU)
f2071dda
VZ
228
229# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
230dllnp:
2417bf69 231 nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 UNICODE=$(UNICODE) MSLU=$(MSLU)
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
2417bf69 297 $(DUMMYOBJ) $(OBJECTS) $(MSLU_LIBS) $(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 508rtf: $(DOCDIR)/winhelp/wx.rtf
f2071dda 509pdfrtf: $(DOCDIR)/pdf/wx.rtf
1a3aa77f 510html: wxhtml
f6bcfd97 511htb: $(DOCDIR)\htb\wx.htb
f2071dda 512wxhtml: $(DOCDIR)\html\wx\wx.htm
f6bcfd97 513htmlhelp: $(DOCDIR)\htmlhelp\wx.chm
6e8515a3 514ps: wxps
f2071dda 515wxps: $(WXDIR)\docs\ps\wx.ps
f2071dda 516
1a3aa77f 517allhlp: wxhlp
f2071dda
VZ
518 cd $(WXDIR)\utils\dialoged\src
519 nmake -f makefile.vc hlp
ab85e6cd
JS
520 cd $(WXDIR)\utils\tex2rtf\src
521 nmake -f makefile.vc hlp
6e8515a3
JS
522 cd $(WXDIR)\contrib\src\fl
523 nmake -f makefile.vc hlp
f2071dda
VZ
524 cd $(THISDIR)
525
1a3aa77f 526allhtml: wxhtml
f2071dda
VZ
527 cd $(WXDIR)\utils\dialoged\src
528 nmake -f makefile.vc html
ab85e6cd
JS
529 cd $(WXDIR)\utils\tex2rtf\src
530 nmake -f makefile.vc html
6e8515a3 531 cd $(WXDIR)\contrib\src\fl
ab85e6cd
JS
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
6e8515a3
JS
539 cd $(WXDIR)\contrib\src\fl
540 nmake -f makefile.vc htmlhelp
ab85e6cd
JS
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
6e8515a3
JS
548 cd $(WXDIR)\contrib\src\fl
549 nmake -f makefile.vc htb
f2071dda
VZ
550 cd $(THISDIR)
551
1a3aa77f 552allps: wxps referencps
f2071dda
VZ
553 cd $(WXDIR)\utils\dialoged\src
554 nmake -f makefile.vc ps
ab85e6cd
JS
555 cd $(WXDIR)\utils\tex2rtf\src
556 nmake -f makefile.vc ps
6e8515a3
JS
557 cd $(WXDIR)\contrib\src\fl
558 nmake -f makefile.vc ps
f2071dda
VZ
559 cd $(THISDIR)
560
1a3aa77f 561allpdfrtf: pdfrtf
f2071dda
VZ
562 cd $(WXDIR)\utils\dialoged\src
563 nmake -f makefile.vc pdfrtf
ab85e6cd
JS
564 cd $(WXDIR)\utils\tex2rtf\src
565 nmake -f makefile.vc pdfrtf
6e8515a3
JS
566 cd $(WXDIR)\contrib\src\fl
567 nmake -f makefile.vc pdfrtf
f2071dda
VZ
568 cd $(THISDIR)
569
f2071dda
VZ
570$(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj
571 cd $(DOCDIR)/latex/wx
572 -erase wx.ph
573 hc wx
f485492a
JS
574 -erase $(DOCDIR)\winhelp\wx.hlp
575 -erase $(DOCDIR)\winhelp\wx.cnt
f2071dda
VZ
576 move wx.hlp $(DOCDIR)\winhelp\wx.hlp
577 move wx.cnt $(DOCDIR)\winhelp\wx.cnt
578 cd $(THISDIR)
579
f2071dda
VZ
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)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
586 cd $(DOCDIR)\latex\wx
79bc2382
PA
587 -copy *.wmf $(DOCDIR)\pdf
588 -copy *.bmp $(DOCDIR)\pdf
f2071dda
VZ
589 -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
590 cd $(THISDIR)
591
f2071dda
VZ
592$(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
593 cd $(DOCDIR)\latex\wx
594 -mkdir $(DOCDIR)\html\wx
f6bcfd97 595 copy *.gif $(DOCDIR)\html\wx
f2071dda
VZ
596 -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html
597 -erase $(DOCDIR)\html\wx\*.con
598 -erase $(DOCDIR)\html\wx\*.ref
599 -erase $(DOCDIR)\latex\wx\*.con
600 -erase $(DOCDIR)\latex\wx\*.ref
601 cd $(THISDIR)
602
f6bcfd97 603$(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp
f2071dda
VZ
604 cd $(DOCDIR)\html\wx
605 -hhc wx.hhp
f6bcfd97 606 -mkdir ..\..\htmlhelp
f485492a 607 -erase $(DOCDIR)\htmlhelp\wx.chm
f6bcfd97 608 move wx.chm ..\..\htmlhelp
f2071dda
VZ
609 cd $(THISDIR)
610
f2071dda
VZ
611$(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex
612 cd $(WXDIR)\docs\latex\wx
613 -latex manual
614 -latex manual
615 -makeindx manual
616 -bibtex manual
617 -latex manual
618 -latex manual
619 cd $(THISDIR)
620
f2071dda
VZ
621$(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi
622 cd $(WXDIR)\docs\latex\wx
623 -dvips32 -o wx.ps manual
624 move wx.ps $(WXDIR)\docs\ps\wx.ps
625 cd $(THISDIR)
626
f2071dda
VZ
627$(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex
628 cd $(WXDIR)\docs\latex\wx
629 -latex referenc
630 -latex referenc
631 -makeindx referenc
632 -bibtex referenc
633 -latex referenc
634 -latex referenc
635 cd $(THISDIR)
636
637$(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
638 cd $(WXDIR)\docs\latex\wx
639 -dvips32 -o referenc.ps referenc
640 move referenc.ps $(WXDIR)\docs\ps\referenc.ps
641 cd $(THISDIR)
642
7fee680b
JS
643# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
644# files, renamed to htb.
645# This can then be used with e.g. helpview.
646# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
f6bcfd97 647$(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm
7fee680b 648 cd $(WXDIR)\docs\html\wx
f1d93f0b
JS
649 -erase wx.zip wx.htb
650 zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk
f6bcfd97
BP
651 -mkdir $(DOCDIR)\htb
652 move wx.zip $(DOCDIR)\htb\wx.htb
7fee680b
JS
653 cd $(THISDIR)
654
f2071dda
VZ
655# In order to force document reprocessing
656touchmanual:
657 -touch $(WXDIR)\docs\latex\wx\manual.tex
658
659updatedocs: touchmanual alldocs
660
f6bcfd97 661cleandocs:
f1d93f0b
JS
662 -erase $(DOCDIR)\winhelp\wx.hlp
663 -erase $(DOCDIR)\winhelp\wx.cnt
664 -erase $(DOCDIR)\html\wx\*.htm
665 -erase $(DOCDIR)\pdf\wx.rtf
666 -erase $(DOCDIR)\latex\wx\wx.rtf
667 -erase $(DOCDIR)\latex\wx\WX.PH
668 -erase $(DOCDIR)\htmlhelp\wx.chm
669 -erase $(DOCDIR)\htb\wx.htb
f6bcfd97 670
f2071dda
VZ
671# Start Word, running the GeneratePDF macro. MakeManual.dot should be in the
672# Office StartUp folder, and PDFMaker should be installed.
673updatepdf: # touchmanual pdfrtf
674 start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF"
675
9be9b974
RD
676
677MFTYPE=vc
678makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t
679 cd $(WXWIN)\distrib\msw\tmake
680 tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE)
681 copy makefile.$(MFTYPE) $(WXWIN)\src\msw
682