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