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