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