]> git.saurik.com Git - wxWidgets.git/blame - src/os2/makefile.va
Removed unused code
[wxWidgets.git] / src / os2 / makefile.va
CommitLineData
0e320a79
DW
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)
9fea1a5d
DW
25COMTEMPTGT1=$(WXDIR)\lib\wxcom1.lib
26COMTEMPTGT2=$(WXDIR)\lib\wxcom2.lib
27GENTEMPTGT=$(WXDIR)\lib\wxgen.lib
28NONESTEMPTGT=$(WXDIR)\lib\wxnones.lib
11e59d47
DW
29OS2TEMPTGT1=$(WXDIR)\lib\wxos21.lib
30OS2TEMPTGT2=$(WXDIR)\lib\wxos22.lib
0e320a79
DW
31DUMMYOBJ=$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
38MINIMAL_WXWINDOWS_SETUP=0
39
40PERIPH_LIBS=
41PERIPH_TARGET=
42PERIPH_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.
48GENDIR=$(WXDIR)\src\generic
49COMMDIR=$(WXDIR)\src\common
50OS2DIR=$(WXDIR)\src\os2
51HTMLDIR = $(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:
913df6f2 66 @echo $<
0e320a79
DW
67 icc @<<
68$(CPPFLAGS) /Fo$@ /Tp $<
69<<
70
fb9010ed
DW
71{..\os2}.c{..\os2\$D}.obj:
72 @echo $<
73 icc @<<
74$(CPPFLAGS) /Fo$@ /Tp $<
75<<
76
0e320a79 77{..\html}.cpp{..\html\$D}.obj:
913df6f2 78 @echo $<
0e320a79
DW
79 icc @<<
80$(CPPFLAGS) /Fo$@ /Tp $<
81<<
82
83GENERICOBJS= \
0616b838 84 ..\generic\$D\caret.obj \
0e320a79
DW
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 \
0e320a79
DW
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
9fea1a5d 107GENLIBOBJS= \
0616b838 108 caret.obj \
9fea1a5d
DW
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
1408104d 126# These are generic things that don't need to be compiled on PM,
0e320a79
DW
127# but sometimes it's useful to do so for testing purposes.
128NONESSENTIALOBJS= \
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
136COMMONOBJS = \
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 \
0e320a79
DW
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 \
0e320a79
DW
209 ..\common\$D\filesys.obj \
210 ..\common\$D\fs_inet.obj \
211 ..\common\$D\fs_zip.obj
212
9fea1a5d
DW
213COMLIBOBJS1 = \
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
260COMLIBOBJS2 = \
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
0e320a79
DW
291
292OS2OBJS = \
77cd51c3
DW
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 \
0616b838
DW
299 ..\os2\$D\checkbox.obj \
300 ..\os2\$D\checklst.obj \
301 ..\os2\$D\choice.obj \
302 ..\os2\$D\clipbrd.obj \
45fcbf3b
DW
303 ..\os2\$D\colour.obj \
304 ..\os2\$D\combobox.obj \
305 ..\os2\$D\control.obj \
4486e1be 306 ..\os2\$D\cursor.obj \
23e4b7d8 307 ..\os2\$D\data.obj \
c3d43472 308 ..\os2\$D\dc.obj \
ce44c50e
DW
309 ..\os2\$D\dcclient.obj \
310 ..\os2\$D\dcmemory.obj \
311 ..\os2\$D\dcprint.obj \
312 ..\os2\$D\dcscreen.obj \
c3d43472 313 ..\os2\$D\dialog.obj \
27476f73 314 ..\os2\$D\dirdlg.obj \
f0a56ab0
DW
315 ..\os2\$D\dnd.obj \
316 ..\os2\$D\filedlg.obj \
21802234
DW
317 ..\os2\$D\font.obj \
318 ..\os2\$D\fontdlg.obj \
c3d43472 319 ..\os2\$D\frame.obj \
0371a691
DW
320 ..\os2\$D\gauge.obj \
321 ..\os2\$D\gdiobj.obj \
fb9010ed
DW
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 \
75f11ad7
DW
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 \
cdf1e714
DW
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 \
fb46a9a6 342 ..\os2\$D\pnghand.obj \
cdf1e714
DW
343 ..\os2\$D\print.obj \
344 ..\os2\$D\radiobox.obj \
345 ..\os2\$D\radiobut.obj \
409c9842
DW
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 \
77cd51c3
DW
354 ..\os2\$D\window.obj
355
11e59d47 356OS2LIBOBJS1 = \
77cd51c3
DW
357 accel.obj \
358 app.obj \
359 bitmap.obj \
360 bmpbuttn.obj \
361 brush.obj \
362 button.obj \
0616b838
DW
363 checkbox.obj \
364 checklst.obj \
365 choice.obj \
366 clipbrd.obj \
45fcbf3b
DW
367 colour.obj \
368 combobox.obj \
369 control.obj \
4486e1be 370 cursor.obj \
23e4b7d8 371 data.obj \
77cd51c3 372 dc.obj \
ce44c50e
DW
373 dcclient.obj \
374 dcmemory.obj \
375 dcprint.obj \
376 dcscreen.obj \
77cd51c3 377 dialog.obj \
27476f73 378 dirdlg.obj \
f0a56ab0
DW
379 dnd.obj \
380 filedlg.obj \
21802234
DW
381 font.obj \
382 fontdlg.obj \
77cd51c3 383 frame.obj \
0371a691
DW
384 gauge.obj \
385 gdiobj.obj \
fb9010ed
DW
386 gsocket.obj \
387 helpwin.obj \
388 icon.obj \
389 imaglist.obj \
390 iniconf.obj \
391 joystick.obj \
392 listbox.obj \
75f11ad7
DW
393 listctrl.obj \
394 main.obj \
395 mdi.obj \
396 menu.obj \
397 menuitem.obj \
398 metafile.obj \
399 minifram.obj \
cdf1e714 400 msgdlg.obj \
11e59d47
DW
401 nativdlg.obj
402
403OS2LIBOBJS2 = \
cdf1e714
DW
404 notebook.obj \
405 ownerdrw.obj \
406 palette.obj \
407 pen.obj \
fb46a9a6 408 pnghand.obj \
cdf1e714
DW
409 print.obj \
410 radiobox.obj \
411 radiobut.obj \
409c9842
DW
412 region.obj \
413 scrolbar.obj \
414 settings.obj \
415 slider.obj \
416 spinbutt.obj \
417 spinctrl.obj \
418 statbmp.obj \
419 statbox.obj \
77cd51c3 420 window.obj
0e320a79
DW
421
422HTMLOBJS = \
423 ..\html\$D\htmlcell.obj \
424 ..\html\$D\htmlfilter.obj \
425 ..\html\$D\htmlhelp.obj \
426 ..\html\$D\htmlhelp_io.obj \
427 ..\html\$D\htmlparser.obj \
428 ..\html\$D\htmltag.obj \
429 ..\html\$D\htmlwin.obj \
430 ..\html\$D\htmlwinparser.obj \
21802234 431 ..\html\$D\mod_fonts.obj \
0e320a79
DW
432 ..\html\$D\mod_hline.obj \
433 ..\html\$D\mod_image.obj \
434 ..\html\$D\mod_layout.obj \
435 ..\html\$D\mod_links.obj \
436 ..\html\$D\mod_list.obj \
437 ..\html\$D\mod_pre.obj \
438 ..\html\$D\mod_tables.obj \
439 ..\html\$D\search.obj
440
441# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
442OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(NONESSENTIALOBJS) $(OS2OBJS)
443
444# Normal, static library
445all: $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
446
447dirs: $(OS2DIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(HTMLDIR)\$D
448
449
450test: $(OS2DIR)\$D\wave.obj
451test2: ..\common\Debug\config.obj
452
453$D:
454 md $D
455
456$(COMMDIR)\$D:
457 md $(COMMDIR)\$D
458
459$(OS2DIR)\$D:
460 md $(OS2DIR)\$D
461
462$(GENDIR)\$D:
463 md $(GENDIR)\$D
464
465$(HTMLDIR)\$D:
466 md $(HTMLDIR)\$D
467
9fea1a5d
DW
468$(COMLIBOBJS1):
469 copy ..\common\$D\cmndata.obj
470 copy ..\common\$D\config.obj
471 copy ..\common\$D\dcbase.obj
472 copy ..\common\$D\db.obj
473 copy ..\common\$D\dbtable.obj
474 copy ..\common\$D\docview.obj
475 copy ..\common\$D\docmdi.obj
476 copy ..\common\$D\dynarray.obj
477 copy ..\common\$D\dynlib.obj
478 copy ..\common\$D\event.obj
479 copy ..\common\$D\file.obj
480 copy ..\common\$D\filefn.obj
481 copy ..\common\$D\fileconf.obj
482 copy ..\common\$D\framecmn.obj
483 copy ..\common\$D\ftp.obj
484 copy ..\common\$D\gdicmn.obj
485 copy ..\common\$D\image.obj
486 copy ..\common\$D\imagbmp.obj
487 copy ..\common\$D\imagjpeg.obj
488 copy ..\common\$D\imagpng.obj
489 copy ..\common\$D\imaggif.obj
490 copy ..\common\$D\intl.obj
491 copy ..\common\$D\ipcbase.obj
492 copy ..\common\$D\helpbase.obj
493 copy ..\common\$D\layout.obj
494 copy ..\common\$D\log.obj
495 copy ..\common\$D\memory.obj
496 copy ..\common\$D\mimetype.obj
497 copy ..\common\$D\module.obj
498 copy ..\common\$D\odbc.obj
499 copy ..\common\$D\object.obj
500 copy ..\common\$D\prntbase.obj
501 copy ..\common\$D\resource.obj
502 copy ..\common\$D\tbarbase.obj
503 copy ..\common\$D\tbarsmpl.obj
504 copy ..\common\$D\textfile.obj
505 copy ..\common\$D\timercmn.obj
506 copy ..\common\$D\utilscmn.obj
507 copy ..\common\$D\validate.obj
508 copy ..\common\$D\valgen.obj
509 copy ..\common\$D\valtext.obj
510 copy ..\common\$D\date.obj
511 copy ..\common\$D\hash.obj
512 copy ..\common\$D\list.obj
513 copy ..\common\$D\paper.obj
514
515$(COMLIBOBJS2):
516 copy ..\common\$D\string.obj
517 copy ..\common\$D\socket.obj
518 copy ..\common\$D\sckaddr.obj
519 copy ..\common\$D\sckfile.obj
520 copy ..\common\$D\sckipc.obj
521 copy ..\common\$D\sckstrm.obj
522 copy ..\common\$D\url.obj
523 copy ..\common\$D\http.obj
524 copy ..\common\$D\protocol.obj
525 copy ..\common\$D\time.obj
526 copy ..\common\$D\tokenzr.obj
527 copy ..\common\$D\wxexpr.obj
528 copy ..\common\$D\y_tab.obj
529 copy ..\common\$D\extended.obj
530 copy ..\common\$D\process.obj
531 copy ..\common\$D\wfstream.obj
532 copy ..\common\$D\mstream.obj
533 copy ..\common\$D\zstream.obj
534 copy ..\common\$D\stream.obj
535 copy ..\common\$D\datstrm.obj
536 copy ..\common\$D\objstrm.obj
537 copy ..\common\$D\variant.obj
538 copy ..\common\$D\dlgcmn.obj
539 copy ..\common\$D\wincmn.obj
540 copy ..\common\$D\txtstrm.obj
541 copy ..\common\$D\wxchar.obj
542 copy ..\common\$D\unzip.obj
543 copy ..\common\$D\filesys.obj
544 copy ..\common\$D\fs_inet.obj
545 copy ..\common\$D\fs_zip.obj
546
547$(GENLIBOBJS):
0616b838 548 copy ..\generic\$D\caret.obj
9fea1a5d
DW
549 copy ..\generic\$D\choicdgg.obj
550 copy ..\generic\$D\gridg.obj
551 copy ..\generic\$D\laywin.obj
552 copy ..\generic\$D\panelg.obj
553 copy ..\generic\$D\progdlgg.obj
554 copy ..\generic\$D\prop.obj
555 copy ..\generic\$D\propform.obj
556 copy ..\generic\$D\proplist.obj
557 copy ..\generic\$D\sashwin.obj
558 copy ..\generic\$D\scrolwin.obj
559 copy ..\generic\$D\splitter.obj
560 copy ..\generic\$D\statusbr.obj
561 copy ..\generic\$D\tabg.obj
562 copy ..\generic\$D\textdlgg.obj
563 copy ..\generic\$D\tipdlg.obj
564 copy ..\generic\$D\busyinfo.obj
565
11e59d47 566$(OS2LIBOBJS1):
77cd51c3
DW
567 copy ..\os2\$D\accel.obj
568 copy ..\os2\$D\app.obj
569 copy ..\os2\$D\bitmap.obj
570 copy ..\os2\$D\bmpbuttn.obj
571 copy ..\os2\$D\brush.obj
572 copy ..\os2\$D\button.obj
0616b838
DW
573 copy ..\os2\$D\checkbox.obj
574 copy ..\os2\$D\checklst.obj
575 copy ..\os2\$D\choice.obj
576 copy ..\os2\$D\clipbrd.obj
45fcbf3b
DW
577 copy ..\os2\$D\colour.obj
578 copy ..\os2\$D\combobox.obj
579 copy ..\os2\$D\control.obj
4486e1be 580 copy ..\os2\$D\cursor.obj
23e4b7d8 581 copy ..\os2\$D\data.obj
77cd51c3 582 copy ..\os2\$D\dc.obj
ce44c50e
DW
583 copy ..\os2\$D\dcclient.obj
584 copy ..\os2\$D\dcmemory.obj
585 copy ..\os2\$D\dcprint.obj
586 copy ..\os2\$D\dcscreen.obj
77cd51c3 587 copy ..\os2\$D\dialog.obj
27476f73 588 copy ..\os2\$D\dirdlg.obj
f0a56ab0
DW
589 copy ..\os2\$D\dnd.obj
590 copy ..\os2\$D\filedlg.obj
21802234
DW
591 copy ..\os2\$D\font.obj
592 copy ..\os2\$D\fontdlg.obj
77cd51c3 593 copy ..\os2\$D\frame.obj
0371a691
DW
594 copy ..\os2\$D\gauge.obj
595 copy ..\os2\$D\gdiobj.obj
fb9010ed
DW
596 copy ..\os2\$D\gsocket.obj
597 copy ..\os2\$D\helpwin.obj
598 copy ..\os2\$D\icon.obj
599 copy ..\os2\$D\imaglist.obj
600 copy ..\os2\$D\iniconf.obj
601 copy ..\os2\$D\joystick.obj
602 copy ..\os2\$D\listbox.obj
75f11ad7
DW
603 copy ..\os2\$D\listctrl.obj
604 copy ..\os2\$D\main.obj
605 copy ..\os2\$D\mdi.obj
606 copy ..\os2\$D\menu.obj
607 copy ..\os2\$D\menuitem.obj
608 copy ..\os2\$D\metafile.obj
609 copy ..\os2\$D\minifram.obj
cdf1e714
DW
610 copy ..\os2\$D\msgdlg.obj
611 copy ..\os2\$D\nativdlg.obj
11e59d47
DW
612
613$(OS2LIBOBJS2):
cdf1e714
DW
614 copy ..\os2\$D\notebook.obj
615 copy ..\os2\$D\ownerdrw.obj
11e59d47 616 copy ..\os2\$D\palette.obj
cdf1e714 617 copy ..\os2\$D\pen.obj
fb46a9a6 618 copy ..\os2\$D\pnghand.obj
cdf1e714
DW
619 copy ..\os2\$D\print.obj
620 copy ..\os2\$D\radiobox.obj
621 copy ..\os2\$D\radiobut.obj
409c9842
DW
622 copy ..\os2\$D\region.obj
623 copy ..\os2\$D\scrolbar.obj
624 copy ..\os2\$D\settings.obj
625 copy ..\os2\$D\slider.obj
626 copy ..\os2\$D\spinbutt.obj
627 copy ..\os2\$D\spinctrl.obj
628 copy ..\os2\$D\statbmp.obj
629 copy ..\os2\$D\statbox.obj
77cd51c3
DW
630 copy ..\os2\$D\window.obj
631
0e320a79
DW
632# wxWindows library as DLL
633dll:
634 nmake -f makefile.va all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
635
636cleandll:
637 nmake -f makefile.va clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
638
639# wxWindows + app as DLL. Only affects main.cpp.
640dllapp:
641 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
642
643# wxWindows + app as DLL, for Netscape plugin - remove DllMain.
644dllnp:
645 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
646
647# Use this to make dummy.obj and generate a PCH.
648# You might use the dll target, then the pch target, in order to
649# generate a DLL, then a PCH/dummy.obj for compiling your applications with.
650#
651# Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
652# are associated with wx.lib. When using a DLL version of wxWindows, however,
653# the DLL is compiled without a PCH, so you only need it for compiling the app.
654# In fact headers are compiled differently depending on whether a DLL is being made
655# or an app is calling the DLL exported functionality (WXDLLEXPORT is different
656# in each case) so you couldn't use the same PCH.
657pch:
658 nmake -f makefile.va pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
659
660pch1: dirs $(DUMMYOBJ)
661 echo $(DUMMYOBJ)
662
663!if "$(WXMAKINGDLL)" != "1"
664
665### Static library
666
9fea1a5d
DW
667$(WXDIR)\lib\wxcom1.lib: $(COMLIBOBJS1)
668 touch $(WXDIR)\lib\wxcom1.lib
669 del $(WXDIR)\lib\wxcom1.lib
670 ilib $(LIBFLAGS) $@ @<<
671 $**;
672<<
673
674$(WXDIR)\lib\wxcom2.lib: $(COMLIBOBJS2)
675 touch $(WXDIR)\lib\wxcom2.lib
676 del $(WXDIR)\lib\wxcom2.lib
677 ilib $(LIBFLAGS) $@ @<<
678 $**;
679<<
680
681$(WXDIR)\lib\wxgen.lib: $(GENLIBOBJS)
682 touch $(WXDIR)\lib\wxgen.lib
683 del $(WXDIR)\lib\wxgen.lib
684 ilib $(LIBFLAGS) $@ @<<
685 $**;
686<<
9fea1a5d
DW
687
688$(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS)
689 touch $(WXDIR)\lib\wxnones.lib
690 del $(WXDIR)\lib\wxnones.lib
691 ilib $(LIBFLAGS) $@ @<<
692 $**;
693<<
694
11e59d47
DW
695$(WXDIR)\lib\wxos21.lib: $(OS2LIBOBJS1)
696 touch $(WXDIR)\lib\wxos21.lib
697 del $(WXDIR)\lib\wxos21.lib
698 ilib $(LIBFLAGS) $@ @<<
699 $**;
700<<
701
702$(WXDIR)\lib\wxos22.lib: $(OS2LIBOBJS2)
703 touch $(WXDIR)\lib\wxos22.lib
704 del $(WXDIR)\lib\wxos22.lib
9fea1a5d
DW
705 ilib $(LIBFLAGS) $@ @<<
706 $**;
707<<
77cd51c3 708 del *.obj
9fea1a5d
DW
709
710$(WXDIR)\lib\wx.lib: \
711 $D\dummy.obj \
712 $(COMTEMPTGT1) \
713 $(COMTEMPTGT2) \
714 $(GENTEMPTGT) \
715 $(NONESTEMPTGT) \
11e59d47
DW
716 $(OS2TEMPTGT1) \
717 $(OS2TEMPTGT2) \
9fea1a5d 718 $(PERIPH_LIBS)
de44a9f0 719 touch $(LIBTARGET)
0e320a79 720 del $(LIBTARGET)
9fea1a5d
DW
721 ilib $(LIBFLAGS) $@ @<<
722 $**;
0e320a79 723<<
9fea1a5d
DW
724 del $(COMTEMPTGT1)
725 del $(COMTEMPTGT2)
726 del $(GENTEMPTGT)
727 del $(NONESTEMPTGT)
11e59d47
DW
728 del $(OS2TEMPTGT1)
729 del $(OS2TEMPTGT2)
0e320a79
DW
730
731!else
732
733# Update the import library
734$(WXDIR)\lib\wx200.lib: $(OBJECTS)
735 implib $(WXDIR)\lib\wx200.lib $(WXDIR)\lib\wx200.def
736
737# Update the dynamic link library
738$(WXDIR)\lib\wx200.dll: $(OBJECTS) $(WXDIR)\lib\wx200.lib
739 icc @<<
740 /B" $(LINKFLAGS)" /Fe$@
741 $(LIBS)
742 $(OBJECTS)
743 $(WXDIR)\lib\wx200.def
744<<
745
746!endif
747
748$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
749 icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /Tp dummy.cpp
750
751$D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
752 icc @<<
753$(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
754<<
755
756# If taking wxWindows from CVS, setup.h doesn't exist yet.
757$(WXDIR)\include\wx\os2\setup.h: $(WXDIR)\include\wx\os2\setup0.h
758 copy "$(WXDIR)"\include\wx\os2\setup.h "$(WXDIR)"\include\wx\os2\setup.bak
759 copy "$(WXDIR)"\include\wx\os2\setup0.h "$(WXDIR)"\include\wx\os2\setup.h
760
761..\common\$D\extended.obj: ..\common\extended.c
762 icc @<<
763$(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c
764<<
765
766..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
767 icc @<<
768$(CPPFLAGS2) /DUSE_DEFINE /DYY_USE_PROTOS /Fo$@ ..\common\y_tab.c
769<<
770
771..\common\y_tab.c: ..\common\dosyacc.c
772 copy "..\common"\dosyacc.c "..\common"\y_tab.c
773
774..\common\lex_yy.c: ..\common\doslex.c
775 copy "..\common"\doslex.c "..\common"\lex_yy.c
776
777$(OBJECTS): $(WXDIR)/include/wx/setup.h
778
779..\common\$D\unzip.obj: ..\common\unzip.c
780 icc @<<
781$(CPPFLAGS2) /Fo$@ $(COMMDIR)\unzip.c
782<<
783
784clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm
785 -erase $(LIBTARGET)
786 -erase ..\..\lib\wx200.dll
787 -erase ..\..\lib\wx200.lib
788 -erase $(GENDIR)\$D\*.obj
789 -erase $(COMMDIR)\$D\*.obj
790 -erase $(COMMDIR)\\y_tab.c
791 -erase $(COMMDIR)\lex_yy.c
792 -erase $(OS2DIR)\$D\*.obj
793 -rmdir $(D)
794 -rmdir ole\$(D)
795 -rmdir ..\generic\$(D)
796 -rmdir ..\common\$(D)
797
798cleanall: clean
799