]>
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) { | |
16 | my $tag = ""; | |
17 | if ( $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/ ) { | |
18 | $tag = "WXNONESSENTIALOBJS"; | |
19 | } | |
20 | else { | |
21 | $tag = "WXGENERICOBJS"; | |
22 | } | |
23 | ||
24 | $file =~ s/cp?p?$/obj/; | |
25 | $project{$tag} .= "..\\generic\\\$D\\" . $file . " " | |
26 | } | |
27 | ||
28 | foreach $file (sort keys %wxCommon) { | |
29 | next if $wxCommon{$file} =~ /\b16\b/; | |
30 | ||
31 | $file =~ s/cp?p?$/obj/; | |
32 | $project{"WXCOMMONOBJS"} .= "..\\common\\\$D\\" . $file . " " | |
33 | } | |
34 | ||
35 | foreach $file (sort keys %wxMSW) { | |
36 | next if $wxMSW{$file} =~ /\b16\b/; | |
37 | ||
6a008b33 VZ |
38 | #! OLE files live in a subdir |
39 | $project{"WXMSWOBJS"} .= '..\msw\\'; | |
40 | $project{"WXMSWOBJS"} .= 'ole\\' if $wxMSW{$file} =~ /\bO\b/; | |
f2071dda | 41 | $file =~ s/cp?p?$/obj/; |
6a008b33 | 42 | $project{"WXMSWOBJS"} .= '$D\\' . $file . " "; |
f2071dda | 43 | } |
2131a664 VS |
44 | |
45 | foreach $file (sort keys %wxHTML) { | |
46 | next if $wxHTML{$file} =~ /\b16\b/; | |
47 | ||
48 | $file =~ s/cp?p?$/obj/; | |
49 | $project{"WXHTMLOBJS"} .= "..\\html\\\$D\\" . $file . " " | |
50 | } | |
51 | ||
f2071dda | 52 | #$} |
f2071dda VZ |
53 | # This file was automatically generated by tmake at #$ Now() |
54 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T! | |
55 | ||
56 | # File: makefile.vc | |
57 | # Author: Julian Smart | |
58 | # Created: 1997 | |
59 | # Updated: | |
60 | # Copyright: (c) 1997, Julian Smart | |
61 | # | |
62 | # "%W% %G%" | |
63 | # | |
64 | # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit) | |
65 | # Arguments: | |
66 | # | |
67 | # FINAL=1 argument to nmake to build version with no debugging info. | |
68 | # dll builds a library (wxdll.lib) suitable for creating DLLs | |
69 | # | |
70 | !include <..\makevc.env> | |
71 | ||
72 | THISDIR=$(WXWIN)\src\msw | |
73 | ||
74 | !if "$(WXMAKINGDLL)" == "1" | |
75 | LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll | |
76 | DUMMYOBJ=$D\dummydll.obj | |
77 | !else | |
78 | LIBTARGET=$(WXLIB) | |
79 | DUMMYOBJ=$D\dummy.obj | |
80 | !endif | |
81 | ||
f2071dda VZ |
82 | # This one overrides the others, to be consistent with the settings in setup.h |
83 | MINIMAL_WXWINDOWS_SETUP=0 | |
84 | ||
85 | PERIPH_LIBS= | |
86 | PERIPH_TARGET= | |
87 | PERIPH_CLEAN_TARGET= | |
88 | ||
3ca6a5f0 BP |
89 | # Set to 0 if not using GLCanvas (only affects DLL build) |
90 | USE_GLCANVAS=1 | |
91 | ||
f2071dda VZ |
92 | # These are absolute paths, so that the compiler |
93 | # generates correct __FILE__ symbols for debugging. | |
94 | # Otherwise you don't be able to double-click on a memory | |
95 | # error to load that file. | |
96 | GENDIR=$(WXDIR)\src\generic | |
97 | COMMDIR=$(WXDIR)\src\common | |
98 | OLEDIR=ole | |
99 | MSWDIR=$(WXDIR)\src\msw | |
100 | DOCDIR = $(WXDIR)\docs | |
101 | HTMLDIR = $(WXDIR)\src\html | |
102 | ||
103 | {..\generic}.cpp{..\generic\$D}.obj: | |
104 | cl @<< | |
105 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
106 | << | |
107 | ||
108 | {..\common}.cpp{..\common\$D}.obj: | |
109 | cl @<< | |
110 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
111 | << | |
112 | ||
9b73db3c VZ |
113 | {..\common}.c{..\common\$D}.obj: |
114 | cl @<< | |
cc9efb9b | 115 | $(CPPFLAGS2) /Fo$@ /c /Tc $< |
9b73db3c VZ |
116 | << |
117 | ||
f2071dda VZ |
118 | {..\msw}.cpp{..\msw\$D}.obj: |
119 | cl @<< | |
120 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
121 | << | |
122 | ||
e6a5dc94 RD |
123 | {..\msw}.c{..\msw\$D}.obj: |
124 | cl @<< | |
125 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
126 | << | |
127 | ||
f2071dda VZ |
128 | {..\msw\ole}.cpp{..\msw\ole\$D}.obj: |
129 | cl @<< | |
130 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
131 | << | |
132 | ||
133 | {..\html}.cpp{..\html\$D}.obj: | |
134 | cl @<< | |
135 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
136 | << | |
137 | ||
138 | GENERICOBJS= #$ ExpandList("WXGENERICOBJS"); | |
139 | ||
140 | # These are generic things that don't need to be compiled on MSW, | |
141 | # but sometimes it's useful to do so for testing purposes. | |
142 | NONESSENTIALOBJS= #$ ExpandList("WXNONESSENTIALOBJS"); | |
143 | ||
144 | COMMONOBJS = \ | |
145 | ..\common\$D\y_tab.obj \ | |
146 | #$ ExpandList("WXCOMMONOBJS"); | |
147 | ||
148 | MSWOBJS = #$ ExpandList("WXMSWOBJS"); | |
149 | ||
2131a664 VS |
150 | HTMLOBJS = #$ ExpandList("WXHTMLOBJS"); |
151 | ||
f2071dda VZ |
152 | |
153 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. | |
154 | # Add $(HTMLOBJS) if wanting wxHTML classes | |
e6a5dc94 | 155 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) |
f2071dda VZ |
156 | |
157 | # Normal, static library | |
5ea6dbbf | 158 | all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET) |
f2071dda VZ |
159 | |
160 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D | |
161 | ||
162 | ||
f2071dda VZ |
163 | $D: |
164 | mkdir $D | |
165 | ||
166 | $(COMMDIR)\$D: | |
167 | mkdir $(COMMDIR)\$D | |
168 | ||
169 | $(MSWDIR)\$D: | |
170 | mkdir $(MSWDIR)\$D | |
171 | ||
172 | $(GENDIR)\$D: | |
173 | mkdir $(GENDIR)\$D | |
174 | ||
175 | $(OLEDIR)\$D: | |
176 | mkdir $(OLEDIR)\$D | |
177 | ||
178 | $(HTMLDIR)\$D: | |
179 | mkdir $(HTMLDIR)\$D | |
180 | ||
181 | # wxWindows library as DLL | |
182 | dll: | |
183 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
184 | ||
185 | cleandll: | |
186 | nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
187 | ||
188 | # wxWindows + app as DLL. Only affects main.cpp. | |
189 | dllapp: | |
190 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 | |
191 | ||
192 | # wxWindows + app as DLL, for Netscape plugin - remove DllMain. | |
193 | dllnp: | |
194 | nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 | |
195 | ||
196 | # Use this to make dummy.obj and generate a PCH. | |
197 | # You might use the dll target, then the pch target, in order to | |
198 | # generate a DLL, then a PCH/dummy.obj for compiling your applications with. | |
199 | # | |
200 | # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH | |
201 | # are associated with wx.lib. When using a DLL version of wxWindows, however, | |
202 | # the DLL is compiled without a PCH, so you only need it for compiling the app. | |
203 | # In fact headers are compiled differently depending on whether a DLL is being made | |
204 | # or an app is calling the DLL exported functionality (WXDLLEXPORT is different | |
205 | # in each case) so you couldn't use the same PCH. | |
206 | pch: | |
207 | nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
208 | ||
209 | pch1: dirs $(DUMMYOBJ) | |
210 | echo $(DUMMYOBJ) | |
211 | ||
212 | !if "$(WXMAKINGDLL)" != "1" | |
213 | ||
214 | ### Static library | |
215 | ||
216 | $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS) | |
217 | -erase $(LIBTARGET) | |
218 | $(implib) @<< | |
219 | -out:$@ | |
220 | -machine:$(CPU) | |
7fee680b | 221 | $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS) |
f2071dda VZ |
222 | << |
223 | ||
224 | !else | |
225 | ||
226 | ### Update the import library | |
227 | ||
228 | $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) | |
229 | $(implib) @<< | |
230 | -machine:$(CPU) | |
231 | -def:wx.def | |
232 | $(DUMMYOBJ) $(OBJECTS) | |
233 | -out:$(WXDIR)\lib\$(WXLIBNAME).lib | |
234 | << | |
235 | ||
bd53731e RD |
236 | !if "$(USE_GLCANVAS)" == "1" |
237 | GL_LIBS=opengl32.lib glu32.lib | |
20a2bdc9 | 238 | # GL_LIBS_DELAY=/delayload:opengl32.dll |
bd53731e RD |
239 | !endif |
240 | ||
f2071dda | 241 | # Update the dynamic link library |
a9221a95 | 242 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) |
f2071dda VZ |
243 | $(link) @<< |
244 | $(LINKFLAGS) | |
245 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
bd53731e | 246 | $(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\xpm$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib |
f6bcfd97 BP |
247 | delayimp.lib |
248 | /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll | |
249 | /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll | |
9e85f5ec | 250 | /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY) |
f2071dda VZ |
251 | << |
252 | ||
253 | !endif | |
254 | ||
9e85f5ec | 255 | # /delayload:winmm.dll # Removed because it can cause a crash for some people |
f2071dda VZ |
256 | |
257 | ######################################################## | |
258 | # Windows-specific objects | |
259 | ||
260 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
261 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
262 | ||
263 | $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
264 | cl @<< | |
265 | $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp | |
266 | << | |
267 | ||
bf4d9b2b | 268 | # Compile certain files with no optimization (some files cause a |
7fee680b JS |
269 | # compiler crash for buggy versions of VC++, e.g. 4.0). |
270 | # Don't forget to put FINAL=1 on the command line. | |
bf4d9b2b JS |
271 | noopt: |
272 | cl @<< | |
273 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp | |
274 | << | |
275 | cl @<< | |
276 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp | |
277 | << | |
278 | cl @<< | |
279 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp | |
669f7a11 JS |
280 | << |
281 | cl @<< | |
282 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp | |
bf4d9b2b JS |
283 | << |
284 | cl @<< | |
285 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp | |
286 | << | |
287 | cl @<< | |
288 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp | |
289 | << | |
290 | cl @<< | |
291 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp | |
292 | << | |
293 | cl @<< | |
294 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp | |
669f7a11 JS |
295 | << |
296 | cl @<< | |
297 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp | |
bf4d9b2b JS |
298 | << |
299 | cl @<< | |
300 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp | |
301 | << | |
302 | cl @<< | |
303 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp | |
304 | << | |
305 | cl @<< | |
306 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp | |
307 | << | |
308 | cl @<< | |
309 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp | |
310 | << | |
311 | cl @<< | |
312 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp | |
313 | << | |
314 | cl @<< | |
315 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp | |
316 | << | |
317 | cl @<< | |
318 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp | |
319 | << | |
320 | cl @<< | |
321 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp | |
322 | << | |
323 | cl @<< | |
324 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp | |
325 | << | |
326 | cl @<< | |
327 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp | |
328 | << | |
329 | cl @<< | |
330 | $(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp | |
331 | << | |
332 | ||
f2071dda VZ |
333 | # If taking wxWindows from CVS, setup.h doesn't exist yet. |
334 | # Actually the 'if not exist setup.h' test doesn't work | |
335 | # (copies the file anyway) | |
336 | # we'll have to comment this rule out. | |
337 | ||
338 | # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h | |
339 | # cd "$(WXDIR)"\include\wx\msw | |
340 | # if not exist setup.h copy setup0.h setup.h | |
341 | # cd "$(WXDIR)"\src\msw | |
342 | ||
343 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c | |
344 | cl @<< | |
345 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
346 | << | |
347 | ||
348 | ..\common\y_tab.c: ..\common\dosyacc.c | |
349 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
350 | ||
351 | ..\common\lex_yy.c: ..\common\doslex.c | |
352 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
353 | ||
354 | $(OBJECTS): $(WXDIR)/include/wx/setup.h | |
355 | ||
356 | ..\common\$D\unzip.obj: ..\common\unzip.c | |
357 | cl @<< | |
358 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
359 | << | |
360 | ||
361 | # Peripheral components | |
362 | ||
363 | png: | |
364 | cd $(WXDIR)\src\png | |
3156ba6e | 365 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
366 | cd $(WXDIR)\src\msw |
367 | ||
368 | clean_png: | |
369 | cd $(WXDIR)\src\png | |
370 | nmake -f makefile.vc clean | |
371 | cd $(WXDIR)\src\msw | |
372 | ||
373 | zlib: | |
374 | cd $(WXDIR)\src\zlib | |
3156ba6e | 375 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
376 | cd $(WXDIR)\src\msw |
377 | ||
378 | clean_zlib: | |
379 | cd $(WXDIR)\src\zlib | |
380 | nmake -f makefile.vc clean | |
381 | cd $(WXDIR)\src\msw | |
382 | ||
383 | jpeg: | |
384 | cd $(WXDIR)\src\jpeg | |
3156ba6e | 385 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all |
f2071dda VZ |
386 | cd $(WXDIR)\src\msw |
387 | ||
388 | clean_jpeg: | |
389 | cd $(WXDIR)\src\jpeg | |
390 | nmake -f makefile.vc clean | |
391 | cd $(WXDIR)\src\msw | |
392 | ||
5ea6dbbf RD |
393 | tiff: |
394 | cd $(WXDIR)\src\tiff | |
395 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
396 | cd $(WXDIR)\src\msw | |
397 | ||
398 | clean_tiff: | |
399 | cd $(WXDIR)\src\tiff | |
400 | nmake -f makefile.vc clean | |
401 | cd $(WXDIR)\src\msw | |
402 | ||
f2071dda VZ |
403 | xpm: |
404 | cd $(WXDIR)\src\xpm | |
3156ba6e | 405 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
406 | cd $(WXDIR)\src\msw |
407 | ||
408 | clean_xpm: | |
409 | cd $(WXDIR)\src\xpm | |
410 | nmake -f makefile.vc clean | |
411 | cd $(WXDIR)\src\msw | |
412 | ||
413 | rcparser: | |
414 | cd $(WXDIR)\utils\rcparser\src | |
415 | nmake -f makefile.vc FINAL=$(FINAL) | |
416 | cd $(WXDIR)\src\msw | |
417 | ||
f6bcfd97 | 418 | cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff |
ccf0b1d7 RD |
419 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll |
420 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib | |
421 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp | |
422 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb | |
423 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk | |
50a5c3f3 RD |
424 | |
425 | ||
426 | clean: $(PERIPH_CLEAN_TARGET) | |
427 | -erase $(LIBTARGET) | |
428 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb | |
f2071dda VZ |
429 | -erase *.pdb |
430 | -erase *.sbr | |
431 | -erase $(WXLIBNAME).pch | |
432 | -erase $(GENDIR)\$D\*.obj | |
433 | -erase $(GENDIR)\$D\*.pdb | |
434 | -erase $(GENDIR)\$D\*.sbr | |
435 | -erase $(COMMDIR)\$D\*.obj | |
436 | -erase $(COMMDIR)\$D\*.pdb | |
437 | -erase $(COMMDIR)\$D\*.sbr | |
7fee680b | 438 | -erase $(COMMDIR)\y_tab.c |
f2071dda VZ |
439 | -erase $(COMMDIR)\lex_yy.c |
440 | -erase $(MSWDIR)\$D\*.obj | |
441 | -erase $(MSWDIR)\$D\*.sbr | |
442 | -erase $(MSWDIR)\$D\*.pdb | |
443 | -erase $(OLEDIR)\$D\*.obj | |
444 | -erase $(OLEDIR)\$D\*.sbr | |
445 | -erase $(OLEDIR)\$D\*.pdb | |
d66d9d5b JS |
446 | -erase $(HTMLDIR)\$D\*.obj |
447 | -erase $(HTMLDIR)\$D\*.sbr | |
448 | -erase $(HTMLDIR)\$D\*.pdb | |
f2071dda VZ |
449 | -rmdir $(D) |
450 | -rmdir ole\$(D) | |
451 | -rmdir ..\generic\$(D) | |
452 | -rmdir ..\common\$(D) | |
d66d9d5b | 453 | -rmdir ..\html\$(D) |
f2071dda | 454 | |
f2071dda VZ |
455 | |
456 | # Making documents | |
f6bcfd97 | 457 | docs: allhlp allhtml allpdfrtf htb htmlhelp |
f2071dda | 458 | alldocs: docs |
1a3aa77f | 459 | hlp: wxhlp |
f2071dda | 460 | wxhlp: $(DOCDIR)/winhelp/wx.hlp |
f2071dda VZ |
461 | refhlp: $(DOCDIR)/winhelp/techref.hlp |
462 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
f2071dda | 463 | pdfrtf: $(DOCDIR)/pdf/wx.rtf |
f2071dda | 464 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf |
1a3aa77f | 465 | html: wxhtml |
f6bcfd97 | 466 | htb: $(DOCDIR)\htb\wx.htb |
f2071dda | 467 | wxhtml: $(DOCDIR)\html\wx\wx.htm |
f6bcfd97 | 468 | htmlhelp: $(DOCDIR)\htmlhelp\wx.chm |
f2071dda VZ |
469 | ps: wxps referencps |
470 | wxps: $(WXDIR)\docs\ps\wx.ps | |
f2071dda VZ |
471 | referencps: $(WXDIR)\docs\ps\referenc.ps |
472 | ||
1a3aa77f | 473 | allhlp: wxhlp |
f2071dda VZ |
474 | cd $(WXDIR)\utils\dialoged\src |
475 | nmake -f makefile.vc hlp | |
476 | cd $(THISDIR) | |
477 | ||
1a3aa77f | 478 | allhtml: wxhtml |
f2071dda VZ |
479 | cd $(WXDIR)\utils\dialoged\src |
480 | nmake -f makefile.vc html | |
481 | cd $(THISDIR) | |
482 | ||
1a3aa77f | 483 | allps: wxps referencps |
f2071dda VZ |
484 | cd $(WXDIR)\utils\dialoged\src |
485 | nmake -f makefile.vc ps | |
486 | cd $(THISDIR) | |
487 | ||
1a3aa77f | 488 | allpdfrtf: pdfrtf |
f2071dda VZ |
489 | cd $(WXDIR)\utils\dialoged\src |
490 | nmake -f makefile.vc pdfrtf | |
491 | cd $(THISDIR) | |
492 | ||
f2071dda VZ |
493 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj |
494 | cd $(DOCDIR)/latex/wx | |
495 | -erase wx.ph | |
496 | hc wx | |
f485492a JS |
497 | -erase $(DOCDIR)\winhelp\wx.hlp |
498 | -erase $(DOCDIR)\winhelp\wx.cnt | |
f2071dda VZ |
499 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp |
500 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
501 | cd $(THISDIR) | |
502 | ||
f2071dda VZ |
503 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj |
504 | cd $(DOCDIR)/latex/techref | |
505 | -erase techref.ph | |
506 | hc techref | |
507 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
508 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
509 | cd $(THISDIR) | |
510 | ||
511 | $(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 | |
512 | cd $(DOCDIR)\latex\wx | |
513 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp | |
514 | cd $(THISDIR) | |
515 | ||
f2071dda VZ |
516 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
517 | cd $(DOCDIR)\latex\techref | |
518 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp | |
519 | cd $(THISDIR) | |
520 | ||
521 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
522 | cd $(DOCDIR)\latex\wx | |
79bc2382 PA |
523 | -copy *.wmf $(DOCDIR)\pdf |
524 | -copy *.bmp $(DOCDIR)\pdf | |
f2071dda VZ |
525 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf |
526 | cd $(THISDIR) | |
527 | ||
f2071dda VZ |
528 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
529 | cd $(DOCDIR)\latex\techref | |
79bc2382 PA |
530 | -copy *.wmf $(DOCDIR)\pdf |
531 | -copy *.bmp $(DOCDIR)\pdf | |
f2071dda VZ |
532 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf |
533 | cd $(THISDIR) | |
534 | ||
535 | $(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 | |
536 | cd $(DOCDIR)\latex\wx | |
537 | -mkdir $(DOCDIR)\html\wx | |
f6bcfd97 | 538 | copy *.gif $(DOCDIR)\html\wx |
f2071dda VZ |
539 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html |
540 | -erase $(DOCDIR)\html\wx\*.con | |
541 | -erase $(DOCDIR)\html\wx\*.ref | |
542 | -erase $(DOCDIR)\latex\wx\*.con | |
543 | -erase $(DOCDIR)\latex\wx\*.ref | |
544 | cd $(THISDIR) | |
545 | ||
f6bcfd97 | 546 | $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp |
f2071dda VZ |
547 | cd $(DOCDIR)\html\wx |
548 | -hhc wx.hhp | |
f6bcfd97 | 549 | -mkdir ..\..\htmlhelp |
f485492a | 550 | -erase $(DOCDIR)\htmlhelp\wx.chm |
f6bcfd97 | 551 | move wx.chm ..\..\htmlhelp |
f2071dda VZ |
552 | cd $(THISDIR) |
553 | ||
f2071dda VZ |
554 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex |
555 | cd $(WXDIR)\docs\latex\wx | |
556 | -latex manual | |
557 | -latex manual | |
558 | -makeindx manual | |
559 | -bibtex manual | |
560 | -latex manual | |
561 | -latex manual | |
562 | cd $(THISDIR) | |
563 | ||
f2071dda VZ |
564 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi |
565 | cd $(WXDIR)\docs\latex\wx | |
566 | -dvips32 -o wx.ps manual | |
567 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
568 | cd $(THISDIR) | |
569 | ||
f2071dda VZ |
570 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex |
571 | cd $(WXDIR)\docs\latex\wx | |
572 | -latex referenc | |
573 | -latex referenc | |
574 | -makeindx referenc | |
575 | -bibtex referenc | |
576 | -latex referenc | |
577 | -latex referenc | |
578 | cd $(THISDIR) | |
579 | ||
580 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi | |
581 | cd $(WXDIR)\docs\latex\wx | |
582 | -dvips32 -o referenc.ps referenc | |
583 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
584 | cd $(THISDIR) | |
585 | ||
7fee680b JS |
586 | # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk |
587 | # files, renamed to htb. | |
588 | # This can then be used with e.g. helpview. | |
589 | # Optionally, a cached version of the .hhp file can be generated with hhp2cached. | |
f6bcfd97 | 590 | $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm |
7fee680b | 591 | cd $(WXDIR)\docs\html\wx |
f1d93f0b JS |
592 | -erase wx.zip wx.htb |
593 | zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk | |
f6bcfd97 BP |
594 | -mkdir $(DOCDIR)\htb |
595 | move wx.zip $(DOCDIR)\htb\wx.htb | |
7fee680b JS |
596 | cd $(THISDIR) |
597 | ||
f2071dda VZ |
598 | # In order to force document reprocessing |
599 | touchmanual: | |
600 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
601 | ||
602 | updatedocs: touchmanual alldocs | |
603 | ||
f6bcfd97 | 604 | cleandocs: |
f1d93f0b JS |
605 | -erase $(DOCDIR)\winhelp\wx.hlp |
606 | -erase $(DOCDIR)\winhelp\wx.cnt | |
607 | -erase $(DOCDIR)\html\wx\*.htm | |
608 | -erase $(DOCDIR)\pdf\wx.rtf | |
609 | -erase $(DOCDIR)\latex\wx\wx.rtf | |
610 | -erase $(DOCDIR)\latex\wx\WX.PH | |
611 | -erase $(DOCDIR)\htmlhelp\wx.chm | |
612 | -erase $(DOCDIR)\htb\wx.htb | |
f6bcfd97 | 613 | |
f2071dda VZ |
614 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the |
615 | # Office StartUp folder, and PDFMaker should be installed. | |
616 | updatepdf: # touchmanual pdfrtf | |
617 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" | |
618 | ||
9be9b974 RD |
619 | |
620 | MFTYPE=vc | |
621 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
622 | cd $(WXWIN)\distrib\msw\tmake | |
623 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
624 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw | |
625 |