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