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