]>
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 | ||
82 | # Please set these according to the settings in setup.h, so we can include | |
83 | # the appropriate libraries in wx.lib | |
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 | # 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 | |
238 | !endif | |
239 | ||
f2071dda | 240 | # Update the dynamic link library |
a9221a95 | 241 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) |
f2071dda VZ |
242 | $(link) @<< |
243 | $(LINKFLAGS) | |
244 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
bd53731e | 245 | $(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 |
246 | delayimp.lib |
247 | /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll | |
248 | /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll | |
249 | /delayload:oleaut32.dll /delayload:rpcrt4.dll /delayload:winmm.dll /delayload:opengl32.dll | |
f2071dda VZ |
250 | << |
251 | ||
252 | !endif | |
253 | ||
254 | ||
255 | ######################################################## | |
256 | # Windows-specific objects | |
257 | ||
258 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
259 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
260 | ||
261 | $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
262 | cl @<< | |
263 | $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp | |
264 | << | |
265 | ||
bf4d9b2b | 266 | # Compile certain files with no optimization (some files cause a |
7fee680b JS |
267 | # compiler crash for buggy versions of VC++, e.g. 4.0). |
268 | # Don't forget to put FINAL=1 on the command line. | |
bf4d9b2b JS |
269 | noopt: |
270 | cl @<< | |
271 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp | |
272 | << | |
273 | cl @<< | |
274 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp | |
275 | << | |
276 | cl @<< | |
277 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp | |
669f7a11 JS |
278 | << |
279 | cl @<< | |
280 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp | |
bf4d9b2b JS |
281 | << |
282 | cl @<< | |
283 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp | |
284 | << | |
285 | cl @<< | |
286 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp | |
287 | << | |
288 | cl @<< | |
289 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp | |
290 | << | |
291 | cl @<< | |
292 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp | |
669f7a11 JS |
293 | << |
294 | cl @<< | |
295 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp | |
bf4d9b2b JS |
296 | << |
297 | cl @<< | |
298 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp | |
299 | << | |
300 | cl @<< | |
301 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp | |
302 | << | |
303 | cl @<< | |
304 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp | |
305 | << | |
306 | cl @<< | |
307 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp | |
308 | << | |
309 | cl @<< | |
310 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp | |
311 | << | |
312 | cl @<< | |
313 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp | |
314 | << | |
315 | cl @<< | |
316 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp | |
317 | << | |
318 | cl @<< | |
319 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp | |
320 | << | |
321 | cl @<< | |
322 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp | |
323 | << | |
324 | cl @<< | |
325 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp | |
326 | << | |
327 | cl @<< | |
328 | $(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp | |
329 | << | |
330 | ||
f2071dda VZ |
331 | # If taking wxWindows from CVS, setup.h doesn't exist yet. |
332 | # Actually the 'if not exist setup.h' test doesn't work | |
333 | # (copies the file anyway) | |
334 | # we'll have to comment this rule out. | |
335 | ||
336 | # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h | |
337 | # cd "$(WXDIR)"\include\wx\msw | |
338 | # if not exist setup.h copy setup0.h setup.h | |
339 | # cd "$(WXDIR)"\src\msw | |
340 | ||
341 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c | |
342 | cl @<< | |
343 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
344 | << | |
345 | ||
346 | ..\common\y_tab.c: ..\common\dosyacc.c | |
347 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
348 | ||
349 | ..\common\lex_yy.c: ..\common\doslex.c | |
350 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
351 | ||
352 | $(OBJECTS): $(WXDIR)/include/wx/setup.h | |
353 | ||
354 | ..\common\$D\unzip.obj: ..\common\unzip.c | |
355 | cl @<< | |
356 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
357 | << | |
358 | ||
359 | # Peripheral components | |
360 | ||
361 | png: | |
362 | cd $(WXDIR)\src\png | |
3156ba6e | 363 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
364 | cd $(WXDIR)\src\msw |
365 | ||
366 | clean_png: | |
367 | cd $(WXDIR)\src\png | |
368 | nmake -f makefile.vc clean | |
369 | cd $(WXDIR)\src\msw | |
370 | ||
371 | zlib: | |
372 | cd $(WXDIR)\src\zlib | |
3156ba6e | 373 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
374 | cd $(WXDIR)\src\msw |
375 | ||
376 | clean_zlib: | |
377 | cd $(WXDIR)\src\zlib | |
378 | nmake -f makefile.vc clean | |
379 | cd $(WXDIR)\src\msw | |
380 | ||
381 | jpeg: | |
382 | cd $(WXDIR)\src\jpeg | |
3156ba6e | 383 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all |
f2071dda VZ |
384 | cd $(WXDIR)\src\msw |
385 | ||
386 | clean_jpeg: | |
387 | cd $(WXDIR)\src\jpeg | |
388 | nmake -f makefile.vc clean | |
389 | cd $(WXDIR)\src\msw | |
390 | ||
5ea6dbbf RD |
391 | tiff: |
392 | cd $(WXDIR)\src\tiff | |
393 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
394 | cd $(WXDIR)\src\msw | |
395 | ||
396 | clean_tiff: | |
397 | cd $(WXDIR)\src\tiff | |
398 | nmake -f makefile.vc clean | |
399 | cd $(WXDIR)\src\msw | |
400 | ||
f2071dda VZ |
401 | xpm: |
402 | cd $(WXDIR)\src\xpm | |
3156ba6e | 403 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
f2071dda VZ |
404 | cd $(WXDIR)\src\msw |
405 | ||
406 | clean_xpm: | |
407 | cd $(WXDIR)\src\xpm | |
408 | nmake -f makefile.vc clean | |
409 | cd $(WXDIR)\src\msw | |
410 | ||
411 | rcparser: | |
412 | cd $(WXDIR)\utils\rcparser\src | |
413 | nmake -f makefile.vc FINAL=$(FINAL) | |
414 | cd $(WXDIR)\src\msw | |
415 | ||
f6bcfd97 | 416 | cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff |
ccf0b1d7 RD |
417 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll |
418 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib | |
419 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp | |
420 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb | |
421 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk | |
50a5c3f3 RD |
422 | |
423 | ||
424 | clean: $(PERIPH_CLEAN_TARGET) | |
425 | -erase $(LIBTARGET) | |
426 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb | |
f2071dda VZ |
427 | -erase *.pdb |
428 | -erase *.sbr | |
429 | -erase $(WXLIBNAME).pch | |
430 | -erase $(GENDIR)\$D\*.obj | |
431 | -erase $(GENDIR)\$D\*.pdb | |
432 | -erase $(GENDIR)\$D\*.sbr | |
433 | -erase $(COMMDIR)\$D\*.obj | |
434 | -erase $(COMMDIR)\$D\*.pdb | |
435 | -erase $(COMMDIR)\$D\*.sbr | |
7fee680b | 436 | -erase $(COMMDIR)\y_tab.c |
f2071dda VZ |
437 | -erase $(COMMDIR)\lex_yy.c |
438 | -erase $(MSWDIR)\$D\*.obj | |
439 | -erase $(MSWDIR)\$D\*.sbr | |
440 | -erase $(MSWDIR)\$D\*.pdb | |
441 | -erase $(OLEDIR)\$D\*.obj | |
442 | -erase $(OLEDIR)\$D\*.sbr | |
443 | -erase $(OLEDIR)\$D\*.pdb | |
d66d9d5b JS |
444 | -erase $(HTMLDIR)\$D\*.obj |
445 | -erase $(HTMLDIR)\$D\*.sbr | |
446 | -erase $(HTMLDIR)\$D\*.pdb | |
f2071dda VZ |
447 | -rmdir $(D) |
448 | -rmdir ole\$(D) | |
449 | -rmdir ..\generic\$(D) | |
450 | -rmdir ..\common\$(D) | |
d66d9d5b | 451 | -rmdir ..\html\$(D) |
f2071dda | 452 | |
f2071dda VZ |
453 | |
454 | # Making documents | |
f6bcfd97 | 455 | docs: allhlp allhtml allpdfrtf htb htmlhelp |
f2071dda | 456 | alldocs: docs |
1a3aa77f | 457 | hlp: wxhlp |
f2071dda | 458 | wxhlp: $(DOCDIR)/winhelp/wx.hlp |
f2071dda VZ |
459 | refhlp: $(DOCDIR)/winhelp/techref.hlp |
460 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
f2071dda | 461 | pdfrtf: $(DOCDIR)/pdf/wx.rtf |
f2071dda | 462 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf |
1a3aa77f | 463 | html: wxhtml |
f6bcfd97 | 464 | htb: $(DOCDIR)\htb\wx.htb |
f2071dda | 465 | wxhtml: $(DOCDIR)\html\wx\wx.htm |
f6bcfd97 | 466 | htmlhelp: $(DOCDIR)\htmlhelp\wx.chm |
f2071dda VZ |
467 | ps: wxps referencps |
468 | wxps: $(WXDIR)\docs\ps\wx.ps | |
f2071dda VZ |
469 | referencps: $(WXDIR)\docs\ps\referenc.ps |
470 | ||
1a3aa77f | 471 | allhlp: wxhlp |
f2071dda VZ |
472 | cd $(WXDIR)\utils\dialoged\src |
473 | nmake -f makefile.vc hlp | |
474 | cd $(THISDIR) | |
475 | ||
476 | # cd $(WXDIR)\utils\wxhelp\src | |
477 | # nmake -f makefile.vc hlp | |
478 | # cd $(WXDIR)\utils\tex2rtf\src | |
479 | # nmake -f makefile.vc hlp | |
480 | # cd $(WXDIR)\utils\wxgraph\src | |
481 | # nmake -f makefile.vc hlp | |
482 | # cd $(WXDIR)\utils\wxchart\src | |
483 | # nmake -f makefile.vc hlp | |
484 | # cd $(WXDIR)\utils\wxtree\src | |
485 | # nmake -f makefile.vc hlp | |
486 | # cd $(WXDIR)\utils\wxbuild\src | |
487 | # nmake -f makefile.vc hlp | |
488 | # cd $(WXDIR)\utils\wxgrid\src | |
489 | # nmake -f makefile.vc hlp | |
490 | ||
1a3aa77f | 491 | allhtml: wxhtml |
f2071dda VZ |
492 | cd $(WXDIR)\utils\dialoged\src |
493 | nmake -f makefile.vc html | |
494 | cd $(THISDIR) | |
495 | ||
496 | # nmake -f makefile.vc html | |
497 | # cd $(WXDIR)\utils\dialoged\src | |
498 | # nmake -f makefile.vc html | |
499 | # cd $(WXDIR)\utils\hytext\src | |
500 | # nmake -f makefile.vc html | |
501 | # cd $(WXDIR)\utils\wxhelp\src | |
502 | # nmake -f makefile.vc html | |
503 | # cd $(WXDIR)\utils\tex2rtf\src | |
504 | # nmake -f makefile.vc html | |
505 | # cd $(WXDIR)\utils\wxgraph\src | |
506 | # nmake -f makefile.vc html | |
507 | # cd $(WXDIR)\utils\wxchart\src | |
508 | # nmake -f makefile.vc html | |
509 | # cd $(WXDIR)\utils\wxtree\src | |
510 | # nmake -f makefile.vc html | |
511 | ||
1a3aa77f | 512 | allps: wxps referencps |
f2071dda VZ |
513 | cd $(WXDIR)\utils\dialoged\src |
514 | nmake -f makefile.vc ps | |
515 | cd $(THISDIR) | |
516 | ||
1a3aa77f | 517 | allpdfrtf: pdfrtf |
f2071dda VZ |
518 | cd $(WXDIR)\utils\dialoged\src |
519 | nmake -f makefile.vc pdfrtf | |
520 | cd $(THISDIR) | |
521 | ||
522 | # cd $(WXDIR)\utils\wxhelp\src | |
523 | # nmake -f makefile.vc ps | |
524 | # cd $(WXDIR)\utils\tex2rtf\src | |
525 | # nmake -f makefile.vc ps | |
526 | # cd $(WXDIR)\utils\wxgraph\src | |
527 | # nmake -f makefile.vc ps | |
528 | # cd $(WXDIR)\utils\wxchart\src | |
529 | # nmake -f makefile.vc ps | |
530 | # cd $(WXDIR)\utils\wxtree\src | |
531 | # nmake -f makefile.vc ps | |
532 | # cd $(THISDIR) | |
533 | ||
534 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj | |
535 | cd $(DOCDIR)/latex/wx | |
536 | -erase wx.ph | |
537 | hc wx | |
538 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp | |
539 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
540 | cd $(THISDIR) | |
541 | ||
f2071dda VZ |
542 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj |
543 | cd $(DOCDIR)/latex/techref | |
544 | -erase techref.ph | |
545 | hc techref | |
546 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
547 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
548 | cd $(THISDIR) | |
549 | ||
550 | $(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 | |
551 | cd $(DOCDIR)\latex\wx | |
552 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp | |
553 | cd $(THISDIR) | |
554 | ||
f2071dda VZ |
555 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
556 | cd $(DOCDIR)\latex\techref | |
557 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp | |
558 | cd $(THISDIR) | |
559 | ||
560 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
561 | cd $(DOCDIR)\latex\wx | |
79bc2382 PA |
562 | -copy *.wmf $(DOCDIR)\pdf |
563 | -copy *.bmp $(DOCDIR)\pdf | |
f2071dda VZ |
564 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf |
565 | cd $(THISDIR) | |
566 | ||
f2071dda VZ |
567 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
568 | cd $(DOCDIR)\latex\techref | |
79bc2382 PA |
569 | -copy *.wmf $(DOCDIR)\pdf |
570 | -copy *.bmp $(DOCDIR)\pdf | |
f2071dda VZ |
571 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf |
572 | cd $(THISDIR) | |
573 | ||
574 | $(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 | |
575 | cd $(DOCDIR)\latex\wx | |
576 | -mkdir $(DOCDIR)\html\wx | |
f6bcfd97 | 577 | copy *.gif $(DOCDIR)\html\wx |
f2071dda VZ |
578 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html |
579 | -erase $(DOCDIR)\html\wx\*.con | |
580 | -erase $(DOCDIR)\html\wx\*.ref | |
581 | -erase $(DOCDIR)\latex\wx\*.con | |
582 | -erase $(DOCDIR)\latex\wx\*.ref | |
583 | cd $(THISDIR) | |
584 | ||
f6bcfd97 | 585 | $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp |
f2071dda VZ |
586 | cd $(DOCDIR)\html\wx |
587 | -hhc wx.hhp | |
f6bcfd97 BP |
588 | -mkdir ..\..\htmlhelp |
589 | move wx.chm ..\..\htmlhelp | |
f2071dda VZ |
590 | cd $(THISDIR) |
591 | ||
f2071dda VZ |
592 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex |
593 | cd $(WXDIR)\docs\latex\wx | |
594 | -latex manual | |
595 | -latex manual | |
596 | -makeindx manual | |
597 | -bibtex manual | |
598 | -latex manual | |
599 | -latex manual | |
600 | cd $(THISDIR) | |
601 | ||
f2071dda VZ |
602 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi |
603 | cd $(WXDIR)\docs\latex\wx | |
604 | -dvips32 -o wx.ps manual | |
605 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
606 | cd $(THISDIR) | |
607 | ||
f2071dda VZ |
608 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex |
609 | cd $(WXDIR)\docs\latex\wx | |
610 | -latex referenc | |
611 | -latex referenc | |
612 | -makeindx referenc | |
613 | -bibtex referenc | |
614 | -latex referenc | |
615 | -latex referenc | |
616 | cd $(THISDIR) | |
617 | ||
618 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi | |
619 | cd $(WXDIR)\docs\latex\wx | |
620 | -dvips32 -o referenc.ps referenc | |
621 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
622 | cd $(THISDIR) | |
623 | ||
7fee680b JS |
624 | # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk |
625 | # files, renamed to htb. | |
626 | # This can then be used with e.g. helpview. | |
627 | # Optionally, a cached version of the .hhp file can be generated with hhp2cached. | |
f6bcfd97 | 628 | $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm |
7fee680b JS |
629 | cd $(WXDIR)\docs\html\wx |
630 | -erase /Y wx.zip wx.htb | |
631 | zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk | |
f6bcfd97 BP |
632 | -mkdir $(DOCDIR)\htb |
633 | move wx.zip $(DOCDIR)\htb\wx.htb | |
7fee680b JS |
634 | cd $(THISDIR) |
635 | ||
f2071dda VZ |
636 | # In order to force document reprocessing |
637 | touchmanual: | |
638 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
639 | ||
640 | updatedocs: touchmanual alldocs | |
641 | ||
f6bcfd97 BP |
642 | cleandocs: |
643 | -erase /Y $(DOCDIR)\html\wx\wx.htm | |
644 | -erase /Y $(DOCDIR)\pdf\wx.rtf | |
645 | -erase /Y $(DOCDIR)\latex\wx\wx.rtf | |
646 | -erase /Y $(DOCDIR)\htmlhelp\wx.chm | |
647 | -erase /Y $(DOCDIR)\htb\wx.htb | |
648 | ||
f2071dda VZ |
649 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the |
650 | # Office StartUp folder, and PDFMaker should be installed. | |
651 | updatepdf: # touchmanual pdfrtf | |
652 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" | |
653 | ||
9be9b974 RD |
654 | |
655 | MFTYPE=vc | |
656 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
657 | cd $(WXWIN)\distrib\msw\tmake | |
658 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
659 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw | |
660 |