]>
Commit | Line | Data |
---|---|---|
1 | # This file was automatically generated by tmake at 00:42, 1999/07/27 | |
2 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T! | |
3 | ||
4 | # File: makefile.vc | |
5 | # Author: Julian Smart | |
6 | # Created: 1997 | |
7 | # Updated: | |
8 | # Copyright: (c) 1997, Julian Smart | |
9 | # | |
10 | # "%W% %G%" | |
11 | # | |
12 | # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit) | |
13 | # Arguments: | |
14 | # | |
15 | # FINAL=1 argument to nmake to build version with no debugging info. | |
16 | # dll builds a library (wxdll.lib) suitable for creating DLLs | |
17 | # | |
18 | !include <..\makevc.env> | |
19 | ||
20 | THISDIR=$(WXWIN)\src\msw | |
21 | ||
22 | !if "$(WXMAKINGDLL)" == "1" | |
23 | LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll | |
24 | DUMMYOBJ=$D\dummydll.obj | |
25 | !else | |
26 | LIBTARGET=$(WXLIB) | |
27 | DUMMYOBJ=$D\dummy.obj | |
28 | !endif | |
29 | ||
30 | # Please set these according to the settings in setup.h, so we can include | |
31 | # the appropriate libraries in wx.lib | |
32 | ||
33 | # This one overrides the others, to be consistent with the settings in setup.h | |
34 | MINIMAL_WXWINDOWS_SETUP=0 | |
35 | ||
36 | PERIPH_LIBS= | |
37 | PERIPH_TARGET= | |
38 | PERIPH_CLEAN_TARGET= | |
39 | ||
40 | # These are absolute paths, so that the compiler | |
41 | # generates correct __FILE__ symbols for debugging. | |
42 | # Otherwise you don't be able to double-click on a memory | |
43 | # error to load that file. | |
44 | GENDIR=$(WXDIR)\src\generic | |
45 | COMMDIR=$(WXDIR)\src\common | |
46 | OLEDIR=ole | |
47 | MSWDIR=$(WXDIR)\src\msw | |
48 | DOCDIR = $(WXDIR)\docs | |
49 | HTMLDIR = $(WXDIR)\src\html | |
50 | ||
51 | {..\generic}.cpp{..\generic\$D}.obj: | |
52 | cl @<< | |
53 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
54 | << | |
55 | ||
56 | {..\common}.cpp{..\common\$D}.obj: | |
57 | cl @<< | |
58 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
59 | << | |
60 | ||
61 | {..\common}.c{..\common\$D}.obj: | |
62 | cl @<< | |
63 | $(CPPFLAGS2) /Fo$@ /c /Tc $< | |
64 | << | |
65 | ||
66 | {..\msw}.cpp{..\msw\$D}.obj: | |
67 | cl @<< | |
68 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
69 | << | |
70 | ||
71 | {..\msw\ole}.cpp{..\msw\ole\$D}.obj: | |
72 | cl @<< | |
73 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
74 | << | |
75 | ||
76 | {..\html}.cpp{..\html\$D}.obj: | |
77 | cl @<< | |
78 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
79 | << | |
80 | ||
81 | GENERICOBJS= ..\generic\$D\busyinfo.obj \ | |
82 | ..\generic\$D\choicdgg.obj \ | |
83 | ..\generic\$D\extdlgg.obj \ | |
84 | ..\generic\$D\gridg.obj \ | |
85 | ..\generic\$D\laywin.obj \ | |
86 | ..\generic\$D\numdlgg.obj \ | |
87 | ..\generic\$D\panelg.obj \ | |
88 | ..\generic\$D\progdlgg.obj \ | |
89 | ..\generic\$D\prop.obj \ | |
90 | ..\generic\$D\propform.obj \ | |
91 | ..\generic\$D\proplist.obj \ | |
92 | ..\generic\$D\sashwin.obj \ | |
93 | ..\generic\$D\scrolwin.obj \ | |
94 | ..\generic\$D\splitter.obj \ | |
95 | ..\generic\$D\statusbr.obj \ | |
96 | ..\generic\$D\tabg.obj \ | |
97 | ..\generic\$D\textdlgg.obj \ | |
98 | ..\generic\$D\tipdlg.obj | |
99 | ||
100 | # These are generic things that don't need to be compiled on MSW, | |
101 | # but sometimes it's useful to do so for testing purposes. | |
102 | NONESSENTIALOBJS= ..\generic\$D\colrdlgg.obj \ | |
103 | ..\generic\$D\dirdlgg.obj \ | |
104 | ..\generic\$D\fontdlgg.obj \ | |
105 | ..\generic\$D\helpxlp.obj \ | |
106 | ..\generic\$D\imaglist.obj \ | |
107 | ..\generic\$D\listctrl.obj \ | |
108 | ..\generic\$D\msgdlgg.obj \ | |
109 | ..\generic\$D\notebook.obj \ | |
110 | ..\generic\$D\printps.obj \ | |
111 | ..\generic\$D\prntdlgg.obj \ | |
112 | ..\generic\$D\treectrl.obj | |
113 | ||
114 | COMMONOBJS = \ | |
115 | ..\common\$D\y_tab.obj \ | |
116 | ..\common\$D\choiccmn.obj \ | |
117 | ..\common\$D\cmndata.obj \ | |
118 | ..\common\$D\config.obj \ | |
119 | ..\common\$D\ctrlcmn.obj \ | |
120 | ..\common\$D\date.obj \ | |
121 | ..\common\$D\datstrm.obj \ | |
122 | ..\common\$D\db.obj \ | |
123 | ..\common\$D\dbtable.obj \ | |
124 | ..\common\$D\dcbase.obj \ | |
125 | ..\common\$D\dlgcmn.obj \ | |
126 | ..\common\$D\docmdi.obj \ | |
127 | ..\common\$D\docview.obj \ | |
128 | ..\common\$D\dynarray.obj \ | |
129 | ..\common\$D\dynlib.obj \ | |
130 | ..\common\$D\event.obj \ | |
131 | ..\common\$D\extended.obj \ | |
132 | ..\common\$D\ffile.obj \ | |
133 | ..\common\$D\file.obj \ | |
134 | ..\common\$D\fileconf.obj \ | |
135 | ..\common\$D\filefn.obj \ | |
136 | ..\common\$D\filesys.obj \ | |
137 | ..\common\$D\framecmn.obj \ | |
138 | ..\common\$D\fs_inet.obj \ | |
139 | ..\common\$D\fs_zip.obj \ | |
140 | ..\common\$D\ftp.obj \ | |
141 | ..\common\$D\gdicmn.obj \ | |
142 | ..\common\$D\hash.obj \ | |
143 | ..\common\$D\helpbase.obj \ | |
144 | ..\common\$D\http.obj \ | |
145 | ..\common\$D\imagbmp.obj \ | |
146 | ..\common\$D\image.obj \ | |
147 | ..\common\$D\imaggif.obj \ | |
148 | ..\common\$D\imagjpeg.obj \ | |
149 | ..\common\$D\imagpng.obj \ | |
150 | ..\common\$D\intl.obj \ | |
151 | ..\common\$D\ipcbase.obj \ | |
152 | ..\common\$D\layout.obj \ | |
153 | ..\common\$D\list.obj \ | |
154 | ..\common\$D\log.obj \ | |
155 | ..\common\$D\memory.obj \ | |
156 | ..\common\$D\mimetype.obj \ | |
157 | ..\common\$D\module.obj \ | |
158 | ..\common\$D\mstream.obj \ | |
159 | ..\common\$D\object.obj \ | |
160 | ..\common\$D\objstrm.obj \ | |
161 | ..\common\$D\odbc.obj \ | |
162 | ..\common\$D\paper.obj \ | |
163 | ..\common\$D\prntbase.obj \ | |
164 | ..\common\$D\process.obj \ | |
165 | ..\common\$D\protocol.obj \ | |
166 | ..\common\$D\resource.obj \ | |
167 | ..\common\$D\sckaddr.obj \ | |
168 | ..\common\$D\sckfile.obj \ | |
169 | ..\common\$D\sckipc.obj \ | |
170 | ..\common\$D\sckstrm.obj \ | |
171 | ..\common\$D\socket.obj \ | |
172 | ..\common\$D\stream.obj \ | |
173 | ..\common\$D\string.obj \ | |
174 | ..\common\$D\tbarbase.obj \ | |
175 | ..\common\$D\textcmn.obj \ | |
176 | ..\common\$D\textfile.obj \ | |
177 | ..\common\$D\time.obj \ | |
178 | ..\common\$D\timercmn.obj \ | |
179 | ..\common\$D\tokenzr.obj \ | |
180 | ..\common\$D\txtstrm.obj \ | |
181 | ..\common\$D\unzip.obj \ | |
182 | ..\common\$D\url.obj \ | |
183 | ..\common\$D\utilscmn.obj \ | |
184 | ..\common\$D\valgen.obj \ | |
185 | ..\common\$D\validate.obj \ | |
186 | ..\common\$D\valtext.obj \ | |
187 | ..\common\$D\variant.obj \ | |
188 | ..\common\$D\wfstream.obj \ | |
189 | ..\common\$D\wincmn.obj \ | |
190 | ..\common\$D\wxchar.obj \ | |
191 | ..\common\$D\wxexpr.obj \ | |
192 | ..\common\$D\zipstream.obj \ | |
193 | ..\common\$D\zstream.obj | |
194 | ||
195 | MSWOBJS = ..\msw\$D\accel.obj \ | |
196 | ..\msw\$D\app.obj \ | |
197 | ..\msw\ole\$D\automtn.obj \ | |
198 | ..\msw\$D\bitmap.obj \ | |
199 | ..\msw\$D\bmpbuttn.obj \ | |
200 | ..\msw\$D\brush.obj \ | |
201 | ..\msw\$D\button.obj \ | |
202 | ..\msw\$D\caret.obj \ | |
203 | ..\msw\$D\checkbox.obj \ | |
204 | ..\msw\$D\checklst.obj \ | |
205 | ..\msw\$D\choice.obj \ | |
206 | ..\msw\$D\clipbrd.obj \ | |
207 | ..\msw\$D\colordlg.obj \ | |
208 | ..\msw\$D\colour.obj \ | |
209 | ..\msw\$D\combobox.obj \ | |
210 | ..\msw\$D\control.obj \ | |
211 | ..\msw\$D\curico.obj \ | |
212 | ..\msw\$D\cursor.obj \ | |
213 | ..\msw\$D\data.obj \ | |
214 | ..\msw\ole\$D\dataobj.obj \ | |
215 | ..\msw\$D\dc.obj \ | |
216 | ..\msw\$D\dcclient.obj \ | |
217 | ..\msw\$D\dcmemory.obj \ | |
218 | ..\msw\$D\dcprint.obj \ | |
219 | ..\msw\$D\dcscreen.obj \ | |
220 | ..\msw\$D\dde.obj \ | |
221 | ..\msw\$D\dialog.obj \ | |
222 | ..\msw\$D\dib.obj \ | |
223 | ..\msw\$D\dibutils.obj \ | |
224 | ..\msw\$D\dirdlg.obj \ | |
225 | ..\msw\$D\dragimag.obj \ | |
226 | ..\msw\ole\$D\dropsrc.obj \ | |
227 | ..\msw\ole\$D\droptgt.obj \ | |
228 | ..\msw\$D\filedlg.obj \ | |
229 | ..\msw\$D\font.obj \ | |
230 | ..\msw\$D\fontdlg.obj \ | |
231 | ..\msw\$D\frame.obj \ | |
232 | ..\msw\$D\gauge95.obj \ | |
233 | ..\msw\$D\gdiobj.obj \ | |
234 | ..\msw\$D\helpwin.obj \ | |
235 | ..\msw\$D\icon.obj \ | |
236 | ..\msw\$D\imaglist.obj \ | |
237 | ..\msw\$D\joystick.obj \ | |
238 | ..\msw\$D\listbox.obj \ | |
239 | ..\msw\$D\listctrl.obj \ | |
240 | ..\msw\$D\main.obj \ | |
241 | ..\msw\$D\mdi.obj \ | |
242 | ..\msw\$D\menu.obj \ | |
243 | ..\msw\$D\menuitem.obj \ | |
244 | ..\msw\$D\metafile.obj \ | |
245 | ..\msw\$D\minifram.obj \ | |
246 | ..\msw\$D\msgdlg.obj \ | |
247 | ..\msw\$D\nativdlg.obj \ | |
248 | ..\msw\$D\notebook.obj \ | |
249 | ..\msw\ole\$D\oleutils.obj \ | |
250 | ..\msw\$D\ownerdrw.obj \ | |
251 | ..\msw\$D\palette.obj \ | |
252 | ..\msw\$D\pen.obj \ | |
253 | ..\msw\$D\penwin.obj \ | |
254 | ..\msw\$D\pnghand.obj \ | |
255 | ..\msw\$D\printdlg.obj \ | |
256 | ..\msw\$D\printwin.obj \ | |
257 | ..\msw\$D\radiobox.obj \ | |
258 | ..\msw\$D\radiobut.obj \ | |
259 | ..\msw\$D\regconf.obj \ | |
260 | ..\msw\$D\region.obj \ | |
261 | ..\msw\$D\registry.obj \ | |
262 | ..\msw\$D\scrolbar.obj \ | |
263 | ..\msw\$D\settings.obj \ | |
264 | ..\msw\$D\slider95.obj \ | |
265 | ..\msw\$D\spinbutt.obj \ | |
266 | ..\msw\$D\statbmp.obj \ | |
267 | ..\msw\$D\statbox.obj \ | |
268 | ..\msw\$D\statbr95.obj \ | |
269 | ..\msw\$D\statline.obj \ | |
270 | ..\msw\$D\stattext.obj \ | |
271 | ..\msw\$D\tabctrl.obj \ | |
272 | ..\msw\$D\taskbar.obj \ | |
273 | ..\msw\$D\tbar95.obj \ | |
274 | ..\msw\$D\textctrl.obj \ | |
275 | ..\msw\$D\thread.obj \ | |
276 | ..\msw\$D\timer.obj \ | |
277 | ..\msw\$D\tooltip.obj \ | |
278 | ..\msw\$D\treectrl.obj \ | |
279 | ..\msw\$D\utils.obj \ | |
280 | ..\msw\$D\utilsexc.obj \ | |
281 | ..\msw\ole\$D\uuid.obj \ | |
282 | ..\msw\$D\wave.obj \ | |
283 | ..\msw\$D\window.obj \ | |
284 | ..\msw\$D\xpmhand.obj | |
285 | ||
286 | HTMLOBJS = \ | |
287 | ..\html\$D\htmlcell.obj \ | |
288 | ..\html\$D\htmlfilter.obj \ | |
289 | ..\html\$D\htmlhelp.obj \ | |
290 | ..\html\$D\htmlhelp_io.obj \ | |
291 | ..\html\$D\htmlparser.obj \ | |
292 | ..\html\$D\htmltag.obj \ | |
293 | ..\html\$D\htmlwin.obj \ | |
294 | ..\html\$D\htmlwinparser.obj \ | |
295 | ..\html\$D\mod_fonts.obj \ | |
296 | ..\html\$D\mod_hline.obj \ | |
297 | ..\html\$D\mod_image.obj \ | |
298 | ..\html\$D\mod_layout.obj \ | |
299 | ..\html\$D\mod_links.obj \ | |
300 | ..\html\$D\mod_list.obj \ | |
301 | ..\html\$D\mod_pre.obj \ | |
302 | ..\html\$D\mod_tables.obj \ | |
303 | ..\html\$D\search.obj | |
304 | ||
305 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. | |
306 | # Add $(HTMLOBJS) if wanting wxHTML classes | |
307 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) | |
308 | ||
309 | # Normal, static library | |
310 | all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg $(LIBTARGET) | |
311 | ||
312 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D | |
313 | ||
314 | ||
315 | test: $(MSWDIR)\$D\wave.obj | |
316 | test2: ..\common\Debug\config.obj | |
317 | ||
318 | $D: | |
319 | mkdir $D | |
320 | ||
321 | $(COMMDIR)\$D: | |
322 | mkdir $(COMMDIR)\$D | |
323 | ||
324 | $(MSWDIR)\$D: | |
325 | mkdir $(MSWDIR)\$D | |
326 | ||
327 | $(GENDIR)\$D: | |
328 | mkdir $(GENDIR)\$D | |
329 | ||
330 | $(OLEDIR)\$D: | |
331 | mkdir $(OLEDIR)\$D | |
332 | ||
333 | $(HTMLDIR)\$D: | |
334 | mkdir $(HTMLDIR)\$D | |
335 | ||
336 | # wxWindows library as DLL | |
337 | dll: | |
338 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
339 | ||
340 | cleandll: | |
341 | nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
342 | ||
343 | # wxWindows + app as DLL. Only affects main.cpp. | |
344 | dllapp: | |
345 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 | |
346 | ||
347 | # wxWindows + app as DLL, for Netscape plugin - remove DllMain. | |
348 | dllnp: | |
349 | nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 | |
350 | ||
351 | # Use this to make dummy.obj and generate a PCH. | |
352 | # You might use the dll target, then the pch target, in order to | |
353 | # generate a DLL, then a PCH/dummy.obj for compiling your applications with. | |
354 | # | |
355 | # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH | |
356 | # are associated with wx.lib. When using a DLL version of wxWindows, however, | |
357 | # the DLL is compiled without a PCH, so you only need it for compiling the app. | |
358 | # In fact headers are compiled differently depending on whether a DLL is being made | |
359 | # or an app is calling the DLL exported functionality (WXDLLEXPORT is different | |
360 | # in each case) so you couldn't use the same PCH. | |
361 | pch: | |
362 | nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME) | |
363 | ||
364 | pch1: dirs $(DUMMYOBJ) | |
365 | echo $(DUMMYOBJ) | |
366 | ||
367 | !if "$(WXMAKINGDLL)" != "1" | |
368 | ||
369 | ### Static library | |
370 | ||
371 | $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS) | |
372 | -erase $(LIBTARGET) | |
373 | $(implib) @<< | |
374 | -out:$@ | |
375 | -machine:$(CPU) | |
376 | $(OBJECTS) $(PERIPH_LIBS) | |
377 | << | |
378 | ||
379 | !else | |
380 | ||
381 | ### Update the import library | |
382 | ||
383 | $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) | |
384 | $(implib) @<< | |
385 | -machine:$(CPU) | |
386 | -def:wx.def | |
387 | $(DUMMYOBJ) $(OBJECTS) | |
388 | -out:$(WXDIR)\lib\$(WXLIBNAME).lib | |
389 | << | |
390 | ||
391 | # Update the dynamic link library | |
392 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib | |
393 | $(link) @<< | |
394 | $(LINKFLAGS) | |
395 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
396 | $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\xpm.lib $(WXDIR)\lib\jpeg.lib | |
397 | << | |
398 | ||
399 | !endif | |
400 | ||
401 | ||
402 | ######################################################## | |
403 | # Windows-specific objects | |
404 | ||
405 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
406 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
407 | ||
408 | $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h | |
409 | cl @<< | |
410 | $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp | |
411 | << | |
412 | ||
413 | # If taking wxWindows from CVS, setup.h doesn't exist yet. | |
414 | # Actually the 'if not exist setup.h' test doesn't work | |
415 | # (copies the file anyway) | |
416 | # we'll have to comment this rule out. | |
417 | ||
418 | # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h | |
419 | # cd "$(WXDIR)"\include\wx\msw | |
420 | # if not exist setup.h copy setup0.h setup.h | |
421 | # cd "$(WXDIR)"\src\msw | |
422 | ||
423 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c | |
424 | cl @<< | |
425 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
426 | << | |
427 | ||
428 | ..\common\y_tab.c: ..\common\dosyacc.c | |
429 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
430 | ||
431 | ..\common\lex_yy.c: ..\common\doslex.c | |
432 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
433 | ||
434 | $(OBJECTS): $(WXDIR)/include/wx/setup.h | |
435 | ||
436 | ..\common\$D\unzip.obj: ..\common\unzip.c | |
437 | cl @<< | |
438 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
439 | << | |
440 | ||
441 | # Peripheral components | |
442 | ||
443 | png: | |
444 | cd $(WXDIR)\src\png | |
445 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) | |
446 | cd $(WXDIR)\src\msw | |
447 | ||
448 | clean_png: | |
449 | cd $(WXDIR)\src\png | |
450 | nmake -f makefile.vc clean | |
451 | cd $(WXDIR)\src\msw | |
452 | ||
453 | zlib: | |
454 | cd $(WXDIR)\src\zlib | |
455 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) | |
456 | cd $(WXDIR)\src\msw | |
457 | ||
458 | clean_zlib: | |
459 | cd $(WXDIR)\src\zlib | |
460 | nmake -f makefile.vc clean | |
461 | cd $(WXDIR)\src\msw | |
462 | ||
463 | jpeg: | |
464 | cd $(WXDIR)\src\jpeg | |
465 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) all | |
466 | cd $(WXDIR)\src\msw | |
467 | ||
468 | clean_jpeg: | |
469 | cd $(WXDIR)\src\jpeg | |
470 | nmake -f makefile.vc clean | |
471 | cd $(WXDIR)\src\msw | |
472 | ||
473 | xpm: | |
474 | cd $(WXDIR)\src\xpm | |
475 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) | |
476 | cd $(WXDIR)\src\msw | |
477 | ||
478 | clean_xpm: | |
479 | cd $(WXDIR)\src\xpm | |
480 | nmake -f makefile.vc clean | |
481 | cd $(WXDIR)\src\msw | |
482 | ||
483 | rcparser: | |
484 | cd $(WXDIR)\utils\rcparser\src | |
485 | nmake -f makefile.vc FINAL=$(FINAL) | |
486 | cd $(WXDIR)\src\msw | |
487 | ||
488 | clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm | |
489 | -erase $(LIBTARGET) | |
490 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb | |
491 | -erase ..\..\lib\wx200.dll | |
492 | -erase ..\..\lib\wx200.lib | |
493 | -erase ..\..\lib\wx200.exp | |
494 | -erase ..\..\lib\wx200.pdb | |
495 | -erase ..\..\lib\wx200.ilk | |
496 | -erase *.pdb | |
497 | -erase *.sbr | |
498 | -erase $(WXLIBNAME).pch | |
499 | -erase $(GENDIR)\$D\*.obj | |
500 | -erase $(GENDIR)\$D\*.pdb | |
501 | -erase $(GENDIR)\$D\*.sbr | |
502 | -erase $(COMMDIR)\$D\*.obj | |
503 | -erase $(COMMDIR)\$D\*.pdb | |
504 | -erase $(COMMDIR)\$D\*.sbr | |
505 | -erase $(COMMDIR)\\y_tab.c | |
506 | -erase $(COMMDIR)\lex_yy.c | |
507 | -erase $(MSWDIR)\$D\*.obj | |
508 | -erase $(MSWDIR)\$D\*.sbr | |
509 | -erase $(MSWDIR)\$D\*.pdb | |
510 | -erase $(OLEDIR)\$D\*.obj | |
511 | -erase $(OLEDIR)\$D\*.sbr | |
512 | -erase $(OLEDIR)\$D\*.pdb | |
513 | -rmdir $(D) | |
514 | -rmdir ole\$(D) | |
515 | -rmdir ..\generic\$(D) | |
516 | -rmdir ..\common\$(D) | |
517 | ||
518 | cleanall: clean | |
519 | ||
520 | # Making documents | |
521 | docs: allhlp allhtml allpdfrtf | |
522 | alldocs: docs | |
523 | hlp: wxhlp portinghlp | |
524 | wxhlp: $(DOCDIR)/winhelp/wx.hlp | |
525 | prophlp: $(DOCDIR)/winhelp/prop.hlp | |
526 | refhlp: $(DOCDIR)/winhelp/techref.hlp | |
527 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
528 | proprtf: $(DOCDIR)/winhelp/prop.rtf | |
529 | pdfrtf: $(DOCDIR)/pdf/wx.rtf | |
530 | proppdfrtf: $(DOCDIR)/pdf/prop.rtf | |
531 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf | |
532 | html: wxhtml portinghtml | |
533 | wxhtml: $(DOCDIR)\html\wx\wx.htm | |
534 | htmlhelp: $(DOCDIR)\html\wx\wx.chm | |
535 | prophtml: $(DOCDIR)\html\proplist\prop.htm | |
536 | ps: wxps referencps | |
537 | wxps: $(WXDIR)\docs\ps\wx.ps | |
538 | propps: $(WXDIR)\docs\ps\prop.ps | |
539 | referencps: $(WXDIR)\docs\ps\referenc.ps | |
540 | ||
541 | portinghtml: $(DOCDIR)\html\porting\port.htm | |
542 | portingrtf: $(DOCDIR)/winhelp/porting.rtf | |
543 | portinghlp: $(DOCDIR)/winhelp/porting.hlp | |
544 | portingpdfrtf: $(DOCDIR)/pdf/porting.rtf | |
545 | portingps: $(WXDIR)\docs\ps\porting.ps | |
546 | ||
547 | allhlp: wxhlp portinghlp prophlp | |
548 | cd $(WXDIR)\utils\dialoged\src | |
549 | nmake -f makefile.vc hlp | |
550 | cd $(THISDIR) | |
551 | ||
552 | # cd $(WXDIR)\utils\wxhelp\src | |
553 | # nmake -f makefile.vc hlp | |
554 | # cd $(WXDIR)\utils\tex2rtf\src | |
555 | # nmake -f makefile.vc hlp | |
556 | # cd $(WXDIR)\utils\wxgraph\src | |
557 | # nmake -f makefile.vc hlp | |
558 | # cd $(WXDIR)\utils\wxchart\src | |
559 | # nmake -f makefile.vc hlp | |
560 | # cd $(WXDIR)\utils\wxtree\src | |
561 | # nmake -f makefile.vc hlp | |
562 | # cd $(WXDIR)\utils\wxbuild\src | |
563 | # nmake -f makefile.vc hlp | |
564 | # cd $(WXDIR)\utils\wxgrid\src | |
565 | # nmake -f makefile.vc hlp | |
566 | ||
567 | allhtml: wxhtml portinghtml prophtml | |
568 | cd $(WXDIR)\utils\dialoged\src | |
569 | nmake -f makefile.vc html | |
570 | cd $(THISDIR) | |
571 | ||
572 | # nmake -f makefile.vc html | |
573 | # cd $(WXDIR)\utils\dialoged\src | |
574 | # nmake -f makefile.vc html | |
575 | # cd $(WXDIR)\utils\hytext\src | |
576 | # nmake -f makefile.vc html | |
577 | # cd $(WXDIR)\utils\wxhelp\src | |
578 | # nmake -f makefile.vc html | |
579 | # cd $(WXDIR)\utils\tex2rtf\src | |
580 | # nmake -f makefile.vc html | |
581 | # cd $(WXDIR)\utils\wxgraph\src | |
582 | # nmake -f makefile.vc html | |
583 | # cd $(WXDIR)\utils\wxchart\src | |
584 | # nmake -f makefile.vc html | |
585 | # cd $(WXDIR)\utils\wxtree\src | |
586 | # nmake -f makefile.vc html | |
587 | ||
588 | allps: wxps referencps portingps propps | |
589 | cd $(WXDIR)\utils\dialoged\src | |
590 | nmake -f makefile.vc ps | |
591 | cd $(THISDIR) | |
592 | ||
593 | allpdfrtf: pdfrtf portingpdfrtf proppdfrtf | |
594 | cd $(WXDIR)\utils\dialoged\src | |
595 | nmake -f makefile.vc pdfrtf | |
596 | cd $(THISDIR) | |
597 | ||
598 | # cd $(WXDIR)\utils\wxhelp\src | |
599 | # nmake -f makefile.vc ps | |
600 | # cd $(WXDIR)\utils\tex2rtf\src | |
601 | # nmake -f makefile.vc ps | |
602 | # cd $(WXDIR)\utils\wxgraph\src | |
603 | # nmake -f makefile.vc ps | |
604 | # cd $(WXDIR)\utils\wxchart\src | |
605 | # nmake -f makefile.vc ps | |
606 | # cd $(WXDIR)\utils\wxtree\src | |
607 | # nmake -f makefile.vc ps | |
608 | # cd $(THISDIR) | |
609 | ||
610 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj | |
611 | cd $(DOCDIR)/latex/wx | |
612 | -erase wx.ph | |
613 | hc wx | |
614 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp | |
615 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
616 | cd $(THISDIR) | |
617 | ||
618 | $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj | |
619 | cd $(DOCDIR)/latex/porting | |
620 | -erase porting.ph | |
621 | hc porting | |
622 | move porting.hlp $(DOCDIR)\winhelp\porting.hlp | |
623 | move porting.cnt $(DOCDIR)\winhelp\porting.cnt | |
624 | cd $(THISDIR) | |
625 | ||
626 | $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj | |
627 | cd $(DOCDIR)/latex/proplist | |
628 | -erase prop.ph | |
629 | hc prop | |
630 | move prop.hlp $(DOCDIR)\winhelp\prop.hlp | |
631 | move prop.cnt $(DOCDIR)\winhelp\prop.cnt | |
632 | cd $(THISDIR) | |
633 | ||
634 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj | |
635 | cd $(DOCDIR)/latex/techref | |
636 | -erase techref.ph | |
637 | hc techref | |
638 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
639 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
640 | cd $(THISDIR) | |
641 | ||
642 | $(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 | |
643 | cd $(DOCDIR)\latex\wx | |
644 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp | |
645 | cd $(THISDIR) | |
646 | ||
647 | $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
648 | cd $(DOCDIR)\latex\porting | |
649 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp | |
650 | cd $(THISDIR) | |
651 | ||
652 | $(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex | |
653 | cd $(DOCDIR)\latex\proplist | |
654 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp | |
655 | cd $(THISDIR) | |
656 | ||
657 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex | |
658 | cd $(DOCDIR)\latex\techref | |
659 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp | |
660 | cd $(THISDIR) | |
661 | ||
662 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
663 | cd $(DOCDIR)\latex\wx | |
664 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
665 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf | |
666 | cd $(THISDIR) | |
667 | ||
668 | $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
669 | cd $(DOCDIR)\latex\porting | |
670 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
671 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf | |
672 | cd $(THISDIR) | |
673 | ||
674 | $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex | |
675 | cd $(DOCDIR)\latex\proplist | |
676 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
677 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf | |
678 | cd $(THISDIR) | |
679 | ||
680 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex | |
681 | cd $(DOCDIR)\latex\techref | |
682 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
683 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf | |
684 | cd $(THISDIR) | |
685 | ||
686 | $(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 | |
687 | cd $(DOCDIR)\latex\wx | |
688 | -mkdir $(DOCDIR)\html\wx | |
689 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html | |
690 | -erase $(DOCDIR)\html\wx\*.con | |
691 | -erase $(DOCDIR)\html\wx\*.ref | |
692 | -erase $(DOCDIR)\latex\wx\*.con | |
693 | -erase $(DOCDIR)\latex\wx\*.ref | |
694 | cd $(THISDIR) | |
695 | ||
696 | $(DOCDIR)\html\wx\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp | |
697 | cd $(DOCDIR)\html\wx | |
698 | -hhc wx.hhp | |
699 | cd $(THISDIR) | |
700 | ||
701 | ||
702 | $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex | |
703 | cd $(DOCDIR)\latex\porting | |
704 | -mkdir $(DOCDIR)\html\porting | |
705 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html | |
706 | -erase $(DOCDIR)\html\porting\*.con | |
707 | -erase $(DOCDIR)\html\porting\*.ref | |
708 | -erase $(DOCDIR)\latex\porting\*.con | |
709 | -erase $(DOCDIR)\latex\porting\*.ref | |
710 | cd $(THISDIR) | |
711 | ||
712 | $(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex | |
713 | cd $(DOCDIR)\latex\proplist | |
714 | -mkdir $(DOCDIR)\html\proplist | |
715 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html | |
716 | -erase $(DOCDIR)\html\proplist\*.con | |
717 | -erase $(DOCDIR)\html\proplist\*.ref | |
718 | -erase $(DOCDIR)\latex\proplist\*.con | |
719 | -erase $(DOCDIR)\latex\proplist\*.ref | |
720 | cd $(THISDIR) | |
721 | ||
722 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex | |
723 | cd $(WXDIR)\docs\latex\wx | |
724 | -latex manual | |
725 | -latex manual | |
726 | -makeindx manual | |
727 | -bibtex manual | |
728 | -latex manual | |
729 | -latex manual | |
730 | cd $(THISDIR) | |
731 | ||
732 | $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex | |
733 | cd $(WXDIR)\docs\latex\porting | |
734 | -latex porting | |
735 | -latex porting | |
736 | -makeindx porting | |
737 | -bibtex porting | |
738 | -latex porting | |
739 | -latex porting | |
740 | cd $(THISDIR) | |
741 | ||
742 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi | |
743 | cd $(WXDIR)\docs\latex\wx | |
744 | -dvips32 -o wx.ps manual | |
745 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
746 | cd $(THISDIR) | |
747 | ||
748 | $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi | |
749 | cd $(WXDIR)\docs\latex\porting | |
750 | -dvips32 -o porting.ps porting | |
751 | move porting.ps $(WXDIR)\docs\ps\porting.ps | |
752 | cd $(THISDIR) | |
753 | ||
754 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex | |
755 | cd $(WXDIR)\docs\latex\wx | |
756 | -latex referenc | |
757 | -latex referenc | |
758 | -makeindx referenc | |
759 | -bibtex referenc | |
760 | -latex referenc | |
761 | -latex referenc | |
762 | cd $(THISDIR) | |
763 | ||
764 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi | |
765 | cd $(WXDIR)\docs\latex\wx | |
766 | -dvips32 -o referenc.ps referenc | |
767 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
768 | cd $(THISDIR) | |
769 | ||
770 | # In order to force document reprocessing | |
771 | touchmanual: | |
772 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
773 | ||
774 | updatedocs: touchmanual alldocs | |
775 | ||
776 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the | |
777 | # Office StartUp folder, and PDFMaker should be installed. | |
778 | updatepdf: # touchmanual pdfrtf | |
779 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" | |
780 | ||
781 | ||
782 | MFTYPE=vc | |
783 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
784 | cd $(WXWIN)\distrib\msw\tmake | |
785 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
786 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw | |
787 |