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