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