]> git.saurik.com Git - wxWidgets.git/blob - src/os2/makefile.va
minor cleanup; remove focus patch scaffolding
[wxWidgets.git] / src / os2 / makefile.va
1 #
2 # File: makefile.va
3 # Author: Dave Webster
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) 1999, Dave Webster
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxWindows library wx.lib for VisualAge C++
11 # Arguments:
12 #
13 # FINAL=1 argument to nmake to build version with no debugging info.
14 # dll builds a library (wxdll.lib) suitable for creating DLLs
15 #
16 !include <..\makeva.env>
17
18 THISDIR=$(WXWIN)\src\os2
19
20 !if "$(WXMAKINGDLL)" == "1"
21 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
22 DUMMYOBJ=$D\dummydll.obj
23 !else
24 LIBTARGET=$(WXLIB)
25 COMTEMPTGT1=$(WXDIR)\lib\wxcom1.lib
26 COMTEMPTGT2=$(WXDIR)\lib\wxcom2.lib
27 COMTEMPTGT3=$(WXDIR)\lib\wxcom3.lib
28 COMTEMPTGT4=$(WXDIR)\lib\wxcom4.lib
29 GENTEMPTGT=$(WXDIR)\lib\wxgen.lib
30 NONESTEMPTGT=$(WXDIR)\lib\wxnones.lib
31 OS2TEMPTGT1=$(WXDIR)\lib\wxos21.lib
32 OS2TEMPTGT2=$(WXDIR)\lib\wxos22.lib
33 HTMLTEMPTGT=$(WXDIR)\lib\wxhtml.lib
34 DUMMYOBJ=$D\dummy.obj
35 !endif
36
37 # Please set these according to the settings in setup.h, so we can include
38 # the appropriate libraries in wx.lib
39
40 # This one overrides the others, to be consistent with the settings in wx_setup.h
41 MINIMAL_WXWINDOWS_SETUP=0
42
43 PERIPH_LIBS=
44 PERIPH_TARGET=
45 PERIPH_CLEAN_TARGET=
46
47 # These are absolute paths, so that the compiler
48 # generates correct __FILE__ symbols for debugging.
49 # Otherwise you don't be able to double-click on a memory
50 # error to load that file.
51 GENDIR=$(WXDIR)\src\generic
52 COMMDIR=$(WXDIR)\src\common
53 OS2DIR=$(WXDIR)\src\os2
54 HTMLDIR = $(WXDIR)\src\html
55
56 !if [md $(COMMDIR)\$D]
57 !endif
58
59 !if [md $(OS2DIR)\$D]
60 !endif
61
62 !if [md $(GENDIR)\$D]
63 !endif
64
65 !if [md $(HTMLDIR)\$D]
66 !endif
67
68 {..\generic}.cpp{..\generic\$D}.obj:
69 @echo $<
70 icc @<<
71 $(CPPFLAGS) /Fo$@ /Tp $<
72 <<
73
74 {..\common}.cpp{..\common\$D}.obj:
75 @echo $<
76 icc @<<
77 $(CPPFLAGS) /Fo$@ /Tp $<
78 <<
79
80 {..\os2}.cpp{..\os2\$D}.obj:
81 @echo $<
82 icc @<<
83 $(CPPFLAGS) /Fo$@ /Tp $<
84 <<
85
86 {..\os2}.c{..\os2\$D}.obj:
87 @echo $<
88 icc @<<
89 $(CPPFLAGS) /Fo$@ /Tp $<
90 <<
91
92 {..\html}.cpp{..\html\$D}.obj:
93 @echo $<
94 icc @<<
95 $(CPPFLAGS) /Fo$@ /Tp $<
96 <<
97
98 GENERICOBJS= \
99 ..\generic\$D\busyinfo.obj \
100 ..\generic\$D\calctrl.obj \
101 ..\generic\$D\caret.obj \
102 ..\generic\$D\choicdgg.obj \
103 ..\generic\$D\colrdlgg.obj \
104 ..\generic\$D\dcbuffer.obj \
105 ..\generic\$D\dcpsg.obj \
106 ..\generic\$D\dirdlgg.obj \
107 ..\generic\$D\dirctrlg.obj \
108 ..\generic\$D\dragimgg.obj \
109 ..\generic\$D\fdrepdlg.obj \
110 ..\generic\$D\grid.obj \
111 ..\generic\$D\gridctrl.obj \
112 ..\generic\$D\gridsel.obj \
113 ..\generic\$D\helpext.obj \
114 ..\generic\$D\helphtml.obj \
115 ..\generic\$D\imaglist.obj \
116 ..\generic\$D\laywin.obj \
117 ..\generic\$D\logg.obj \
118 ..\generic\$D\mdig.obj \
119 ..\generic\$D\numdlgg.obj \
120 ..\generic\$D\panelg.obj \
121 ..\generic\$D\printps.obj \
122 ..\generic\$D\prntdlgg.obj \
123 ..\generic\$D\progdlgg.obj \
124 ..\generic\$D\prop.obj \
125 ..\generic\$D\propform.obj \
126 ..\generic\$D\proplist.obj \
127 ..\generic\$D\sashwin.obj \
128 ..\generic\$D\scrlwing.obj \
129 ..\generic\$D\spinctlg.obj \
130 ..\generic\$D\splitter.obj \
131 ..\generic\$D\statusbr.obj \
132 ..\generic\$D\tabg.obj \
133 ..\generic\$D\tbarsmpl.obj \
134 ..\generic\$D\textdlgg.obj \
135 ..\generic\$D\tipdlg.obj \
136 ..\generic\$D\tipwin.obj \
137 ..\generic\$D\wizard.obj
138
139 # ..\generic\$D\gridg.obj \
140 # ..\generic\$D\notebook.obj \
141
142 GENLIBOBJS= \
143 busyinfo.obj \
144 calctrl.obj \
145 caret.obj \
146 choicdgg.obj \
147 colrdlgg.obj \
148 dcbuffer.obj \
149 dcpsg.obj \
150 dirdlgg.obj \
151 dirctrlg.obj \
152 dragimgg.obj \
153 fdrepdlg.obj \
154 grid.obj \
155 gridctrl.obj \
156 gridsel.obj \
157 helpext.obj \
158 helphtml.obj \
159 imaglist.obj \
160 laywin.obj \
161 logg.obj \
162 mdig.obj \
163 numdlgg.obj \
164 panelg.obj \
165 printps.obj \
166 prntdlgg.obj \
167 progdlgg.obj \
168 prop.obj \
169 propform.obj \
170 proplist.obj \
171 sashwin.obj \
172 scrlwing.obj \
173 spinctlg.obj \
174 splitter.obj \
175 statusbr.obj \
176 tabg.obj \
177 tbarsmpl.obj \
178 textdlgg.obj \
179 tipdlg.obj \
180 tipwin.obj \
181 wizard.obj
182
183 # These are generic things that don't need to be compiled on PM,
184 # but sometimes it's useful to do so for testing purposes.
185 NONESSENTIALOBJS= \
186 ..\generic\$D\msgdlgg.obj
187
188 COMMONOBJS = \
189 ..\common\$D\accesscmn.obj \
190 ..\common\$D\artprov.obj \
191 ..\common\$D\artstd.obj \
192 ..\common\$D\appcmn.obj \
193 ..\common\$D\choiccmn.obj \
194 ..\common\$D\clipcmn.obj \
195 ..\common\$D\clntdata.obj \
196 ..\common\$D\cmdline.obj \
197 ..\common\$D\cmndata.obj \
198 ..\common\$D\cmdproc.obj \
199 ..\common\$D\config.obj \
200 ..\common\$D\containr.obj \
201 ..\common\$D\cshelp.obj \
202 ..\common\$D\ctrlcmn.obj \
203 ..\common\$D\ctrlsub.obj \
204 ..\common\$D\datacmn.obj \
205 ..\common\$D\datetime.obj \
206 ..\common\$D\datstrm.obj \
207 ..\common\$D\dcbase.obj \
208 ..\common\$D\dircmn.obj \
209 ..\common\$D\dlgcmn.obj \
210 ..\common\$D\dndcmn.obj \
211 ..\common\$D\dobjcmn.obj \
212 ..\common\$D\docmdi.obj \
213 ..\common\$D\docview.obj \
214 ..\common\$D\dpycmn.obj \
215 ..\common\$D\dseldlg.obj \
216 ..\common\$D\dynarray.obj \
217 ..\common\$D\dynlib.obj \
218 ..\common\$D\dynload.obj \
219 ..\common\$D\effects.obj \
220 ..\common\$D\encconv.obj \
221 ..\common\$D\event.obj \
222 ..\common\$D\extended.obj \
223 ..\common\$D\fddlgcmn.obj \
224 ..\common\$D\ffile.obj \
225 ..\common\$D\file.obj \
226 ..\common\$D\fileconf.obj \
227 ..\common\$D\filefn.obj \
228 ..\common\$D\filename.obj \
229 ..\common\$D\filesys.obj \
230 ..\common\$D\fontcmn.obj \
231 ..\common\$D\fontmap.obj \
232 ..\common\$D\framecmn.obj \
233 ..\common\$D\fs_inet.obj \
234 ..\common\$D\fs_mem.obj \
235 ..\common\$D\fs_zip.obj \
236 ..\common\$D\ftp.obj \
237 ..\common\$D\gaugecmn.obj \
238 ..\common\$D\gdicmn.obj \
239 ..\common\$D\geometry.obj \
240 ..\common\$D\gifdecod.obj \
241 ..\common\$D\hash.obj \
242 ..\common\$D\hashmap.obj \
243 ..\common\$D\helpbase.obj \
244 ..\common\$D\http.obj \
245 ..\common\$D\iconbndl.obj \
246 ..\common\$D\imagall.obj \
247 ..\common\$D\imagbmp.obj \
248 ..\common\$D\image.obj \
249 ..\common\$D\imagfill.obj \
250 ..\common\$D\imaggif.obj \
251 ..\common\$D\imagiff.obj \
252 ..\common\$D\imagjpeg.obj \
253 ..\common\$D\imagpcx.obj \
254 ..\common\$D\imagpng.obj \
255 ..\common\$D\imagpnm.obj \
256 ..\common\$D\imagtiff.obj \
257 ..\common\$D\imagxpm.obj \
258 ..\common\$D\intl.obj \
259 ..\common\$D\ipcbase.obj \
260 ..\common\$D\layout.obj \
261 ..\common\$D\lboxcmn.obj \
262 ..\common\$D\list.obj \
263 ..\common\$D\log.obj \
264 ..\common\$D\longlong.obj \
265 ..\common\$D\matrix.obj \
266 ..\common\$D\memory.obj \
267 ..\common\$D\menucmn.obj \
268 ..\common\$D\mimecmn.obj \
269 ..\common\$D\module.obj \
270 ..\common\$D\msgout.obj \
271 ..\common\$D\mstream.obj \
272 ..\common\$D\nbkbase.obj \
273 ..\common\$D\object.obj \
274 ..\common\$D\paper.obj \
275 ..\common\$D\popupcmn.obj \
276 ..\common\$D\prntbase.obj \
277 ..\common\$D\process.obj \
278 ..\common\$D\protocol.obj \
279 ..\common\$D\quantize.obj \
280 ..\common\$D\radiocmn.obj \
281 ..\common\$D\regex.obj \
282 ..\common\$D\rgncmn.obj \
283 ..\common\$D\sckaddr.obj \
284 ..\common\$D\sckfile.obj \
285 ..\common\$D\sckipc.obj \
286 ..\common\$D\sckstrm.obj \
287 ..\common\$D\settcmn.obj \
288 ..\common\$D\sizer.obj \
289 ..\common\$D\socket.obj \
290 ..\common\$D\statbar.obj \
291 ..\common\$D\strconv.obj \
292 ..\common\$D\stream.obj \
293 ..\common\$D\string.obj \
294 ..\common\$D\sysopt.obj \
295 ..\common\$D\tbarbase.obj \
296 ..\common\$D\textbuf.obj \
297 ..\common\$D\textcmn.obj \
298 ..\common\$D\textfile.obj \
299 ..\common\$D\timercmn.obj \
300 ..\common\$D\tokenzr.obj \
301 ..\common\$D\toplvcmn.obj \
302 ..\common\$D\treebase.obj \
303 ..\common\$D\txtstrm.obj \
304 ..\common\$D\unzip.obj \
305 ..\common\$D\url.obj \
306 ..\common\$D\utilscmn.obj \
307 ..\common\$D\valgen.obj \
308 ..\common\$D\validate.obj \
309 ..\common\$D\valtext.obj \
310 ..\common\$D\wfstream.obj \
311 ..\common\$D\wincmn.obj \
312 ..\common\$D\wxchar.obj \
313 ..\common\$D\xpmdecod.obj \
314 ..\common\$D\zipstrm.obj \
315 ..\common\$D\zstream.obj
316
317 COMLIBOBJS1 = \
318 accesscmn.obj \
319 artprov.obj \
320 artstd.obj \
321 appcmn.obj \
322 choiccmn.obj \
323 clipcmn.obj \
324 clntdata.obj \
325 cmdline.obj \
326 cmndata.obj \
327 cmdproc.obj \
328 config.obj \
329 containr.obj \
330 cshelp.obj \
331 ctrlcmn.obj \
332 ctrlsub.obj \
333 datacmn.obj \
334 datetime.obj \
335 datstrm.obj \
336 dcbase.obj \
337 dircmn.obj \
338 dndcmn.obj \
339 dlgcmn.obj \
340 dobjcmn.obj \
341 docmdi.obj \
342 docview.obj \
343 dseldlg.obj \
344 dpycmn.obj \
345 dynarray.obj \
346 dynlib.obj \
347 dynload.obj \
348 effects.obj \
349 encconv.obj \
350 event.obj \
351 extended.obj \
352 fddlgcmn.obj \
353 ffile.obj \
354 file.obj \
355 fileconf.obj \
356 filefn.obj \
357 filename.obj \
358 filesys.obj \
359 fontcmn.obj \
360 fontmap.obj \
361
362 COMLIBOBJS2 = \
363 framecmn.obj \
364 fs_inet.obj \
365 fs_mem.obj \
366 fs_zip.obj \
367 ftp.obj \
368 gaugecmn.obj \
369 gdicmn.obj \
370 geometry.obj \
371 gifdecod.obj \
372 hash.obj \
373 hashmap.obj \
374 helpbase.obj \
375 http.obj \
376 iconbndl.obj \
377 imagall.obj \
378 imagbmp.obj \
379 image.obj \
380 imagfill.obj \
381 imaggif.obj \
382 imagiff.obj \
383 imagjpeg.obj \
384 imagpcx.obj \
385 imagpng.obj \
386 imagpnm.obj \
387 imagtiff.obj \
388 imagxpm.obj \
389 intl.obj \
390 ipcbase.obj \
391 layout.obj \
392 lboxcmn.obj \
393 list.obj \
394 log.obj \
395 longlong.obj \
396 matrix.obj \
397 memory.obj \
398 menucmn.obj \
399 mimecmn.obj \
400 module.obj \
401 msgout.obj \
402 mstream.obj \
403 nbkbase.obj \
404 object.obj
405
406 COMLIBOBJS3 = \
407 paper.obj \
408 popupcmn.obj \
409 prntbase.obj \
410 process.obj \
411 protocol.obj \
412 quantize.obj \
413 radiocmn.obj \
414 regex.obj \
415 rgncmn.obj \
416 sckaddr.obj \
417 sckfile.obj \
418 sckipc.obj \
419 sckstrm.obj \
420 settcmn.obj \
421 sizer.obj \
422 socket.obj \
423 statbar.obj \
424 strconv.obj \
425 stream.obj \
426 string.obj \
427 sysopt.obj \
428 tbarbase.obj \
429 textbuf.obj \
430 textcmn.obj \
431 textfile.obj \
432 timercmn.obj \
433 tokenzr.obj \
434 toplvcmn.obj \
435 treebase.obj \
436 txtstrm.obj \
437 unzip.obj \
438 url.obj \
439 utilscmn.obj \
440 valgen.obj \
441 validate.obj \
442 valtext.obj \
443 wfstream.obj \
444 wincmn.obj \
445 wxchar.obj \
446 xpmdecod.obj
447
448 COMLIBOBJS4 = \
449 zipstrm.obj \
450 zstream.obj
451
452 OS2OBJS = \
453 ..\os2\$D\accel.obj \
454 ..\os2\$D\app.obj \
455 ..\os2\$D\bitmap.obj \
456 ..\os2\$D\bmpbuttn.obj \
457 ..\os2\$D\brush.obj \
458 ..\os2\$D\button.obj \
459 ..\os2\$D\checkbox.obj \
460 ..\os2\$D\checklst.obj \
461 ..\os2\$D\choice.obj \
462 ..\os2\$D\clipbrd.obj \
463 ..\os2\$D\colour.obj \
464 ..\os2\$D\combobox.obj \
465 ..\os2\$D\control.obj \
466 ..\os2\$D\cursor.obj \
467 ..\os2\$D\data.obj \
468 ..\os2\$D\dataobj.obj \
469 ..\os2\$D\dc.obj \
470 ..\os2\$D\dcclient.obj \
471 ..\os2\$D\dcmemory.obj \
472 ..\os2\$D\dcprint.obj \
473 ..\os2\$D\dcscreen.obj \
474 ..\os2\$D\dialog.obj \
475 ..\os2\$D\dir.obj \
476 ..\os2\$D\dnd.obj \
477 ..\os2\$D\filedlg.obj \
478 ..\os2\$D\font.obj \
479 ..\os2\$D\fontdlg.obj \
480 ..\os2\$D\fontenum.obj \
481 ..\os2\$D\fontutil.obj \
482 ..\os2\$D\frame.obj \
483 ..\os2\$D\gauge.obj \
484 ..\os2\$D\gdiimage.obj \
485 ..\os2\$D\gdiobj.obj \
486 ..\os2\$D\gsocket.obj \
487 ..\os2\$D\gsockpm.obj \
488 ..\os2\$D\helpwin.obj \
489 ..\os2\$D\icon.obj \
490 ..\os2\$D\iniconf.obj \
491 ..\os2\$D\joystick.obj \
492 ..\os2\$D\listbox.obj \
493 ..\os2\$D\listctrl.obj \
494 ..\os2\$D\main.obj \
495 ..\os2\$D\menu.obj \
496 ..\os2\$D\menuitem.obj \
497 ..\os2\$D\metafile.obj \
498 ..\os2\$D\mimetype.obj \
499 ..\os2\$D\msgdlg.obj \
500 ..\os2\$D\nativdlg.obj \
501 ..\os2\$D\notebook.obj \
502 ..\os2\$D\ownerdrw.obj \
503 ..\os2\$D\palette.obj \
504 ..\os2\$D\pen.obj \
505 ..\os2\$D\popupwin.obj \
506 ..\os2\$D\print.obj \
507 ..\os2\$D\radiobox.obj \
508 ..\os2\$D\radiobut.obj \
509 ..\os2\$D\region.obj \
510 ..\os2\$D\scrolbar.obj \
511 ..\os2\$D\settings.obj \
512 ..\os2\$D\slider.obj \
513 ..\os2\$D\spinbutt.obj \
514 ..\os2\$D\spinctrl.obj \
515 ..\os2\$D\statbmp.obj \
516 ..\os2\$D\statbox.obj \
517 ..\os2\$D\statline.obj \
518 ..\os2\$D\stattext.obj \
519 ..\os2\$D\tabctrl.obj \
520 ..\os2\$D\textctrl.obj \
521 ..\os2\$D\thread.obj \
522 ..\os2\$D\timer.obj \
523 ..\os2\$D\toolbar.obj \
524 ..\os2\$D\tooltip.obj \
525 ..\os2\$D\toplevel.obj \
526 ..\os2\$D\treectrl.obj \
527 ..\os2\$D\utils.obj \
528 ..\os2\$D\utilsexc.obj \
529 ..\os2\$D\wave.obj \
530 ..\os2\$D\window.obj
531
532 OS2LIBOBJS1 = \
533 accel.obj \
534 app.obj \
535 bitmap.obj \
536 bmpbuttn.obj \
537 brush.obj \
538 button.obj \
539 checkbox.obj \
540 checklst.obj \
541 choice.obj \
542 clipbrd.obj \
543 colour.obj \
544 combobox.obj \
545 control.obj \
546 cursor.obj \
547 data.obj \
548 dataobj.obj \
549 dc.obj \
550 dcclient.obj \
551 dcmemory.obj \
552 dcprint.obj \
553 dcscreen.obj \
554 dialog.obj \
555 dir.obj \
556 dnd.obj \
557 filedlg.obj \
558 font.obj \
559 fontdlg.obj \
560 fontenum.obj \
561 fontutil.obj \
562 frame.obj \
563 gauge.obj \
564 gdiimage.obj \
565 gdiobj.obj \
566 gsocket.obj \
567 gsockpm.obj \
568 helpwin.obj \
569 icon.obj \
570 iniconf.obj \
571 joystick.obj \
572 listbox.obj \
573 listctrl.obj \
574 main.obj \
575 menu.obj \
576 menuitem.obj \
577 metafile.obj
578
579 OS2LIBOBJS2 = \
580 mimetype.obj \
581 msgdlg.obj \
582 nativdlg.obj \
583 notebook.obj \
584 ownerdrw.obj \
585 palette.obj \
586 pen.obj \
587 popupwin.obj \
588 print.obj \
589 radiobox.obj \
590 radiobut.obj \
591 region.obj \
592 scrolbar.obj \
593 settings.obj \
594 slider.obj \
595 spinbutt.obj \
596 spinctrl.obj \
597 statbmp.obj \
598 statbox.obj \
599 stattext.obj \
600 statline.obj \
601 tabctrl.obj \
602 textctrl.obj \
603 thread.obj \
604 timer.obj \
605 toolbar.obj \
606 tooltip.obj \
607 toplevel.obj \
608 treectrl.obj \
609 utils.obj \
610 utilsexc.obj \
611 wave.obj \
612 window.obj
613
614 HTMLOBJS = \
615 ..\html\$D\helpctrl.obj \
616 ..\html\$D\helpdata.obj \
617 ..\html\$D\helpfrm.obj \
618 ..\html\$D\htmlcell.obj \
619 ..\html\$D\htmlfilt.obj \
620 ..\html\$D\htmlpars.obj \
621 ..\html\$D\htmltag.obj \
622 ..\html\$D\htmlwin.obj \
623 ..\html\$D\htmprint.obj \
624 ..\html\$D\m_dflist.obj \
625 ..\html\$D\m_fonts.obj \
626 ..\html\$D\m_hline.obj \
627 ..\html\$D\m_image.obj \
628 ..\html\$D\m_layout.obj \
629 ..\html\$D\m_links.obj \
630 ..\html\$D\m_list.obj \
631 ..\html\$D\m_pre.obj \
632 ..\html\$D\m_style.obj \
633 ..\html\$D\m_tables.obj \
634 ..\html\$D\winpars.obj
635
636 HTMLLIBOBJS = \
637 helpctrl.obj \
638 helpdata.obj \
639 helpfrm.obj \
640 htmlcell.obj \
641 htmlfilt.obj \
642 htmlpars.obj \
643 htmltag.obj \
644 htmlwin.obj \
645 htmprint.obj \
646 m_dflist.obj \
647 m_fonts.obj \
648 m_hline.obj \
649 m_image.obj \
650 m_layout.obj \
651 m_links.obj \
652 m_list.obj \
653 m_pre.obj \
654 m_style.obj \
655 m_tables.obj \
656 winpars.obj
657
658 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
659 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(NONESSENTIALOBJS) $(OS2OBJS)
660
661 # Normal, static library
662 all: $(WXDIR)\include\wx\setup.h $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib png jpeg tiff $(LIBTARGET)
663
664 dirs: $(OS2DIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(HTMLDIR)\$D
665
666
667 test: $(OS2DIR)\$D\wave.obj
668 test2: ..\common\Debug\config.obj
669
670 # If taking wxWindows from CVS, setup.h doesn't exist yet.
671 $(WXDIR)\include\wx\os2\setup.h: $(WXDIR)\include\wx\os2\setup0.h
672 copy "$(WXDIR)"\include\wx\os2\setup0.h "$(WXDIR)"\include\wx\os2\setup.h
673
674 $(WXDIR)\include\wx\setup.h: $(WXDIR)\include\wx\os2\setup.h
675 copy "$(WXDIR)"\include\wx\os2\setup.h "$(WXDIR)"\include\wx\setup.h
676
677 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
678 icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /Tp dummy.cpp
679
680 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
681 icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /Tp dummydll.cpp
682
683 $(COMLIBOBJS1):
684 copy ..\common\$D\accesscmn.obj
685 copy ..\common\$D\artprov.obj
686 copy ..\common\$D\artstd.obj
687 copy ..\common\$D\appcmn.obj
688 copy ..\common\$D\choiccmn.obj
689 copy ..\common\$D\clipcmn.obj
690 copy ..\common\$D\clntdata.obj
691 copy ..\common\$D\cmdline.obj
692 copy ..\common\$D\cmndata.obj
693 copy ..\common\$D\cmdproc.obj
694 copy ..\common\$D\config.obj
695 copy ..\common\$D\containr.obj
696 copy ..\common\$D\cshelp.obj
697 copy ..\common\$D\ctrlcmn.obj
698 copy ..\common\$D\ctrlsub.obj
699 copy ..\common\$D\datacmn.obj
700 copy ..\common\$D\datetime.obj
701 copy ..\common\$D\datstrm.obj
702 copy ..\common\$D\dcbase.obj
703 copy ..\common\$D\dlgcmn.obj
704 copy ..\common\$D\dircmn.obj
705 copy ..\common\$D\dndcmn.obj
706 copy ..\common\$D\dobjcmn.obj
707 copy ..\common\$D\docmdi.obj
708 copy ..\common\$D\docview.obj
709 copy ..\common\$D\dpycmn.obj
710 copy ..\common\$D\dseldlg.obj
711 copy ..\common\$D\dynarray.obj
712 copy ..\common\$D\dynlib.obj
713 copy ..\common\$D\dynload.obj
714 copy ..\common\$D\effects.obj
715 copy ..\common\$D\encconv.obj
716 copy ..\common\$D\event.obj
717 copy ..\common\$D\extended.obj
718 copy ..\common\$D\fddlgcmn.obj
719 copy ..\common\$D\ffile.obj
720 copy ..\common\$D\file.obj
721 copy ..\common\$D\fileconf.obj
722 copy ..\common\$D\filefn.obj
723 copy ..\common\$D\filename.obj
724 copy ..\common\$D\filesys.obj
725 copy ..\common\$D\fontcmn.obj
726 copy ..\common\$D\fontmap.obj
727
728 $(COMLIBOBJS2):
729 copy ..\common\$D\framecmn.obj
730 copy ..\common\$D\fs_inet.obj
731 copy ..\common\$D\fs_mem.obj
732 copy ..\common\$D\fs_zip.obj
733 copy ..\common\$D\ftp.obj
734 copy ..\common\$D\gaugecmn.obj
735 copy ..\common\$D\gdicmn.obj
736 copy ..\common\$D\geometry.obj
737 copy ..\common\$D\gifdecod.obj
738 copy ..\common\$D\hash.obj
739 copy ..\common\$D\hashmap.obj
740 copy ..\common\$D\helpbase.obj
741 copy ..\common\$D\http.obj
742 copy ..\common\$D\iconbndl.obj
743 copy ..\common\$D\imagall.obj
744 copy ..\common\$D\imagbmp.obj
745 copy ..\common\$D\image.obj
746 copy ..\common\$D\imagfill.obj
747 copy ..\common\$D\imaggif.obj
748 copy ..\common\$D\imagiff.obj
749 copy ..\common\$D\imagjpeg.obj
750 copy ..\common\$D\imagpcx.obj
751 copy ..\common\$D\imagpng.obj
752 copy ..\common\$D\imagpnm.obj
753 copy ..\common\$D\imagtiff.obj
754 copy ..\common\$D\imagxpm.obj
755 copy ..\common\$D\intl.obj
756 copy ..\common\$D\ipcbase.obj
757 copy ..\common\$D\layout.obj
758 copy ..\common\$D\lboxcmn.obj
759 copy ..\common\$D\list.obj
760 copy ..\common\$D\log.obj
761 copy ..\common\$D\longlong.obj
762 copy ..\common\$D\matrix.obj
763 copy ..\common\$D\memory.obj
764 copy ..\common\$D\menucmn.obj
765 copy ..\common\$D\mimecmn.obj
766 copy ..\common\$D\module.obj
767 copy ..\common\$D\msgout.obj
768 copy ..\common\$D\mstream.obj
769 copy ..\common\$D\nbkbase.obj
770 copy ..\common\$D\object.obj
771
772 $(COMLIBOBJS3):
773 copy ..\common\$D\paper.obj
774 copy ..\common\$D\popupcmn.obj
775 copy ..\common\$D\prntbase.obj
776 copy ..\common\$D\process.obj
777 copy ..\common\$D\protocol.obj
778 copy ..\common\$D\quantize.obj
779 copy ..\common\$D\radiocmn.obj
780 copy ..\common\$D\regex.obj
781 copy ..\common\$D\rgncmn.obj
782 copy ..\common\$D\sckaddr.obj
783 copy ..\common\$D\sckfile.obj
784 copy ..\common\$D\sckipc.obj
785 copy ..\common\$D\sckstrm.obj
786 copy ..\common\$D\settcmn.obj
787 copy ..\common\$D\sizer.obj
788 copy ..\common\$D\socket.obj
789 copy ..\common\$D\statbar.obj
790 copy ..\common\$D\strconv.obj
791 copy ..\common\$D\stream.obj
792 copy ..\common\$D\string.obj
793 copy ..\common\$D\sysopt.obj
794 copy ..\common\$D\tbarbase.obj
795 copy ..\common\$D\textbuf.obj
796 copy ..\common\$D\textcmn.obj
797 copy ..\common\$D\textfile.obj
798 copy ..\common\$D\timercmn.obj
799 copy ..\common\$D\tokenzr.obj
800 copy ..\common\$D\toplvcmn.obj
801 copy ..\common\$D\treebase.obj
802 copy ..\common\$D\txtstrm.obj
803 copy ..\common\$D\unzip.obj
804 copy ..\common\$D\url.obj
805 copy ..\common\$D\utilscmn.obj
806 copy ..\common\$D\valgen.obj
807 copy ..\common\$D\validate.obj
808 copy ..\common\$D\valtext.obj
809 copy ..\common\$D\wfstream.obj
810 copy ..\common\$D\wincmn.obj
811 copy ..\common\$D\wxchar.obj
812 copy ..\common\$D\xpmdecod.obj
813
814 $(COMLIBOBJS4):
815 copy ..\common\$D\zipstrm.obj
816 copy ..\common\$D\zstream.obj
817
818 $(GENLIBOBJS):
819 copy ..\generic\$D\busyinfo.obj
820 copy ..\generic\$D\calctrl.obj
821 copy ..\generic\$D\caret.obj
822 copy ..\generic\$D\choicdgg.obj
823 copy ..\generic\$D\colrdlgg.obj
824 copy ..\generic\$D\dragimgg.obj
825 copy ..\generic\$D\dcbuffer.obj
826 copy ..\generic\$D\dcpsg.obj
827 copy ..\generic\$D\dirdlgg.obj
828 copy ..\generic\$D\dirctrlg.obj
829 copy ..\generic\$D\fdrepdlg.obj
830 copy ..\generic\$D\grid.obj
831 copy ..\generic\$D\gridctrl.obj
832 copy ..\generic\$D\gridsel.obj
833 copy ..\generic\$D\helpext.obj
834 copy ..\generic\$D\helphtml.obj
835 copy ..\generic\$D\imaglist.obj
836 copy ..\generic\$D\laywin.obj
837 copy ..\generic\$D\logg.obj
838 copy ..\generic\$D\mdig.obj
839 copy ..\generic\$D\numdlgg.obj
840 copy ..\generic\$D\panelg.obj
841 copy ..\generic\$D\printps.obj
842 copy ..\generic\$D\prntdlgg.obj
843 copy ..\generic\$D\progdlgg.obj
844 copy ..\generic\$D\prop.obj
845 copy ..\generic\$D\propform.obj
846 copy ..\generic\$D\proplist.obj
847 copy ..\generic\$D\sashwin.obj
848 copy ..\generic\$D\scrlwing.obj
849 copy ..\generic\$D\spinctlg.obj
850 copy ..\generic\$D\splitter.obj
851 copy ..\generic\$D\statusbr.obj
852 copy ..\generic\$D\tabg.obj
853 copy ..\generic\$D\tbarsmpl.obj
854 copy ..\generic\$D\textdlgg.obj
855 copy ..\generic\$D\tipdlg.obj
856 copy ..\generic\$D\tipwin.obj
857 copy ..\generic\$D\wizard.obj
858
859 $(HTMLLIBOBJS):
860 copy ..\html\$D\helpctrl.obj
861 copy ..\html\$D\helpdata.obj
862 copy ..\html\$D\helpfrm.obj
863 copy ..\html\$D\htmlcell.obj
864 copy ..\html\$D\htmlfilt.obj
865 copy ..\html\$D\htmlpars.obj
866 copy ..\html\$D\htmltag.obj
867 copy ..\html\$D\htmlwin.obj
868 copy ..\html\$D\htmprint.obj
869 copy ..\html\$D\m_dflist.obj
870 copy ..\html\$D\m_fonts.obj
871 copy ..\html\$D\m_hline.obj
872 copy ..\html\$D\m_image.obj
873 copy ..\html\$D\m_layout.obj
874 copy ..\html\$D\m_links.obj
875 copy ..\html\$D\m_list.obj
876 copy ..\html\$D\m_pre.obj
877 copy ..\html\$D\m_style.obj
878 copy ..\html\$D\m_tables.obj
879 copy ..\html\$D\winpars.obj
880
881 $(OS2LIBOBJS1):
882 copy ..\os2\$D\accel.obj
883 copy ..\os2\$D\app.obj
884 copy ..\os2\$D\bitmap.obj
885 copy ..\os2\$D\bmpbuttn.obj
886 copy ..\os2\$D\brush.obj
887 copy ..\os2\$D\button.obj
888 copy ..\os2\$D\checkbox.obj
889 copy ..\os2\$D\checklst.obj
890 copy ..\os2\$D\choice.obj
891 copy ..\os2\$D\clipbrd.obj
892 copy ..\os2\$D\colour.obj
893 copy ..\os2\$D\combobox.obj
894 copy ..\os2\$D\control.obj
895 copy ..\os2\$D\cursor.obj
896 copy ..\os2\$D\data.obj
897 copy ..\os2\$D\dataobj.obj
898 copy ..\os2\$D\dc.obj
899 copy ..\os2\$D\dcclient.obj
900 copy ..\os2\$D\dcmemory.obj
901 copy ..\os2\$D\dcprint.obj
902 copy ..\os2\$D\dcscreen.obj
903 copy ..\os2\$D\dialog.obj
904 copy ..\os2\$D\dir.obj
905 copy ..\os2\$D\dnd.obj
906 copy ..\os2\$D\filedlg.obj
907 copy ..\os2\$D\font.obj
908 copy ..\os2\$D\fontdlg.obj
909 copy ..\os2\$D\fontenum.obj
910 copy ..\os2\$D\fontutil.obj
911 copy ..\os2\$D\frame.obj
912 copy ..\os2\$D\gauge.obj
913 copy ..\os2\$D\gdiimage.obj
914 copy ..\os2\$D\gdiobj.obj
915 copy ..\os2\$D\gsocket.obj
916 copy ..\os2\$D\gsockpm.obj
917 copy ..\os2\$D\helpwin.obj
918 copy ..\os2\$D\icon.obj
919 copy ..\os2\$D\iniconf.obj
920 copy ..\os2\$D\joystick.obj
921 copy ..\os2\$D\listbox.obj
922 copy ..\os2\$D\listctrl.obj
923 copy ..\os2\$D\main.obj
924 copy ..\os2\$D\menu.obj
925 copy ..\os2\$D\menuitem.obj
926 copy ..\os2\$D\metafile.obj
927
928 $(OS2LIBOBJS2):
929 copy ..\os2\$D\mimetype.obj
930 copy ..\os2\$D\msgdlg.obj
931 copy ..\os2\$D\nativdlg.obj
932 copy ..\os2\$D\notebook.obj
933 copy ..\os2\$D\ownerdrw.obj
934 copy ..\os2\$D\palette.obj
935 copy ..\os2\$D\pen.obj
936 copy ..\os2\$D\popupwin.obj
937 copy ..\os2\$D\print.obj
938 copy ..\os2\$D\radiobox.obj
939 copy ..\os2\$D\radiobut.obj
940 copy ..\os2\$D\region.obj
941 copy ..\os2\$D\scrolbar.obj
942 copy ..\os2\$D\settings.obj
943 copy ..\os2\$D\slider.obj
944 copy ..\os2\$D\spinbutt.obj
945 copy ..\os2\$D\spinctrl.obj
946 copy ..\os2\$D\statbmp.obj
947 copy ..\os2\$D\statbox.obj
948 copy ..\os2\$D\statline.obj
949 copy ..\os2\$D\stattext.obj
950 copy ..\os2\$D\tabctrl.obj
951 copy ..\os2\$D\textctrl.obj
952 copy ..\os2\$D\thread.obj
953 copy ..\os2\$D\timer.obj
954 copy ..\os2\$D\toolbar.obj
955 copy ..\os2\$D\tooltip.obj
956 copy ..\os2\$D\toplevel.obj
957 copy ..\os2\$D\treectrl.obj
958 copy ..\os2\$D\utils.obj
959 copy ..\os2\$D\utilsexc.obj
960 copy ..\os2\$D\wave.obj
961 copy ..\os2\$D\window.obj
962
963 # wxWindows library as DLL
964 dll:
965 nmake -f makefile.va all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
966
967 cleandll:
968 nmake -f makefile.va clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
969
970 # wxWindows + app as DLL. Only affects main.cpp.
971 dllapp:
972 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
973
974 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
975 dllnp:
976 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
977
978 # Use this to make dummy.obj and generate a PCH.
979 # You might use the dll target, then the pch target, in order to
980 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
981 #
982 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
983 # are associated with wx.lib. When using a DLL version of wxWindows, however,
984 # the DLL is compiled without a PCH, so you only need it for compiling the app.
985 # In fact headers are compiled differently depending on whether a DLL is being made
986 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
987 # in each case) so you couldn't use the same PCH.
988 pch:
989 nmake -f makefile.va pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
990
991 pch1: dirs $(DUMMYOBJ)
992 echo $(DUMMYOBJ)
993
994 !if "$(WXMAKINGDLL)" != "1"
995
996 ### Static library
997
998 $(WXDIR)\lib\wxcom1.lib: $(COMLIBOBJS1)
999 -touch $(WXDIR)\lib\wxcom1.lib
1000 -del $(WXDIR)\lib\wxcom1.lib
1001 ilib $(LIBFLAGS) $@ @<<
1002 $**;
1003 <<
1004
1005 $(WXDIR)\lib\wxcom2.lib: $(COMLIBOBJS2)
1006 -touch $(WXDIR)\lib\wxcom2.lib
1007 -del $(WXDIR)\lib\wxcom2.lib
1008 ilib $(LIBFLAGS) $@ @<<
1009 $**;
1010 <<
1011
1012 $(WXDIR)\lib\wxcom3.lib: $(COMLIBOBJS3)
1013 -touch $(WXDIR)\lib\wxcom3.lib
1014 -del $(WXDIR)\lib\wxcom3.lib
1015 ilib $(LIBFLAGS) $@ @<<
1016 $**;
1017 <<
1018
1019 $(WXDIR)\lib\wxcom4.lib: $(COMLIBOBJS4)
1020 -touch $(WXDIR)\lib\wxcom4.lib
1021 -del $(WXDIR)\lib\wxcom4.lib
1022 ilib $(LIBFLAGS) $@ @<<
1023 $**;
1024 <<
1025
1026 $(WXDIR)\lib\wxgen.lib: $(GENLIBOBJS)
1027 -touch $(WXDIR)\lib\wxgen.lib
1028 -del $(WXDIR)\lib\wxgen.lib
1029 ilib $(LIBFLAGS) $@ @<<
1030 $**;
1031 <<
1032
1033 $(WXDIR)\lib\wxhtml.lib: $(HTMLLIBOBJS)
1034 -touch $(WXDIR)\lib\wxhtml.lib
1035 -del $(WXDIR)\lib\wxhtml.lib
1036 ilib $(LIBFLAGS) $@ @<<
1037 $**;
1038 <<
1039
1040 $(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS)
1041 -touch $(WXDIR)\lib\wxnones.lib
1042 -del $(WXDIR)\lib\wxnones.lib
1043 ilib $(LIBFLAGS) $@ @<<
1044 $**;
1045 <<
1046
1047 $(WXDIR)\lib\wxos21.lib: $(OS2LIBOBJS1)
1048 -touch $(WXDIR)\lib\wxos21.lib
1049 -del $(WXDIR)\lib\wxos21.lib
1050 ilib $(LIBFLAGS) $@ @<<
1051 $**;
1052 <<
1053
1054 $(WXDIR)\lib\wxos22.lib: $(OS2LIBOBJS2)
1055 -touch $(WXDIR)\lib\wxos22.lib
1056 -del $(WXDIR)\lib\wxos22.lib
1057 ilib $(LIBFLAGS) $@ @<<
1058 $**;
1059 <<
1060 del *.obj
1061
1062 $(WXDIR)\lib\wx.lib: \
1063 $D\dummy.obj \
1064 $(COMTEMPTGT1) \
1065 $(COMTEMPTGT2) \
1066 $(COMTEMPTGT3) \
1067 $(COMTEMPTGT4) \
1068 $(GENTEMPTGT) \
1069 $(HTMLTEMPTGT) \
1070 $(NONESTEMPTGT) \
1071 $(OS2TEMPTGT1) \
1072 $(OS2TEMPTGT2) \
1073 $(PERIPH_LIBS)
1074 -touch $(LIBTARGET)
1075 -del $(LIBTARGET)
1076 ilib $(LIBFLAGS) $@ @<<
1077 $**;
1078 <<
1079 del $(COMTEMPTGT1)
1080 del $(COMTEMPTGT2)
1081 del $(COMTEMPTGT3)
1082 del $(COMTEMPTGT4)
1083 del $(GENTEMPTGT)
1084 del $(HTMLTEMPTGT)
1085 del $(NONESTEMPTGT)
1086 del $(OS2TEMPTGT1)
1087 del $(OS2TEMPTGT2)
1088
1089 !else
1090
1091 # Update the dynamic link library
1092 $(WXDIR)\lib\wx25.dll: $(OBJECTS)
1093 icc @<<
1094 /B" $(LINKFLAGS)" /Fe$@
1095 $(LIBS)
1096 $(DUMMYOBJ)
1097 $(OBJECTS)
1098 $(WXDIR)\src\os2\wx25.def
1099 <<
1100 implib $(WXDIR)\lib\wx25.lib $(WXDIR)\src\os2\wx25.def
1101
1102 !endif
1103
1104 ..\common\$D\extended.obj: ..\common\extended.c
1105 icc @<<
1106 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c
1107 <<
1108
1109 $(OBJECTS): $(WXDIR)/include/wx/setup.h
1110
1111 ..\common\$D\unzip.obj: ..\common\unzip.c
1112 icc @<<
1113 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\unzip.c
1114 <<
1115
1116 png:
1117 cd $(WXDIR)\src\png
1118 nmake -f makefile.va FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
1119 cd $(WXDIR)\src\os2
1120
1121 clean_png:
1122 cd $(WXDIR)\src\png
1123 nmake -f makefile.va clean
1124 cd $(WXDIR)\src\os2
1125
1126 zlib:
1127 cd $(WXDIR)\src\zlib
1128 nmake -f makefile.va FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
1129 cd $(WXDIR)\src\os2
1130
1131 clean_zlib:
1132 cd $(WXDIR)\src\zlib
1133 nmake -f makefile.va clean
1134 cd $(WXDIR)\src\os2
1135
1136 jpeg:
1137 cd $(WXDIR)\src\jpeg
1138 nmake -f makefile.va FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
1139 cd $(WXDIR)\src\os2
1140
1141 clean_jpeg:
1142 cd $(WXDIR)\src\jpeg
1143 nmake -f makefile.va clean
1144 cd $(WXDIR)\src\os2
1145
1146 tiff:
1147 cd $(WXDIR)\src\tiff
1148 nmake -f makefile.va FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL)
1149 cd $(WXDIR)\src\os2
1150
1151 clean_tiff:
1152 cd $(WXDIR)\src\tiff
1153 nmake -f makefile.va clean
1154 cd $(WXDIR)\src\os2
1155
1156 clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_tiff
1157 erase /N $(GENDIR)\$D\*.obj
1158 erase /N $(COMMDIR)\$D\*.obj
1159 erase /N $(HTMLDIR)\$D\*.obj
1160 erase /N $(OS2DIR)\$D\*.obj
1161 rd $(D)
1162 rd ..\generic\$D
1163 rd ..\common\$D
1164 rd ..\html\$D
1165 rd ..\os2\$D
1166 del ..\lib\wx.lib
1167 !if "$(WXMAKINGDLL)" == "1"
1168 del ..\lib\wx25.lib
1169 !endif
1170
1171 cleanall: clean
1172