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