]> git.saurik.com Git - wxWidgets.git/blob - src/os2/makefile.va
no message
[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 GENTEMPTGT=$(WXDIR)\lib\wxgen.lib
28 NONESTEMPTGT=$(WXDIR)\lib\wxnones.lib
29 OS2TEMPTGT1=$(WXDIR)\lib\wxos21.lib
30 OS2TEMPTGT2=$(WXDIR)\lib\wxos22.lib
31 DUMMYOBJ=$D\dummy.obj
32 !endif
33
34 # Please set these according to the settings in setup.h, so we can include
35 # the appropriate libraries in wx.lib
36
37 # This one overrides the others, to be consistent with the settings in wx_setup.h
38 MINIMAL_WXWINDOWS_SETUP=0
39
40 PERIPH_LIBS=
41 PERIPH_TARGET=
42 PERIPH_CLEAN_TARGET=
43
44 # These are absolute paths, so that the compiler
45 # generates correct __FILE__ symbols for debugging.
46 # Otherwise you don't be able to double-click on a memory
47 # error to load that file.
48 GENDIR=$(WXDIR)\src\generic
49 COMMDIR=$(WXDIR)\src\common
50 OS2DIR=$(WXDIR)\src\os2
51 HTMLDIR = $(WXDIR)\src\html
52
53 {..\generic}.cpp{..\generic\$D}.obj:
54 @echo $<
55 icc @<<
56 $(CPPFLAGS) /Fo$@ /Tp $<
57 <<
58
59 {..\common}.cpp{..\common\$D}.obj:
60 @echo $<
61 icc @<<
62 $(CPPFLAGS) /Fo$@ /Tp $<
63 <<
64
65 {..\os2}.cpp{..\os2\$D}.obj:
66 @echo $<
67 icc @<<
68 $(CPPFLAGS) /Fo$@ /Tp $<
69 <<
70
71 {..\os2}.c{..\os2\$D}.obj:
72 @echo $<
73 icc @<<
74 $(CPPFLAGS) /Fo$@ /Tp $<
75 <<
76
77 {..\html}.cpp{..\html\$D}.obj:
78 @echo $<
79 icc @<<
80 $(CPPFLAGS) /Fo$@ /Tp $<
81 <<
82
83 GENERICOBJS= \
84 ..\generic\$D\caret.obj \
85 ..\generic\$D\choicdgg.obj \
86 ..\generic\$D\gridg.obj \
87 ..\generic\$D\laywin.obj \
88 ..\generic\$D\panelg.obj \
89 ..\generic\$D\progdlgg.obj \
90 ..\generic\$D\prop.obj \
91 ..\generic\$D\propform.obj \
92 ..\generic\$D\proplist.obj \
93 ..\generic\$D\sashwin.obj \
94 ..\generic\$D\scrolwin.obj \
95 ..\generic\$D\splitter.obj \
96 ..\generic\$D\statusbr.obj \
97 ..\generic\$D\tabg.obj \
98 ..\generic\$D\textdlgg.obj \
99 ..\generic\$D\tipdlg.obj \
100 ..\generic\$D\busyinfo.obj
101
102 # ..\generic\$D\imaglist.obj \
103 # ..\generic\$D\treectrl.obj \
104 # ..\generic\$D\listctrl.obj \
105 # ..\generic\$D\notebook.obj \
106
107 GENLIBOBJS= \
108 caret.obj \
109 choicdgg.obj \
110 gridg.obj \
111 laywin.obj \
112 panelg.obj \
113 progdlgg.obj \
114 prop.obj \
115 propform.obj \
116 proplist.obj \
117 sashwin.obj \
118 scrolwin.obj \
119 splitter.obj \
120 statusbr.obj \
121 tabg.obj \
122 textdlgg.obj \
123 tipdlg.obj \
124 busyinfo.obj
125
126 # These are generic things that don't need to be compiled on PM,
127 # but sometimes it's useful to do so for testing purposes.
128 NONESSENTIALOBJS= \
129 ..\generic\$D\printps.obj \
130 ..\generic\$D\prntdlgg.obj \
131 ..\generic\$D\msgdlgg.obj \
132 ..\generic\$D\helpxlp.obj \
133 ..\generic\$D\colrdlgg.obj \
134 ..\generic\$D\fontdlgg.obj
135
136 COMMONOBJS = \
137 ..\common\$D\appcmn.obj \
138 ..\common\$D\choiccmn.obj \
139 ..\common\$D\cmndata.obj \
140 ..\common\$D\config.obj \
141 ..\common\$D\ctrlcmn.obj \
142 ..\common\$D\date.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\dobjcmn.obj \
149 ..\common\$D\docmdi.obj \
150 ..\common\$D\docview.obj \
151 ..\common\$D\dynarray.obj \
152 ..\common\$D\dynlib.obj \
153 ..\common\$D\event.obj \
154 ..\common\$D\extended.obj \
155 ..\common\$D\ffile.obj \
156 ..\common\$D\file.obj \
157 ..\common\$D\fileconf.obj \
158 ..\common\$D\filefn.obj \
159 ..\common\$D\filesys.obj \
160 ..\common\$D\fontcmn.obj \
161 ..\common\$D\framecmn.obj \
162 ..\common\$D\fs_inet.obj \
163 ..\common\$D\fs_zip.obj \
164 ..\common\$D\ftp.obj \
165 ..\common\$D\gdicmn.obj \
166 ..\common\$D\gifdecod.obj \
167 ..\common\$D\hash.obj \
168 ..\common\$D\helpbase.obj \
169 ..\common\$D\http.obj \
170 ..\common\$D\imagall.obj \
171 ..\common\$D\imagbmp.obj \
172 ..\common\$D\image.obj \
173 ..\common\$D\imaggif.obj \
174 ..\common\$D\imagjpeg.obj \
175 ..\common\$D\imagpcx.obj \
176 ..\common\$D\imagpng.obj \
177 ..\common\$D\imagpnm.obj \
178 ..\common\$D\intl.obj \
179 ..\common\$D\ipcbase.obj \
180 ..\common\$D\layout.obj \
181 ..\common\$D\list.obj \
182 ..\common\$D\log.obj \
183 ..\common\$D\longlong.obj \
184 ..\common\$D\matrix.obj \
185 ..\common\$D\memory.obj \
186 ..\common\$D\mimetype.obj \
187 ..\common\$D\module.obj \
188 ..\common\$D\mstream.obj \
189 ..\common\$D\object.obj \
190 ..\common\$D\objstrm.obj \
191 ..\common\$D\odbc.obj \
192 ..\common\$D\paper.obj \
193 ..\common\$D\prntbase.obj \
194 ..\common\$D\process.obj \
195 ..\common\$D\protocol.obj \
196 ..\common\$D\resource.obj \
197 ..\common\$D\sckaddr.obj \
198 ..\common\$D\sckfile.obj \
199 ..\common\$D\sckipc.obj \
200 ..\common\$D\sckstrm.obj \
201 ..\common\$D\serbase.obj \
202 ..\common\$D\sizer.obj \
203 ..\common\$D\socket.obj \
204 ..\common\$D\strconv.obj \
205 ..\common\$D\stream.obj \
206 ..\common\$D\string.obj \
207 ..\common\$D\tbarbase.obj \
208 ..\common\$D\tbarsmpl.obj \
209 ..\common\$D\textcmn.obj \
210 ..\common\$D\textfile.obj \
211 ..\common\$D\time.obj \
212 ..\common\$D\timercmn.obj \
213 ..\common\$D\tokenzr.obj \
214 ..\common\$D\txtstrm.obj \
215 ..\common\$D\unzip.obj \
216 ..\common\$D\url.obj \
217 ..\common\$D\utilscmn.obj \
218 ..\common\$D\valgen.obj \
219 ..\common\$D\validate.obj \
220 ..\common\$D\valtext.obj \
221 ..\common\$D\variant.obj \
222 ..\common\$D\wfstream.obj \
223 ..\common\$D\wincmn.obj \
224 ..\common\$D\wxchar.obj \
225 ..\common\$D\wxexpr.obj \
226 ..\common\$D\y_tab.obj \
227 ..\common\$D\zipstrm.obj \
228 ..\common\$D\zstream.obj
229
230 COMLIBOBJS1 = \
231 appcmn.obj \
232 choiccmn.obj \
233 cmndata.obj \
234 config.obj \
235 ctrlcmn.obj \
236 date.obj \
237 datstrm.obj \
238 db.obj \
239 dbtable.obj \
240 dcbase.obj \
241 dlgcmn.obj \
242 dobjcmn.obj \
243 docmdi.obj \
244 docview.obj \
245 dynarray.obj \
246 dynlib.obj \
247 event.obj \
248 extended.obj \
249 ffile.obj \
250 file.obj \
251 fileconf.obj \
252 filefn.obj \
253 filesys.obj \
254 fontcmn.obj \
255 framecmn.obj \
256 fs_inet.obj \
257 fs_zip.obj \
258 ftp.obj \
259 gdicmn.obj \
260 gifdecod.obj \
261 hash.obj \
262 helpbase.obj \
263 http.obj \
264 imagall.obj \
265 imagbmp.obj \
266 image.obj \
267 imaggif.obj \
268 imagjpeg.obj \
269 imagpcx.obj \
270 imagpng.obj \
271 imagpnm.obj \
272 intl.obj \
273 ipcbase.obj \
274 layout.obj \
275 list.obj \
276 log.obj
277
278 COMLIBOBJS2 = \
279 longlong.obj \
280 matrix.obj \
281 memory.obj \
282 mimetype.obj \
283 module.obj \
284 mstream.obj \
285 object.obj \
286 objstrm.obj \
287 odbc.obj \
288 paper.obj \
289 prntbase.obj \
290 process.obj \
291 protocol.obj \
292 resource.obj \
293 sckaddr.obj \
294 sckfile.obj \
295 sckipc.obj \
296 sckstrm.obj \
297 serbase.obj \
298 sizer.obj \
299 socket.obj \
300 strconv.obj \
301 stream.obj \
302 string.obj \
303 tbarbase.obj \
304 tbarsmpl.obj \
305 textcmn.obj \
306 textfile.obj \
307 time.obj \
308 timercmn.obj \
309 tokenzr.obj \
310 txtstrm.obj \
311 unzip.obj \
312 url.obj \
313 utilscmn.obj \
314 valgen.obj \
315 validate.obj \
316 valtext.obj \
317 variant.obj \
318 wfstream.obj \
319 wincmn.obj \
320 wxchar.obj \
321 wxexpr.obj \
322 y_tab.obj \
323 zipstrm.obj \
324 zstream.obj
325
326 OS2OBJS = \
327 ..\os2\$D\accel.obj \
328 ..\os2\$D\app.obj \
329 ..\os2\$D\bitmap.obj \
330 ..\os2\$D\bmpbuttn.obj \
331 ..\os2\$D\brush.obj \
332 ..\os2\$D\button.obj \
333 ..\os2\$D\checkbox.obj \
334 ..\os2\$D\checklst.obj \
335 ..\os2\$D\choice.obj \
336 ..\os2\$D\clipbrd.obj \
337 ..\os2\$D\colour.obj \
338 ..\os2\$D\combobox.obj \
339 ..\os2\$D\control.obj \
340 ..\os2\$D\cursor.obj \
341 ..\os2\$D\data.obj \
342 ..\os2\$D\dc.obj \
343 ..\os2\$D\dcclient.obj \
344 ..\os2\$D\dcmemory.obj \
345 ..\os2\$D\dcprint.obj \
346 ..\os2\$D\dcscreen.obj \
347 ..\os2\$D\dialog.obj \
348 ..\os2\$D\dirdlg.obj \
349 ..\os2\$D\dnd.obj \
350 ..\os2\$D\filedlg.obj \
351 ..\os2\$D\font.obj \
352 ..\os2\$D\fontdlg.obj \
353 ..\os2\$D\frame.obj \
354 ..\os2\$D\gauge.obj \
355 ..\os2\$D\gdiobj.obj \
356 ..\os2\$D\gsocket.obj \
357 ..\os2\$D\helpwin.obj \
358 ..\os2\$D\icon.obj \
359 ..\os2\$D\imaglist.obj \
360 ..\os2\$D\iniconf.obj \
361 ..\os2\$D\joystick.obj \
362 ..\os2\$D\listbox.obj \
363 ..\os2\$D\listctrl.obj \
364 ..\os2\$D\main.obj \
365 ..\os2\$D\mdi.obj \
366 ..\os2\$D\menu.obj \
367 ..\os2\$D\menuitem.obj \
368 ..\os2\$D\metafile.obj \
369 ..\os2\$D\minifram.obj \
370 ..\os2\$D\msgdlg.obj \
371 ..\os2\$D\nativdlg.obj \
372 ..\os2\$D\notebook.obj \
373 ..\os2\$D\ownerdrw.obj \
374 ..\os2\$D\palette.obj \
375 ..\os2\$D\pen.obj \
376 ..\os2\$D\pnghand.obj \
377 ..\os2\$D\print.obj \
378 ..\os2\$D\radiobox.obj \
379 ..\os2\$D\radiobut.obj \
380 ..\os2\$D\region.obj \
381 ..\os2\$D\scrolbar.obj \
382 ..\os2\$D\settings.obj \
383 ..\os2\$D\slider.obj \
384 ..\os2\$D\spinbutt.obj \
385 ..\os2\$D\spinctrl.obj \
386 ..\os2\$D\statbmp.obj \
387 ..\os2\$D\statbox.obj \
388 ..\os2\$D\stattext.obj \
389 ..\os2\$D\statbrpm.obj \
390 ..\os2\$D\tabctrl.obj \
391 ..\os2\$D\taskbar.obj \
392 ..\os2\$D\textctrl.obj \
393 ..\os2\$D\thread.obj \
394 ..\os2\$D\timer.obj \
395 ..\os2\$D\toolbar.obj \
396 ..\os2\$D\tooltip.obj \
397 ..\os2\$D\treectrl.obj \
398 ..\os2\$D\utils.obj \
399 ..\os2\$D\utilsexc.obj \
400 ..\os2\$D\wave.obj \
401 ..\os2\$D\window.obj
402
403 OS2LIBOBJS1 = \
404 accel.obj \
405 app.obj \
406 bitmap.obj \
407 bmpbuttn.obj \
408 brush.obj \
409 button.obj \
410 checkbox.obj \
411 checklst.obj \
412 choice.obj \
413 clipbrd.obj \
414 colour.obj \
415 combobox.obj \
416 control.obj \
417 cursor.obj \
418 data.obj \
419 dc.obj \
420 dcclient.obj \
421 dcmemory.obj \
422 dcprint.obj \
423 dcscreen.obj \
424 dialog.obj \
425 dirdlg.obj \
426 dnd.obj \
427 filedlg.obj \
428 font.obj \
429 fontdlg.obj \
430 frame.obj \
431 gauge.obj \
432 gdiobj.obj \
433 gsocket.obj \
434 helpwin.obj \
435 icon.obj \
436 imaglist.obj \
437 iniconf.obj \
438 joystick.obj \
439 listbox.obj \
440 listctrl.obj \
441 main.obj \
442 mdi.obj \
443 menu.obj \
444 menuitem.obj \
445 metafile.obj \
446 minifram.obj \
447 msgdlg.obj \
448 nativdlg.obj
449
450 OS2LIBOBJS2 = \
451 notebook.obj \
452 ownerdrw.obj \
453 palette.obj \
454 pen.obj \
455 pnghand.obj \
456 print.obj \
457 radiobox.obj \
458 radiobut.obj \
459 region.obj \
460 scrolbar.obj \
461 settings.obj \
462 slider.obj \
463 spinbutt.obj \
464 spinctrl.obj \
465 statbmp.obj \
466 statbox.obj \
467 stattext.obj \
468 statbrpm.obj \
469 tabctrl.obj \
470 taskbar.obj \
471 textctrl.obj \
472 thread.obj \
473 timer.obj \
474 toolbar.obj \
475 tooltip.obj \
476 treectrl.obj \
477 utils.obj \
478 utilsexc.obj \
479 wave.obj \
480 window.obj
481
482 HTMLOBJS = \
483 ..\html\$D\htmlcell.obj \
484 ..\html\$D\htmlfilter.obj \
485 ..\html\$D\htmlhelp.obj \
486 ..\html\$D\htmlhelp_io.obj \
487 ..\html\$D\htmlparser.obj \
488 ..\html\$D\htmltag.obj \
489 ..\html\$D\htmlwin.obj \
490 ..\html\$D\htmlwinparser.obj \
491 ..\html\$D\mod_fonts.obj \
492 ..\html\$D\mod_hline.obj \
493 ..\html\$D\mod_image.obj \
494 ..\html\$D\mod_layout.obj \
495 ..\html\$D\mod_links.obj \
496 ..\html\$D\mod_list.obj \
497 ..\html\$D\mod_pre.obj \
498 ..\html\$D\mod_tables.obj \
499 ..\html\$D\search.obj
500
501 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
502 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(NONESSENTIALOBJS) $(OS2OBJS)
503
504 # Normal, static library
505 all: $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
506
507 dirs: $(OS2DIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(HTMLDIR)\$D
508
509
510 test: $(OS2DIR)\$D\wave.obj
511 test2: ..\common\Debug\config.obj
512
513 $D:
514 md $D
515
516 $(COMMDIR)\$D:
517 md $(COMMDIR)\$D
518
519 $(OS2DIR)\$D:
520 md $(OS2DIR)\$D
521
522 $(GENDIR)\$D:
523 md $(GENDIR)\$D
524
525 $(HTMLDIR)\$D:
526 md $(HTMLDIR)\$D
527
528 $(COMLIBOBJS1):
529 copy ..\common\$D\appcmn.obj
530 copy ..\common\$D\choiccmn.obj
531 copy ..\common\$D\cmndata.obj
532 copy ..\common\$D\config.obj
533 copy ..\common\$D\ctrlcmn.obj
534 copy ..\common\$D\date.obj
535 copy ..\common\$D\datstrm.obj
536 copy ..\common\$D\db.obj
537 copy ..\common\$D\dbtable.obj
538 copy ..\common\$D\dcbase.obj
539 copy ..\common\$D\dlgcmn.obj
540 copy ..\common\$D\dobjcmn.obj
541 copy ..\common\$D\docmdi.obj
542 copy ..\common\$D\docview.obj
543 copy ..\common\$D\dynarray.obj
544 copy ..\common\$D\dynlib.obj
545 copy ..\common\$D\event.obj
546 copy ..\common\$D\extended.obj
547 copy ..\common\$D\ffile.obj
548 copy ..\common\$D\file.obj
549 copy ..\common\$D\fileconf.obj
550 copy ..\common\$D\filefn.obj
551 copy ..\common\$D\filesys.obj
552 copy ..\common\$D\fontcmn.obj
553 copy ..\common\$D\framecmn.obj
554 copy ..\common\$D\fs_inet.obj
555 copy ..\common\$D\fs_zip.obj
556 copy ..\common\$D\ftp.obj
557 copy ..\common\$D\gdicmn.obj
558 copy ..\common\$D\gifdecod.obj
559 copy ..\common\$D\hash.obj
560 copy ..\common\$D\helpbase.obj
561 copy ..\common\$D\http.obj
562 copy ..\common\$D\imagall.obj
563 copy ..\common\$D\imagbmp.obj
564 copy ..\common\$D\image.obj
565 copy ..\common\$D\imaggif.obj
566 copy ..\common\$D\imagjpeg.obj
567 copy ..\common\$D\imagpcx.obj
568 copy ..\common\$D\imagpng.obj
569 copy ..\common\$D\imagpnm.obj
570 copy ..\common\$D\intl.obj
571 copy ..\common\$D\ipcbase.obj
572 copy ..\common\$D\layout.obj
573 copy ..\common\$D\list.obj
574 copy ..\common\$D\log.obj
575
576 $(COMLIBOBJS2):
577 copy ..\common\$D\longlong.obj \
578 copy ..\common\$D\matrix.obj \
579 copy ..\common\$D\memory.obj \
580 copy ..\common\$D\mimetype.obj \
581 copy ..\common\$D\module.obj \
582 copy ..\common\$D\mstream.obj \
583 copy ..\common\$D\object.obj \
584 copy ..\common\$D\objstrm.obj \
585 copy ..\common\$D\odbc.obj \
586 copy ..\common\$D\paper.obj \
587 copy ..\common\$D\prntbase.obj \
588 copy ..\common\$D\process.obj \
589 copy ..\common\$D\protocol.obj \
590 copy ..\common\$D\resource.obj \
591 copy ..\common\$D\sckaddr.obj \
592 copy ..\common\$D\sckfile.obj \
593 copy ..\common\$D\sckipc.obj \
594 copy ..\common\$D\sckstrm.obj \
595 copy ..\common\$D\serbase.obj \
596 copy ..\common\$D\sizer.obj \
597 copy ..\common\$D\socket.obj \
598 copy ..\common\$D\strconv.obj \
599 copy ..\common\$D\stream.obj \
600 copy ..\common\$D\string.obj \
601 copy ..\common\$D\tbarbase.obj \
602 copy ..\common\$D\tbarsmpl.obj \
603 copy ..\common\$D\textcmn.obj \
604 copy ..\common\$D\textfile.obj \
605 copy ..\common\$D\time.obj \
606 copy ..\common\$D\timercmn.obj \
607 copy ..\common\$D\tokenzr.obj \
608 copy ..\common\$D\txtstrm.obj \
609 copy ..\common\$D\unzip.obj \
610 copy ..\common\$D\url.obj \
611 copy ..\common\$D\utilscmn.obj \
612 copy ..\common\$D\valgen.obj \
613 copy ..\common\$D\validate.obj \
614 copy ..\common\$D\valtext.obj \
615 copy ..\common\$D\variant.obj \
616 copy ..\common\$D\wfstream.obj \
617 copy ..\common\$D\wincmn.obj \
618 copy ..\common\$D\wxchar.obj \
619 copy ..\common\$D\wxexpr.obj \
620 copy ..\common\$D\y_tab.obj \
621 copy ..\common\$D\zipstrm.obj \
622 copy ..\common\$D\zstream.obj
623
624 $(GENLIBOBJS):
625 copy ..\generic\$D\caret.obj
626 copy ..\generic\$D\choicdgg.obj
627 copy ..\generic\$D\gridg.obj
628 copy ..\generic\$D\laywin.obj
629 copy ..\generic\$D\panelg.obj
630 copy ..\generic\$D\progdlgg.obj
631 copy ..\generic\$D\prop.obj
632 copy ..\generic\$D\propform.obj
633 copy ..\generic\$D\proplist.obj
634 copy ..\generic\$D\sashwin.obj
635 copy ..\generic\$D\scrolwin.obj
636 copy ..\generic\$D\splitter.obj
637 copy ..\generic\$D\statusbr.obj
638 copy ..\generic\$D\tabg.obj
639 copy ..\generic\$D\textdlgg.obj
640 copy ..\generic\$D\tipdlg.obj
641 copy ..\generic\$D\busyinfo.obj
642
643 $(OS2LIBOBJS1):
644 copy ..\os2\$D\accel.obj
645 copy ..\os2\$D\app.obj
646 copy ..\os2\$D\bitmap.obj
647 copy ..\os2\$D\bmpbuttn.obj
648 copy ..\os2\$D\brush.obj
649 copy ..\os2\$D\button.obj
650 copy ..\os2\$D\checkbox.obj
651 copy ..\os2\$D\checklst.obj
652 copy ..\os2\$D\choice.obj
653 copy ..\os2\$D\clipbrd.obj
654 copy ..\os2\$D\colour.obj
655 copy ..\os2\$D\combobox.obj
656 copy ..\os2\$D\control.obj
657 copy ..\os2\$D\cursor.obj
658 copy ..\os2\$D\data.obj
659 copy ..\os2\$D\dc.obj
660 copy ..\os2\$D\dcclient.obj
661 copy ..\os2\$D\dcmemory.obj
662 copy ..\os2\$D\dcprint.obj
663 copy ..\os2\$D\dcscreen.obj
664 copy ..\os2\$D\dialog.obj
665 copy ..\os2\$D\dirdlg.obj
666 copy ..\os2\$D\dnd.obj
667 copy ..\os2\$D\filedlg.obj
668 copy ..\os2\$D\font.obj
669 copy ..\os2\$D\fontdlg.obj
670 copy ..\os2\$D\frame.obj
671 copy ..\os2\$D\gauge.obj
672 copy ..\os2\$D\gdiobj.obj
673 copy ..\os2\$D\gsocket.obj
674 copy ..\os2\$D\helpwin.obj
675 copy ..\os2\$D\icon.obj
676 copy ..\os2\$D\imaglist.obj
677 copy ..\os2\$D\iniconf.obj
678 copy ..\os2\$D\joystick.obj
679 copy ..\os2\$D\listbox.obj
680 copy ..\os2\$D\listctrl.obj
681 copy ..\os2\$D\main.obj
682 copy ..\os2\$D\mdi.obj
683 copy ..\os2\$D\menu.obj
684 copy ..\os2\$D\menuitem.obj
685 copy ..\os2\$D\metafile.obj
686 copy ..\os2\$D\minifram.obj
687 copy ..\os2\$D\msgdlg.obj
688 copy ..\os2\$D\nativdlg.obj
689
690 $(OS2LIBOBJS2):
691 copy ..\os2\$D\notebook.obj
692 copy ..\os2\$D\ownerdrw.obj
693 copy ..\os2\$D\palette.obj
694 copy ..\os2\$D\pen.obj
695 copy ..\os2\$D\pnghand.obj
696 copy ..\os2\$D\print.obj
697 copy ..\os2\$D\radiobox.obj
698 copy ..\os2\$D\radiobut.obj
699 copy ..\os2\$D\region.obj
700 copy ..\os2\$D\scrolbar.obj
701 copy ..\os2\$D\settings.obj
702 copy ..\os2\$D\slider.obj
703 copy ..\os2\$D\spinbutt.obj
704 copy ..\os2\$D\spinctrl.obj
705 copy ..\os2\$D\statbmp.obj
706 copy ..\os2\$D\statbox.obj
707 copy ..\os2\$D\stattext.obj
708 copy ..\os2\$D\statbrpm.obj
709 copy ..\os2\$D\tabctrl.obj
710 copy ..\os2\$D\taskbar.obj
711 copy ..\os2\$D\textctrl.obj
712 copy ..\os2\$D\thread.obj
713 copy ..\os2\$D\timer.obj
714 copy ..\os2\$D\toolbar.obj
715 copy ..\os2\$D\tooltip.obj
716 copy ..\os2\$D\treectrl.obj
717 copy ..\os2\$D\utils.obj
718 copy ..\os2\$D\utilsexc.obj
719 copy ..\os2\$D\wave.obj
720 copy ..\os2\$D\window.obj
721
722 # wxWindows library as DLL
723 dll:
724 nmake -f makefile.va all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
725
726 cleandll:
727 nmake -f makefile.va clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
728
729 # wxWindows + app as DLL. Only affects main.cpp.
730 dllapp:
731 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
732
733 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
734 dllnp:
735 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
736
737 # Use this to make dummy.obj and generate a PCH.
738 # You might use the dll target, then the pch target, in order to
739 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
740 #
741 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
742 # are associated with wx.lib. When using a DLL version of wxWindows, however,
743 # the DLL is compiled without a PCH, so you only need it for compiling the app.
744 # In fact headers are compiled differently depending on whether a DLL is being made
745 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
746 # in each case) so you couldn't use the same PCH.
747 pch:
748 nmake -f makefile.va pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
749
750 pch1: dirs $(DUMMYOBJ)
751 echo $(DUMMYOBJ)
752
753 !if "$(WXMAKINGDLL)" != "1"
754
755 ### Static library
756
757 $(WXDIR)\lib\wxcom1.lib: $(COMLIBOBJS1)
758 touch $(WXDIR)\lib\wxcom1.lib
759 del $(WXDIR)\lib\wxcom1.lib
760 ilib $(LIBFLAGS) $@ @<<
761 $**;
762 <<
763
764 $(WXDIR)\lib\wxcom2.lib: $(COMLIBOBJS2)
765 touch $(WXDIR)\lib\wxcom2.lib
766 del $(WXDIR)\lib\wxcom2.lib
767 ilib $(LIBFLAGS) $@ @<<
768 $**;
769 <<
770
771 $(WXDIR)\lib\wxgen.lib: $(GENLIBOBJS)
772 touch $(WXDIR)\lib\wxgen.lib
773 del $(WXDIR)\lib\wxgen.lib
774 ilib $(LIBFLAGS) $@ @<<
775 $**;
776 <<
777
778 $(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS)
779 touch $(WXDIR)\lib\wxnones.lib
780 del $(WXDIR)\lib\wxnones.lib
781 ilib $(LIBFLAGS) $@ @<<
782 $**;
783 <<
784
785 $(WXDIR)\lib\wxos21.lib: $(OS2LIBOBJS1)
786 touch $(WXDIR)\lib\wxos21.lib
787 del $(WXDIR)\lib\wxos21.lib
788 ilib $(LIBFLAGS) $@ @<<
789 $**;
790 <<
791
792 $(WXDIR)\lib\wxos22.lib: $(OS2LIBOBJS2)
793 touch $(WXDIR)\lib\wxos22.lib
794 del $(WXDIR)\lib\wxos22.lib
795 ilib $(LIBFLAGS) $@ @<<
796 $**;
797 <<
798 del *.obj
799
800 $(WXDIR)\lib\wx.lib: \
801 $D\dummy.obj \
802 $(COMTEMPTGT1) \
803 $(COMTEMPTGT2) \
804 $(GENTEMPTGT) \
805 $(NONESTEMPTGT) \
806 $(OS2TEMPTGT1) \
807 $(OS2TEMPTGT2) \
808 $(PERIPH_LIBS)
809 touch $(LIBTARGET)
810 del $(LIBTARGET)
811 ilib $(LIBFLAGS) $@ @<<
812 $**;
813 <<
814 del $(COMTEMPTGT1)
815 del $(COMTEMPTGT2)
816 del $(GENTEMPTGT)
817 del $(NONESTEMPTGT)
818 del $(OS2TEMPTGT1)
819 del $(OS2TEMPTGT2)
820
821 !else
822
823 # Update the import library
824 $(WXDIR)\lib\wx210.lib: $(OBJECTS)
825 implib $(WXDIR)\lib\wx210.lib $(WXDIR)\lib\wx210.def
826
827 # Update the dynamic link library
828 $(WXDIR)\lib\wx200.dll: $(OBJECTS) $(WXDIR)\lib\wx210.lib
829 icc @<<
830 /B" $(LINKFLAGS)" /Fe$@
831 $(LIBS)
832 $(OBJECTS)
833 $(WXDIR)\lib\wx210.def
834 <<
835
836 !endif
837
838 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
839 icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /Tp dummy.cpp
840
841 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
842 icc @<<
843 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
844 <<
845
846 # If taking wxWindows from CVS, setup.h doesn't exist yet.
847 $(WXDIR)\include\wx\os2\setup.h: $(WXDIR)\include\wx\os2\setup0.h
848 copy "$(WXDIR)"\include\wx\os2\setup.h "$(WXDIR)"\include\wx\os2\setup.bak
849 copy "$(WXDIR)"\include\wx\os2\setup0.h "$(WXDIR)"\include\wx\os2\setup.h
850
851 ..\common\$D\extended.obj: ..\common\extended.c
852 icc @<<
853 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c
854 <<
855
856 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
857 icc @<<
858 $(CPPFLAGS2) /DUSE_DEFINE /DYY_USE_PROTOS /Fo$@ ..\common\y_tab.c
859 <<
860
861 ..\common\y_tab.c: ..\common\dosyacc.c
862 copy "..\common"\dosyacc.c "..\common"\y_tab.c
863
864 ..\common\lex_yy.c: ..\common\doslex.c
865 copy "..\common"\doslex.c "..\common"\lex_yy.c
866
867 $(OBJECTS): $(WXDIR)/include/wx/setup.h
868
869 ..\common\$D\unzip.obj: ..\common\unzip.c
870 icc @<<
871 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\unzip.c
872 <<
873
874 clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm
875 -erase $(LIBTARGET)
876 -erase ..\..\lib\wx200.dll
877 -erase ..\..\lib\wx200.lib
878 -erase $(GENDIR)\$D\*.obj
879 -erase $(COMMDIR)\$D\*.obj
880 -erase $(COMMDIR)\\y_tab.c
881 -erase $(COMMDIR)\lex_yy.c
882 -erase $(OS2DIR)\$D\*.obj
883 -rmdir $(D)
884 -rmdir ole\$(D)
885 -rmdir ..\generic\$(D)
886 -rmdir ..\common\$(D)
887
888 cleanall: clean
889