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