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