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