]> git.saurik.com Git - wxWidgets.git/blob - src/os2/makefile.va
*** empty log message ***
[wxWidgets.git] / src / os2 / makefile.va
1 #
2 # File: makefile.va
3 # Author: Dave Webster
4 # Created: 1999
5 # Updated:
6 # Copyright: (c) 1999, Dave Webster
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxWindows library wx.lib for VisualAge C++
11 # Arguments:
12 #
13 # FINAL=1 argument to nmake to build version with no debugging info.
14 # dll builds a library (wxdll.lib) suitable for creating DLLs
15 #
16 !include <..\makeva.env>
17
18 THISDIR=$(WXWIN)\src\os2
19
20 !if "$(WXMAKINGDLL)" == "1"
21 LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll
22 DUMMYOBJ=$D\dummydll.obj
23 !else
24 LIBTARGET=$(WXLIB)
25 COMTEMPTGT1=$(WXDIR)\lib\wxcom1.lib
26 COMTEMPTGT2=$(WXDIR)\lib\wxcom2.lib
27 GENTEMPTGT=$(WXDIR)\lib\wxgen.lib
28 NONESTEMPTGT=$(WXDIR)\lib\wxnones.lib
29 OS2TEMPTGT=$(WXDIR)\lib\wxos2.lib
30 DUMMYOBJ=$D\dummy.obj
31 !endif
32
33 # Please set these according to the settings in setup.h, so we can include
34 # the appropriate libraries in wx.lib
35
36 # This one overrides the others, to be consistent with the settings in wx_setup.h
37 MINIMAL_WXWINDOWS_SETUP=0
38
39 PERIPH_LIBS=
40 PERIPH_TARGET=
41 PERIPH_CLEAN_TARGET=
42
43 # These are absolute paths, so that the compiler
44 # generates correct __FILE__ symbols for debugging.
45 # Otherwise you don't be able to double-click on a memory
46 # error to load that file.
47 GENDIR=$(WXDIR)\src\generic
48 COMMDIR=$(WXDIR)\src\common
49 OS2DIR=$(WXDIR)\src\os2
50 HTMLDIR = $(WXDIR)\src\html
51
52 {..\generic}.cpp{..\generic\$D}.obj:
53 @echo $<
54 icc @<<
55 $(CPPFLAGS) /Fo$@ /Tp $<
56 <<
57
58 {..\common}.cpp{..\common\$D}.obj:
59 @echo $<
60 icc @<<
61 $(CPPFLAGS) /Fo$@ /Tp $<
62 <<
63
64 {..\os2}.cpp{..\os2\$D}.obj:
65 @echo $<
66 icc @<<
67 $(CPPFLAGS) /Fo$@ /Tp $<
68 <<
69
70 {..\html}.cpp{..\html\$D}.obj:
71 @echo $<
72 icc @<<
73 $(CPPFLAGS) /Fo$@ /Tp $<
74 <<
75
76 GENERICOBJS= \
77 ..\generic\$D\caret.obj \
78 ..\generic\$D\choicdgg.obj \
79 ..\generic\$D\gridg.obj \
80 ..\generic\$D\laywin.obj \
81 ..\generic\$D\panelg.obj \
82 ..\generic\$D\progdlgg.obj \
83 ..\generic\$D\prop.obj \
84 ..\generic\$D\propform.obj \
85 ..\generic\$D\proplist.obj \
86 ..\generic\$D\sashwin.obj \
87 ..\generic\$D\scrolwin.obj \
88 ..\generic\$D\splitter.obj \
89 ..\generic\$D\statusbr.obj \
90 ..\generic\$D\tabg.obj \
91 ..\generic\$D\textdlgg.obj \
92 ..\generic\$D\tipdlg.obj \
93 ..\generic\$D\busyinfo.obj
94
95 # ..\generic\$D\imaglist.obj \
96 # ..\generic\$D\treectrl.obj \
97 # ..\generic\$D\listctrl.obj \
98 # ..\generic\$D\notebook.obj \
99
100 GENLIBOBJS= \
101 caret.obj \
102 choicdgg.obj \
103 gridg.obj \
104 laywin.obj \
105 panelg.obj \
106 progdlgg.obj \
107 prop.obj \
108 propform.obj \
109 proplist.obj \
110 sashwin.obj \
111 scrolwin.obj \
112 splitter.obj \
113 statusbr.obj \
114 tabg.obj \
115 textdlgg.obj \
116 tipdlg.obj \
117 busyinfo.obj
118
119 # These are generic things that don't need to be compiled on PM,
120 # but sometimes it's useful to do so for testing purposes.
121 NONESSENTIALOBJS= \
122 ..\generic\$D\printps.obj \
123 ..\generic\$D\prntdlgg.obj \
124 ..\generic\$D\msgdlgg.obj \
125 ..\generic\$D\helpxlp.obj \
126 ..\generic\$D\colrdlgg.obj \
127 ..\generic\$D\fontdlgg.obj
128
129 COMMONOBJS = \
130 ..\common\$D\cmndata.obj \
131 ..\common\$D\config.obj \
132 ..\common\$D\dcbase.obj \
133 ..\common\$D\db.obj \
134 ..\common\$D\dbtable.obj \
135 ..\common\$D\docview.obj \
136 ..\common\$D\docmdi.obj \
137 ..\common\$D\dynarray.obj \
138 ..\common\$D\dynlib.obj \
139 ..\common\$D\event.obj \
140 ..\common\$D\file.obj \
141 ..\common\$D\filefn.obj \
142 ..\common\$D\fileconf.obj \
143 ..\common\$D\framecmn.obj \
144 ..\common\$D\ftp.obj \
145 ..\common\$D\gdicmn.obj \
146 ..\common\$D\image.obj \
147 ..\common\$D\imagbmp.obj \
148 ..\common\$D\imagjpeg.obj \
149 ..\common\$D\imagpng.obj \
150 ..\common\$D\imaggif.obj \
151 ..\common\$D\intl.obj \
152 ..\common\$D\ipcbase.obj \
153 ..\common\$D\helpbase.obj \
154 ..\common\$D\layout.obj \
155 ..\common\$D\log.obj \
156 ..\common\$D\memory.obj \
157 ..\common\$D\mimetype.obj \
158 ..\common\$D\module.obj \
159 ..\common\$D\odbc.obj \
160 ..\common\$D\object.obj \
161 ..\common\$D\prntbase.obj \
162 ..\common\$D\resource.obj \
163 ..\common\$D\tbarbase.obj \
164 ..\common\$D\tbarsmpl.obj \
165 ..\common\$D\textfile.obj \
166 ..\common\$D\timercmn.obj \
167 ..\common\$D\utilscmn.obj \
168 ..\common\$D\validate.obj \
169 ..\common\$D\valgen.obj \
170 ..\common\$D\valtext.obj \
171 ..\common\$D\date.obj \
172 ..\common\$D\hash.obj \
173 ..\common\$D\list.obj \
174 ..\common\$D\paper.obj \
175 ..\common\$D\string.obj \
176 ..\common\$D\socket.obj \
177 ..\common\$D\sckaddr.obj \
178 ..\common\$D\sckfile.obj \
179 ..\common\$D\sckipc.obj \
180 ..\common\$D\sckstrm.obj \
181 ..\common\$D\url.obj \
182 ..\common\$D\http.obj \
183 ..\common\$D\protocol.obj \
184 ..\common\$D\time.obj \
185 ..\common\$D\tokenzr.obj \
186 ..\common\$D\wxexpr.obj \
187 ..\common\$D\y_tab.obj \
188 ..\common\$D\extended.obj \
189 ..\common\$D\process.obj \
190 ..\common\$D\wfstream.obj \
191 ..\common\$D\mstream.obj \
192 ..\common\$D\zstream.obj \
193 ..\common\$D\stream.obj \
194 ..\common\$D\datstrm.obj \
195 ..\common\$D\objstrm.obj \
196 ..\common\$D\variant.obj \
197 ..\common\$D\dlgcmn.obj \
198 ..\common\$D\wincmn.obj \
199 ..\common\$D\txtstrm.obj \
200 ..\common\$D\wxchar.obj \
201 ..\common\$D\unzip.obj \
202 ..\common\$D\filesys.obj \
203 ..\common\$D\fs_inet.obj \
204 ..\common\$D\fs_zip.obj
205
206 COMLIBOBJS1 = \
207 cmndata.obj \
208 config.obj \
209 dcbase.obj \
210 db.obj \
211 dbtable.obj \
212 docview.obj \
213 docmdi.obj \
214 dynarray.obj \
215 dynlib.obj \
216 event.obj \
217 file.obj \
218 filefn.obj \
219 fileconf.obj \
220 framecmn.obj \
221 ftp.obj \
222 gdicmn.obj \
223 image.obj \
224 imagbmp.obj \
225 imagjpeg.obj \
226 imagpng.obj \
227 imaggif.obj \
228 intl.obj \
229 ipcbase.obj \
230 helpbase.obj \
231 layout.obj \
232 log.obj \
233 memory.obj \
234 mimetype.obj \
235 module.obj \
236 odbc.obj \
237 object.obj \
238 prntbase.obj \
239 resource.obj \
240 tbarbase.obj \
241 tbarsmpl.obj \
242 textfile.obj \
243 timercmn.obj \
244 utilscmn.obj \
245 validate.obj \
246 valgen.obj \
247 valtext.obj \
248 date.obj \
249 hash.obj \
250 list.obj \
251 paper.obj
252
253 COMLIBOBJS2 = \
254 string.obj \
255 socket.obj \
256 sckaddr.obj \
257 sckfile.obj \
258 sckipc.obj \
259 sckstrm.obj \
260 url.obj \
261 http.obj \
262 protocol.obj \
263 time.obj \
264 tokenzr.obj \
265 wxexpr.obj \
266 y_tab.obj \
267 extended.obj \
268 process.obj \
269 wfstream.obj \
270 mstream.obj \
271 zstream.obj \
272 stream.obj \
273 datstrm.obj \
274 objstrm.obj \
275 variant.obj \
276 dlgcmn.obj \
277 wincmn.obj \
278 txtstrm.obj \
279 wxchar.obj \
280 unzip.obj \
281 filesys.obj \
282 fs_inet.obj \
283 fs_zip.obj
284
285 OS2OBJS = \
286 ..\os2\$D\accel.obj \
287 ..\os2\$D\app.obj \
288 ..\os2\$D\bitmap.obj \
289 ..\os2\$D\bmpbuttn.obj \
290 ..\os2\$D\brush.obj \
291 ..\os2\$D\button.obj \
292 ..\os2\$D\checkbox.obj \
293 ..\os2\$D\checklst.obj \
294 ..\os2\$D\choice.obj \
295 ..\os2\$D\clipbrd.obj \
296 ..\os2\$D\colordlg.obj \
297 ..\os2\$D\colour.obj \
298 ..\os2\$D\combobox.obj \
299 ..\os2\$D\control.obj \
300 ..\os2\$D\cursor.obj \
301 ..\os2\$D\data.obj \
302 ..\os2\$D\dc.obj \
303 ..\os2\$D\dcclient.obj \
304 ..\os2\$D\dcmemory.obj \
305 ..\os2\$D\dcprint.obj \
306 ..\os2\$D\dcscreen.obj \
307 ..\os2\$D\dialog.obj \
308 ..\os2\$D\dirdlg.obj \
309 ..\os2\$D\dnd.obj \
310 ..\os2\$D\filedlg.obj \
311 ..\os2\$D\font.obj \
312 ..\os2\$D\fontdlg.obj \
313 ..\os2\$D\frame.obj \
314 ..\os2\$D\gauge.obj \
315 ..\os2\$D\gdiobj.obj \
316 ..\os2\$D\window.obj
317
318 OS2LIBOBJS = \
319 accel.obj \
320 app.obj \
321 bitmap.obj \
322 bmpbuttn.obj \
323 brush.obj \
324 button.obj \
325 checkbox.obj \
326 checklst.obj \
327 choice.obj \
328 clipbrd.obj \
329 colordlg.obj \
330 colour.obj \
331 combobox.obj \
332 control.obj \
333 cursor.obj \
334 data.obj \
335 dc.obj \
336 dcclient.obj \
337 dcmemory.obj \
338 dcprint.obj \
339 dcscreen.obj \
340 dialog.obj \
341 dirdlg.obj \
342 dnd.obj \
343 filedlg.obj \
344 font.obj \
345 fontdlg.obj \
346 frame.obj \
347 gauge.obj \
348 gdiobj.obj \
349 window.obj
350
351 HTMLOBJS = \
352 ..\html\$D\htmlcell.obj \
353 ..\html\$D\htmlfilter.obj \
354 ..\html\$D\htmlhelp.obj \
355 ..\html\$D\htmlhelp_io.obj \
356 ..\html\$D\htmlparser.obj \
357 ..\html\$D\htmltag.obj \
358 ..\html\$D\htmlwin.obj \
359 ..\html\$D\htmlwinparser.obj \
360 ..\html\$D\mod_fonts.obj \
361 ..\html\$D\mod_hline.obj \
362 ..\html\$D\mod_image.obj \
363 ..\html\$D\mod_layout.obj \
364 ..\html\$D\mod_links.obj \
365 ..\html\$D\mod_list.obj \
366 ..\html\$D\mod_pre.obj \
367 ..\html\$D\mod_tables.obj \
368 ..\html\$D\search.obj
369
370 # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
371 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(NONESSENTIALOBJS) $(OS2OBJS)
372
373 # Normal, static library
374 all: $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
375
376 dirs: $(OS2DIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(HTMLDIR)\$D
377
378
379 test: $(OS2DIR)\$D\wave.obj
380 test2: ..\common\Debug\config.obj
381
382 $D:
383 md $D
384
385 $(COMMDIR)\$D:
386 md $(COMMDIR)\$D
387
388 $(OS2DIR)\$D:
389 md $(OS2DIR)\$D
390
391 $(GENDIR)\$D:
392 md $(GENDIR)\$D
393
394 $(HTMLDIR)\$D:
395 md $(HTMLDIR)\$D
396
397 $(COMLIBOBJS1):
398 copy ..\common\$D\cmndata.obj
399 copy ..\common\$D\config.obj
400 copy ..\common\$D\dcbase.obj
401 copy ..\common\$D\db.obj
402 copy ..\common\$D\dbtable.obj
403 copy ..\common\$D\docview.obj
404 copy ..\common\$D\docmdi.obj
405 copy ..\common\$D\dynarray.obj
406 copy ..\common\$D\dynlib.obj
407 copy ..\common\$D\event.obj
408 copy ..\common\$D\file.obj
409 copy ..\common\$D\filefn.obj
410 copy ..\common\$D\fileconf.obj
411 copy ..\common\$D\framecmn.obj
412 copy ..\common\$D\ftp.obj
413 copy ..\common\$D\gdicmn.obj
414 copy ..\common\$D\image.obj
415 copy ..\common\$D\imagbmp.obj
416 copy ..\common\$D\imagjpeg.obj
417 copy ..\common\$D\imagpng.obj
418 copy ..\common\$D\imaggif.obj
419 copy ..\common\$D\intl.obj
420 copy ..\common\$D\ipcbase.obj
421 copy ..\common\$D\helpbase.obj
422 copy ..\common\$D\layout.obj
423 copy ..\common\$D\log.obj
424 copy ..\common\$D\memory.obj
425 copy ..\common\$D\mimetype.obj
426 copy ..\common\$D\module.obj
427 copy ..\common\$D\odbc.obj
428 copy ..\common\$D\object.obj
429 copy ..\common\$D\prntbase.obj
430 copy ..\common\$D\resource.obj
431 copy ..\common\$D\tbarbase.obj
432 copy ..\common\$D\tbarsmpl.obj
433 copy ..\common\$D\textfile.obj
434 copy ..\common\$D\timercmn.obj
435 copy ..\common\$D\utilscmn.obj
436 copy ..\common\$D\validate.obj
437 copy ..\common\$D\valgen.obj
438 copy ..\common\$D\valtext.obj
439 copy ..\common\$D\date.obj
440 copy ..\common\$D\hash.obj
441 copy ..\common\$D\list.obj
442 copy ..\common\$D\paper.obj
443
444 $(COMLIBOBJS2):
445 copy ..\common\$D\string.obj
446 copy ..\common\$D\socket.obj
447 copy ..\common\$D\sckaddr.obj
448 copy ..\common\$D\sckfile.obj
449 copy ..\common\$D\sckipc.obj
450 copy ..\common\$D\sckstrm.obj
451 copy ..\common\$D\url.obj
452 copy ..\common\$D\http.obj
453 copy ..\common\$D\protocol.obj
454 copy ..\common\$D\time.obj
455 copy ..\common\$D\tokenzr.obj
456 copy ..\common\$D\wxexpr.obj
457 copy ..\common\$D\y_tab.obj
458 copy ..\common\$D\extended.obj
459 copy ..\common\$D\process.obj
460 copy ..\common\$D\wfstream.obj
461 copy ..\common\$D\mstream.obj
462 copy ..\common\$D\zstream.obj
463 copy ..\common\$D\stream.obj
464 copy ..\common\$D\datstrm.obj
465 copy ..\common\$D\objstrm.obj
466 copy ..\common\$D\variant.obj
467 copy ..\common\$D\dlgcmn.obj
468 copy ..\common\$D\wincmn.obj
469 copy ..\common\$D\txtstrm.obj
470 copy ..\common\$D\wxchar.obj
471 copy ..\common\$D\unzip.obj
472 copy ..\common\$D\filesys.obj
473 copy ..\common\$D\fs_inet.obj
474 copy ..\common\$D\fs_zip.obj
475
476 $(GENLIBOBJS):
477 copy ..\generic\$D\caret.obj
478 copy ..\generic\$D\choicdgg.obj
479 copy ..\generic\$D\gridg.obj
480 copy ..\generic\$D\laywin.obj
481 copy ..\generic\$D\panelg.obj
482 copy ..\generic\$D\progdlgg.obj
483 copy ..\generic\$D\prop.obj
484 copy ..\generic\$D\propform.obj
485 copy ..\generic\$D\proplist.obj
486 copy ..\generic\$D\sashwin.obj
487 copy ..\generic\$D\scrolwin.obj
488 copy ..\generic\$D\splitter.obj
489 copy ..\generic\$D\statusbr.obj
490 copy ..\generic\$D\tabg.obj
491 copy ..\generic\$D\textdlgg.obj
492 copy ..\generic\$D\tipdlg.obj
493 copy ..\generic\$D\busyinfo.obj
494
495 $(OS2LIBOBJS):
496 copy ..\os2\$D\accel.obj
497 copy ..\os2\$D\app.obj
498 copy ..\os2\$D\bitmap.obj
499 copy ..\os2\$D\bmpbuttn.obj
500 copy ..\os2\$D\brush.obj
501 copy ..\os2\$D\button.obj
502 copy ..\os2\$D\checkbox.obj
503 copy ..\os2\$D\checklst.obj
504 copy ..\os2\$D\choice.obj
505 copy ..\os2\$D\clipbrd.obj
506 copy ..\os2\$D\colordlg.obj
507 copy ..\os2\$D\colour.obj
508 copy ..\os2\$D\combobox.obj
509 copy ..\os2\$D\control.obj
510 copy ..\os2\$D\cursor.obj
511 copy ..\os2\$D\data.obj
512 copy ..\os2\$D\dc.obj
513 copy ..\os2\$D\dcclient.obj
514 copy ..\os2\$D\dcmemory.obj
515 copy ..\os2\$D\dcprint.obj
516 copy ..\os2\$D\dcscreen.obj
517 copy ..\os2\$D\dialog.obj
518 copy ..\os2\$D\dirdlg.obj
519 copy ..\os2\$D\dnd.obj
520 copy ..\os2\$D\filedlg.obj
521 copy ..\os2\$D\font.obj
522 copy ..\os2\$D\fontdlg.obj
523 copy ..\os2\$D\frame.obj
524 copy ..\os2\$D\gauge.obj
525 copy ..\os2\$D\gdiobj.obj
526 copy ..\os2\$D\window.obj
527
528 # wxWindows library as DLL
529 dll:
530 nmake -f makefile.va all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
531
532 cleandll:
533 nmake -f makefile.va clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME)
534
535 # wxWindows + app as DLL. Only affects main.cpp.
536 dllapp:
537 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
538
539 # wxWindows + app as DLL, for Netscape plugin - remove DllMain.
540 dllnp:
541 nmake -f makefile.va all FINAL=$(FINAL) DLL=1
542
543 # Use this to make dummy.obj and generate a PCH.
544 # You might use the dll target, then the pch target, in order to
545 # generate a DLL, then a PCH/dummy.obj for compiling your applications with.
546 #
547 # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH
548 # are associated with wx.lib. When using a DLL version of wxWindows, however,
549 # the DLL is compiled without a PCH, so you only need it for compiling the app.
550 # In fact headers are compiled differently depending on whether a DLL is being made
551 # or an app is calling the DLL exported functionality (WXDLLEXPORT is different
552 # in each case) so you couldn't use the same PCH.
553 pch:
554 nmake -f makefile.va pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME)
555
556 pch1: dirs $(DUMMYOBJ)
557 echo $(DUMMYOBJ)
558
559 !if "$(WXMAKINGDLL)" != "1"
560
561 ### Static library
562
563 $(WXDIR)\lib\wxcom1.lib: $(COMLIBOBJS1)
564 touch $(WXDIR)\lib\wxcom1.lib
565 del $(WXDIR)\lib\wxcom1.lib
566 ilib $(LIBFLAGS) $@ @<<
567 $**;
568 <<
569
570 $(WXDIR)\lib\wxcom2.lib: $(COMLIBOBJS2)
571 touch $(WXDIR)\lib\wxcom2.lib
572 del $(WXDIR)\lib\wxcom2.lib
573 ilib $(LIBFLAGS) $@ @<<
574 $**;
575 <<
576
577 $(WXDIR)\lib\wxgen.lib: $(GENLIBOBJS)
578 touch $(WXDIR)\lib\wxgen.lib
579 del $(WXDIR)\lib\wxgen.lib
580 ilib $(LIBFLAGS) $@ @<<
581 $**;
582 <<
583
584 $(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS)
585 touch $(WXDIR)\lib\wxnones.lib
586 del $(WXDIR)\lib\wxnones.lib
587 ilib $(LIBFLAGS) $@ @<<
588 $**;
589 <<
590
591 $(WXDIR)\lib\wxos2.lib: $(OS2LIBOBJS)
592 touch $(WXDIR)\lib\wxos2.lib
593 del $(WXDIR)\lib\wxos2.lib
594 ilib $(LIBFLAGS) $@ @<<
595 $**;
596 <<
597 del *.obj
598
599 $(WXDIR)\lib\wx.lib: \
600 $D\dummy.obj \
601 $(COMTEMPTGT1) \
602 $(COMTEMPTGT2) \
603 $(GENTEMPTGT) \
604 $(NONESTEMPTGT) \
605 $(OS2TEMPTGT) \
606 $(PERIPH_LIBS)
607 touch $(LIBTARGET)
608 del $(LIBTARGET)
609 ilib $(LIBFLAGS) $@ @<<
610 $**;
611 <<
612 del $(COMTEMPTGT1)
613 del $(COMTEMPTGT2)
614 del $(GENTEMPTGT)
615 del $(NONESTEMPTGT)
616 del $(OS2TEMPTGT)
617
618 !else
619
620 # Update the import library
621 $(WXDIR)\lib\wx200.lib: $(OBJECTS)
622 implib $(WXDIR)\lib\wx200.lib $(WXDIR)\lib\wx200.def
623
624 # Update the dynamic link library
625 $(WXDIR)\lib\wx200.dll: $(OBJECTS) $(WXDIR)\lib\wx200.lib
626 icc @<<
627 /B" $(LINKFLAGS)" /Fe$@
628 $(LIBS)
629 $(OBJECTS)
630 $(WXDIR)\lib\wx200.def
631 <<
632
633 !endif
634
635 $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
636 icc $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /Tp dummy.cpp
637
638 $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\os2\setup.h
639 icc @<<
640 $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
641 <<
642
643 # If taking wxWindows from CVS, setup.h doesn't exist yet.
644 $(WXDIR)\include\wx\os2\setup.h: $(WXDIR)\include\wx\os2\setup0.h
645 copy "$(WXDIR)"\include\wx\os2\setup.h "$(WXDIR)"\include\wx\os2\setup.bak
646 copy "$(WXDIR)"\include\wx\os2\setup0.h "$(WXDIR)"\include\wx\os2\setup.h
647
648 ..\common\$D\extended.obj: ..\common\extended.c
649 icc @<<
650 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\extended.c
651 <<
652
653 ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c
654 icc @<<
655 $(CPPFLAGS2) /DUSE_DEFINE /DYY_USE_PROTOS /Fo$@ ..\common\y_tab.c
656 <<
657
658 ..\common\y_tab.c: ..\common\dosyacc.c
659 copy "..\common"\dosyacc.c "..\common"\y_tab.c
660
661 ..\common\lex_yy.c: ..\common\doslex.c
662 copy "..\common"\doslex.c "..\common"\lex_yy.c
663
664 $(OBJECTS): $(WXDIR)/include/wx/setup.h
665
666 ..\common\$D\unzip.obj: ..\common\unzip.c
667 icc @<<
668 $(CPPFLAGS2) /Fo$@ $(COMMDIR)\unzip.c
669 <<
670
671 clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm
672 -erase $(LIBTARGET)
673 -erase ..\..\lib\wx200.dll
674 -erase ..\..\lib\wx200.lib
675 -erase $(GENDIR)\$D\*.obj
676 -erase $(COMMDIR)\$D\*.obj
677 -erase $(COMMDIR)\\y_tab.c
678 -erase $(COMMDIR)\lex_yy.c
679 -erase $(OS2DIR)\$D\*.obj
680 -rmdir $(D)
681 -rmdir ole\$(D)
682 -rmdir ..\generic\$(D)
683 -rmdir ..\common\$(D)
684
685 cleanall: clean
686