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