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