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