]>
Commit | Line | Data |
---|---|---|
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 | #!############################################################################# | |
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) { | |
16 | next if $wxGeneric{$file} =~ /\bU\b/; | |
17 | ||
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/; | |
27 | $project{$tag} .= "\$(GENDIR)\\\$D\\" . $file . " " | |
28 | } | |
29 | ||
30 | foreach $file (sort keys %wxCommon) { | |
31 | next if $wxCommon{$file} =~ /\b(16|U)\b/; | |
32 | ||
33 | $file =~ s/cp?p?$/obj/; | |
34 | $project{"WXCOMMONOBJS"} .= "\$(COMMDIR)\\\$D\\" . $file . " " | |
35 | } | |
36 | ||
37 | foreach $file (sort keys %wxMSW) { | |
38 | next if $wxMSW{$file} =~ /\b16\b/; | |
39 | ||
40 | #! OLE files live in a subdir | |
41 | if( $wxMSW{$file} =~ /\bO\b/ ) { | |
42 | $project{"WXMSWOBJS"} .= '$(OLEDIR)'; | |
43 | } else { | |
44 | $project{"WXMSWOBJS"} .= '$(MSWDIR)'; | |
45 | } | |
46 | $file =~ s/cp?p?$/obj/; | |
47 | $project{"WXMSWOBJS"} .= '\\$D\\' . $file . " "; | |
48 | } | |
49 | ||
50 | foreach $file (sort keys %wxHTML) { | |
51 | next if $wxHTML{$file} =~ /\b16\b/; | |
52 | ||
53 | $file =~ s/cp?p?$/obj/; | |
54 | $project{"WXHTMLOBJS"} .= "\$(HTMLDIR)\\\$D\\" . $file . " " | |
55 | } | |
56 | ||
57 | #$} | |
58 | # This file was automatically generated by tmake | |
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 | !else | |
82 | LIBTARGET=$(WXLIB) | |
83 | !endif | |
84 | ||
85 | # This one overrides the others, to be consistent with the settings in setup.h | |
86 | MINIMAL_WXWINDOWS_SETUP=0 | |
87 | ||
88 | PERIPH_LIBS= | |
89 | PERIPH_TARGET= | |
90 | PERIPH_CLEAN_TARGET= | |
91 | ||
92 | # Set to 0 if not using GLCanvas (only affects DLL build) | |
93 | USE_GLCANVAS=1 | |
94 | ||
95 | # Set to 0 if you are using MSVC 5 | |
96 | USE_MSVC_5=0 | |
97 | ||
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. | |
102 | GENDIR=$(WXDIR)\src\generic | |
103 | COMMDIR=$(WXDIR)\src\common | |
104 | OLEDIR=ole | |
105 | MSWDIR=$(WXDIR)\src\msw | |
106 | DOCDIR = $(WXDIR)\docs | |
107 | HTMLDIR = $(WXDIR)\src\html | |
108 | JPEGDIR = $(WXDIR)\src\jpeg | |
109 | TIFFDIR = $(WXDIR)\src\tiff | |
110 | REGEXDIR = $(WXDIR)\src\regex | |
111 | ||
112 | ||
113 | {$(GENDIR)}.cpp{$(GENDIR)\$D}.obj: | |
114 | cl @<< | |
115 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
116 | << | |
117 | ||
118 | {$(COMMDIR)}.cpp{$(COMMDIR)\$D}.obj: | |
119 | cl @<< | |
120 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
121 | << | |
122 | ||
123 | {$(COMMDIR)}.c{$(COMMDIR)\$D}.obj: | |
124 | cl @<< | |
125 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
126 | << | |
127 | ||
128 | {$(MSWDIR)}.cpp{$(MSWDIR)\$D}.obj: | |
129 | cl @<< | |
130 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
131 | << | |
132 | ||
133 | {$(MSWDIR)}.c{$(MSWDIR)\$D}.obj: | |
134 | cl @<< | |
135 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
136 | << | |
137 | ||
138 | {$(OLEDIR)}.cpp{$(OLEDIR)\$D}.obj: | |
139 | cl @<< | |
140 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
141 | << | |
142 | ||
143 | {$(HTMLDIR)}.cpp{$(HTMLDIR)\$D}.obj: | |
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 = \ | |
155 | $(COMMDIR)\$D\y_tab.obj \ | |
156 | #$ ExpandList("WXCOMMONOBJS"); | |
157 | ||
158 | MSWOBJS = #$ ExpandList("WXMSWOBJS"); | |
159 | ||
160 | HTMLOBJS = #$ ExpandList("WXHTMLOBJS"); | |
161 | ||
162 | ||
163 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. | |
164 | # Add $(HTMLOBJS) if wanting wxHTML classes | |
165 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) | |
166 | ||
167 | ARCHINCDIR=$(WXDIR)\lib\msw$(INCEXT) | |
168 | SETUP_H=$(ARCHINCDIR)\wx\setup.h | |
169 | ||
170 | # Normal, static library | |
171 | all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib jpeg tiff regex $(LIBTARGET) | |
172 | ||
173 | $(ARCHINCDIR)\wx: | |
174 | mkdir $(ARCHINCDIR) | |
175 | mkdir $(ARCHINCDIR)\wx | |
176 | ||
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 | ||
182 | $(SETUP_H): $(WXDIR)\include\wx\msw\setup.h | |
183 | copy $(WXDIR)\include\wx\msw\setup.h $@ | |
184 | ||
185 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D $(JPEGDIR)\$D $(TIFFDIR)\$D $(REGEXDIR)\$D $(ARCHINCDIR)\wx $(WXDIR)\$D | |
186 | ||
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 | ||
205 | $(JPEGDIR)\$D: | |
206 | mkdir $(JPEGDIR)\$D | |
207 | ||
208 | $(TIFFDIR)\$D: | |
209 | mkdir $(TIFFDIR)\$D | |
210 | ||
211 | $(REGEXDIR)\$D: | |
212 | mkdir $(REGEXDIR)\$D | |
213 | ||
214 | $(WXDIR)\$D: | |
215 | mkdir $(WXDIR)\$D | |
216 | ||
217 | ||
218 | # wxWindows library as DLL | |
219 | dll: | |
220 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) UNICODE=$(UNICODE) | |
221 | ||
222 | cleandll: | |
223 | nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) UNICODE=$(UNICODE) | |
224 | ||
225 | # wxWindows + app as DLL. Only affects main.cpp. | |
226 | dllapp: | |
227 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 UNICODE=$(UNICODE) | |
228 | ||
229 | # wxWindows + app as DLL, for Netscape plugin - remove DllMain. | |
230 | dllnp: | |
231 | nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 UNICODE=$(UNICODE) | |
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. | |
243 | pch: | |
244 | nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
245 | ||
246 | pch1: dirs $(DUMMYOBJ) | |
247 | echo $(DUMMYOBJ) | |
248 | ||
249 | !if "$(WXMAKINGDLL)" != "1" | |
250 | ||
251 | ### Static library | |
252 | ||
253 | $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) $(PERIPH_LIBS) | |
254 | -erase $(LIBTARGET) | |
255 | $(implib) @<< | |
256 | -out:$@ | |
257 | -machine:$(CPU) | |
258 | $(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS) | |
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 | ||
273 | !if "$(USE_GLCANVAS)" == "1" | |
274 | GL_LIBS=opengl32.lib glu32.lib | |
275 | # GL_LIBS_DELAY=/delayload:opengl32.dll | |
276 | !endif | |
277 | ||
278 | !if "$(USE_MSVC_5)" == "1" | |
279 | # we are too big | |
280 | INCREMENTAL=/INCREMENTAL:NO | |
281 | DELAY_LOAD= | |
282 | !else | |
283 | INCREMENTAL= | |
284 | DELAY_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 | ||
292 | # Update the dynamic link library | |
293 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) | |
294 | $(link) @<< | |
295 | $(LINKFLAGS) $(INCREMENTAL) | |
296 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
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) | |
298 | << | |
299 | ||
300 | !endif | |
301 | ||
302 | # /delayload:winmm.dll # Removed because it can cause a crash for some people | |
303 | ||
304 | ######################################################## | |
305 | # Windows-specific objects | |
306 | ||
307 | $(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H) | |
308 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp | |
309 | ||
310 | # Compile certain files with no optimization (some files cause a | |
311 | # compiler crash for buggy versions of VC++, e.g. 4.0). | |
312 | # Don't forget to put FINAL=1 on the command line. | |
313 | noopt: | |
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 | |
322 | << | |
323 | cl @<< | |
324 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp | |
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 | |
337 | << | |
338 | cl @<< | |
339 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp | |
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 | ||
375 | $(COMMDIR)\$D\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c | |
376 | cl @<< | |
377 | $(CPPFLAGS2) /c $(COMMDIR)\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
378 | << | |
379 | ||
380 | $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c | |
381 | copy "$(COMMDIR)"\dosyacc.c "$(COMMDIR)"\y_tab.c | |
382 | ||
383 | $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c | |
384 | copy "$(COMMDIR)"\doslex.c "$(COMMDIR)"\lex_yy.c | |
385 | ||
386 | $(OBJECTS): $(SETUP_H) | |
387 | ||
388 | $(COMMDIR)\$D\unzip.obj: $(COMMDIR)\unzip.c | |
389 | cl @<< | |
390 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
391 | << | |
392 | ||
393 | # Peripheral components | |
394 | ||
395 | png: | |
396 | cd $(WXDIR)\src\png | |
397 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) | |
398 | cd $(WXDIR)\src\msw | |
399 | ||
400 | clean_png: | |
401 | cd $(WXDIR)\src\png | |
402 | nmake -f makefile.vc clean | |
403 | cd $(WXDIR)\src\msw | |
404 | ||
405 | zlib: | |
406 | cd $(WXDIR)\src\zlib | |
407 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) | |
408 | cd $(WXDIR)\src\msw | |
409 | ||
410 | clean_zlib: | |
411 | cd $(WXDIR)\src\zlib | |
412 | nmake -f makefile.vc clean | |
413 | cd $(WXDIR)\src\msw | |
414 | ||
415 | jpeg: | |
416 | cd $(WXDIR)\src\jpeg | |
417 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
418 | cd $(WXDIR)\src\msw | |
419 | ||
420 | clean_jpeg: | |
421 | cd $(WXDIR)\src\jpeg | |
422 | nmake -f makefile.vc clean | |
423 | cd $(WXDIR)\src\msw | |
424 | ||
425 | tiff: | |
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 | ||
430 | clean_tiff: | |
431 | cd $(WXDIR)\src\tiff | |
432 | nmake -f makefile.vc clean | |
433 | cd $(WXDIR)\src\msw | |
434 | ||
435 | regex: | |
436 | cd $(WXDIR)\src\regex | |
437 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
438 | cd $(WXDIR)\src\msw | |
439 | ||
440 | clean_regex: | |
441 | cd $(WXDIR)\src\regex | |
442 | nmake -f makefile.vc clean | |
443 | cd $(WXDIR)\src\msw | |
444 | ||
445 | rcparser: | |
446 | cd $(WXDIR)\utils\rcparser\src | |
447 | nmake -f makefile.vc FINAL=$(FINAL) | |
448 | cd $(WXDIR)\src\msw | |
449 | ||
450 | cleanall: clean clean_png clean_zlib clean_jpeg clean_tiff clean_regex | |
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 | |
456 | ||
457 | ||
458 | clean: $(PERIPH_CLEAN_TARGET) | |
459 | -erase $(LIBTARGET) | |
460 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb | |
461 | -erase *.pdb | |
462 | -erase *.sbr | |
463 | -erase $(WXLIBNAME).pch | |
464 | -erase $(WXDIR)\$D\$(PCH) | |
465 | -erase $(WXDIR)\$D\*.pdb | |
466 | -erase $(WXDIR)\$D\*.obj | |
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 | |
473 | -erase $(COMMDIR)\y_tab.c | |
474 | -erase $(COMMDIR)\lex_yy.c | |
475 | -erase $(MSWDIR)\$D\*.obj | |
476 | -erase $(MSWDIR)\$D\*.sbr | |
477 | -erase $(MSWDIR)\$D\*.pdb | |
478 | -erase $(MSWDIR)\$D\*.pch | |
479 | -erase $(OLEDIR)\$D\*.obj | |
480 | -erase $(OLEDIR)\$D\*.sbr | |
481 | -erase $(OLEDIR)\$D\*.pdb | |
482 | -erase $(HTMLDIR)\$D\*.obj | |
483 | -erase $(HTMLDIR)\$D\*.sbr | |
484 | -erase $(HTMLDIR)\$D\*.pdb | |
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 | |
493 | -rmdir $(D) | |
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) | |
501 | -rmdir $(WXDIR)\$D | |
502 | ||
503 | # Making documents | |
504 | docs: allhlp allhtml allpdfrtf allhtb allhtmlhelp | |
505 | alldocs: docs | |
506 | hlp: wxhlp | |
507 | wxhlp: $(DOCDIR)/winhelp/wx.hlp | |
508 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
509 | pdfrtf: $(DOCDIR)/pdf/wx.rtf | |
510 | html: wxhtml | |
511 | htb: $(DOCDIR)\htb\wx.htb | |
512 | wxhtml: $(DOCDIR)\html\wx\wx.htm | |
513 | htmlhelp: $(DOCDIR)\htmlhelp\wx.chm | |
514 | ps: wxps | |
515 | wxps: $(WXDIR)\docs\ps\wx.ps | |
516 | ||
517 | allhlp: wxhlp | |
518 | cd $(WXDIR)\utils\dialoged\src | |
519 | nmake -f makefile.vc hlp | |
520 | cd $(WXDIR)\utils\tex2rtf\src | |
521 | nmake -f makefile.vc hlp | |
522 | cd $(WXDIR)\contrib\src\fl | |
523 | nmake -f makefile.vc hlp | |
524 | cd $(THISDIR) | |
525 | ||
526 | allhtml: wxhtml | |
527 | cd $(WXDIR)\utils\dialoged\src | |
528 | nmake -f makefile.vc html | |
529 | cd $(WXDIR)\utils\tex2rtf\src | |
530 | nmake -f makefile.vc html | |
531 | cd $(WXDIR)\contrib\src\fl | |
532 | cd $(THISDIR) | |
533 | ||
534 | allhtmlhelp: 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 $(WXDIR)\contrib\src\fl | |
540 | nmake -f makefile.vc htmlhelp | |
541 | cd $(THISDIR) | |
542 | ||
543 | allhtb: 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 | |
548 | cd $(WXDIR)\contrib\src\fl | |
549 | nmake -f makefile.vc htb | |
550 | cd $(THISDIR) | |
551 | ||
552 | allps: wxps referencps | |
553 | cd $(WXDIR)\utils\dialoged\src | |
554 | nmake -f makefile.vc ps | |
555 | cd $(WXDIR)\utils\tex2rtf\src | |
556 | nmake -f makefile.vc ps | |
557 | cd $(WXDIR)\contrib\src\fl | |
558 | nmake -f makefile.vc ps | |
559 | cd $(THISDIR) | |
560 | ||
561 | allpdfrtf: pdfrtf | |
562 | cd $(WXDIR)\utils\dialoged\src | |
563 | nmake -f makefile.vc pdfrtf | |
564 | cd $(WXDIR)\utils\tex2rtf\src | |
565 | nmake -f makefile.vc pdfrtf | |
566 | cd $(WXDIR)\contrib\src\fl | |
567 | nmake -f makefile.vc pdfrtf | |
568 | cd $(THISDIR) | |
569 | ||
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 | |
574 | -erase $(DOCDIR)\winhelp\wx.hlp | |
575 | -erase $(DOCDIR)\winhelp\wx.cnt | |
576 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp | |
577 | move wx.cnt $(DOCDIR)\winhelp\wx.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 | ||
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 | |
587 | -copy *.wmf $(DOCDIR)\pdf | |
588 | -copy *.bmp $(DOCDIR)\pdf | |
589 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf | |
590 | cd $(THISDIR) | |
591 | ||
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 | |
595 | copy *.gif $(DOCDIR)\html\wx | |
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 | ||
603 | $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp | |
604 | cd $(DOCDIR)\html\wx | |
605 | -hhc wx.hhp | |
606 | -mkdir ..\..\htmlhelp | |
607 | -erase $(DOCDIR)\htmlhelp\wx.chm | |
608 | move wx.chm ..\..\htmlhelp | |
609 | cd $(THISDIR) | |
610 | ||
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 | ||
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 | ||
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 | ||
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. | |
647 | $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm | |
648 | cd $(WXDIR)\docs\html\wx | |
649 | -erase wx.zip wx.htb | |
650 | zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk | |
651 | -mkdir $(DOCDIR)\htb | |
652 | move wx.zip $(DOCDIR)\htb\wx.htb | |
653 | cd $(THISDIR) | |
654 | ||
655 | # In order to force document reprocessing | |
656 | touchmanual: | |
657 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
658 | ||
659 | updatedocs: touchmanual alldocs | |
660 | ||
661 | cleandocs: | |
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 | |
670 | ||
671 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the | |
672 | # Office StartUp folder, and PDFMaker should be installed. | |
673 | updatepdf: # touchmanual pdfrtf | |
674 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" | |
675 | ||
676 | ||
677 | MFTYPE=vc | |
678 | makefile.$(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 |