]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # |
2 | # File: makefile.bcc | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds wxWindows library wx.lib for Windows 3.1 | |
11 | # and Borland C++ 3.1 | |
12 | ||
13 | !if "$(BCCDIR)" == "" | |
14 | !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4 | |
15 | !endif | |
16 | ||
17 | !if "$(WXWIN)" == "" | |
18 | !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx | |
19 | !endif | |
20 | ||
21 | !if "$(CFG)" == "" | |
22 | #!error You must start compiling from wx\src, not wx\src\msw. | |
23 | !endif | |
24 | ||
25 | !ifndef DEBUG | |
26 | DEBUG=0 | |
27 | !endif | |
28 | ||
29 | WXDIR = $(WXWIN) | |
30 | ||
31 | !include $(WXDIR)\src\makebcc.env | |
32 | ||
33 | THISDIR = $(WXDIR)\src\msw | |
2bda0e17 KB |
34 | |
35 | # Please set these according to the settings in wx_setup.h, so we can include | |
36 | # the appropriate libraries in wx.lib | |
37 | USE_CTL3D=1 | |
2bda0e17 | 38 | USE_XPM_IN_MSW=0 |
2bda0e17 KB |
39 | |
40 | PERIPH_LIBS= | |
41 | PERIPH_TARGET= | |
42 | PERIPH_CLEAN_TARGET= | |
43 | ||
44 | !if "$(USE_CTL3D)" == "1" | |
62448488 | 45 | PERIPH_LIBS=$(BCCDIR)\lib\ctl3dv2.lib $(PERIPH_LIBS) |
2bda0e17 KB |
46 | !endif |
47 | ||
48 | !if "$(USE_XPM_IN_MSW)" == "1" | |
62448488 | 49 | PERIPH_LIBS=$(WXDIR)\xpm.lib $(PERIPH_LIBS) |
2bda0e17 KB |
50 | PERIPH_TARGET=xpm $(PERIPH_TARGET) |
51 | PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET) | |
52 | !endif | |
53 | ||
62448488 JS |
54 | # TODO: add these libraries |
55 | # PERIPH_LIBS=$(WXDIR)\lib\zlib.lib $(WXDIR)\lib\winpng.lib $(PERIPH_LIBS) | |
c7f49969 JS |
56 | PERIPH_TARGET=zlib png $(PERIPH_TARGET) |
57 | PERIPH_CLEAN_TARGET=clean_zlib clean_png $(PERIPH_CLEAN_TARGET) | |
2bda0e17 KB |
58 | |
59 | CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) | |
60 | ||
62448488 | 61 | LIBTARGET= $(WXLIBDIR)\wx.lib |
2bda0e17 KB |
62 | DUMMY=dummy |
63 | ||
62448488 JS |
64 | GENDIR=..\generic |
65 | COMMDIR=..\common | |
66 | OLEDIR=.\ole | |
67 | MSWDIR=. | |
68 | ||
69 | DOCDIR = $(WXDIR)\docs | |
70 | ||
71 | GENERICOBJS= \ | |
72 | $(MSWDIR)\choicdgg.obj \ | |
73 | $(MSWDIR)\colrdlgg.obj \ | |
74 | $(MSWDIR)\fontdlgg.obj \ | |
75 | $(MSWDIR)\gridg.obj \ | |
76 | $(MSWDIR)\imaglist.obj \ | |
77 | $(MSWDIR)\helpxlp.obj \ | |
78 | $(MSWDIR)\laywin.obj \ | |
79 | $(MSWDIR)\listctrl.obj \ | |
62448488 JS |
80 | $(MSWDIR)\notebook.obj \ |
81 | $(MSWDIR)\panelg.obj \ | |
e3a43801 JS |
82 | $(MSWDIR)\prop.obj \ |
83 | $(MSWDIR)\propform.obj \ | |
84 | $(MSWDIR)\proplist.obj \ | |
62448488 JS |
85 | $(MSWDIR)\sashwin.obj \ |
86 | $(MSWDIR)\scrolwin.obj \ | |
87 | $(MSWDIR)\splitter.obj \ | |
88 | $(MSWDIR)\statusbr.obj \ | |
89 | $(MSWDIR)\tabg.obj \ | |
90 | $(MSWDIR)\textdlgg.obj \ | |
91 | $(MSWDIR)\treectrl.obj | |
92 | ||
0a240683 | 93 | # $(MSWDIR)\msgdlgg.obj \ |
62448488 JS |
94 | # $(MSWDIR)\printps.obj \ |
95 | # $(MSWDIR)\prntdlgg.obj \ | |
96 | ||
97 | COMMONOBJS = \ | |
98 | $(MSWDIR)\config.obj \ | |
99 | $(MSWDIR)\cmndata.obj \ | |
100 | $(MSWDIR)\docview.obj \ | |
101 | $(MSWDIR)\docmdi.obj \ | |
102 | $(MSWDIR)\dynarray.obj \ | |
103 | $(MSWDIR)\event.obj \ | |
104 | $(MSWDIR)\file.obj \ | |
105 | $(MSWDIR)\fileconf.obj \ | |
106 | $(MSWDIR)\filefn.obj \ | |
107 | $(MSWDIR)\framecmn.obj \ | |
108 | $(MSWDIR)\gdicmn.obj \ | |
109 | $(MSWDIR)\helpbase.obj \ | |
110 | $(MSWDIR)\image.obj \ | |
111 | $(MSWDIR)\intl.obj \ | |
112 | $(MSWDIR)\ipcbase.obj \ | |
113 | $(MSWDIR)\log.obj \ | |
114 | $(MSWDIR)\layout.obj \ | |
115 | $(MSWDIR)\memory.obj \ | |
116 | $(MSWDIR)\module.obj \ | |
117 | $(MSWDIR)\object.obj \ | |
62448488 JS |
118 | $(MSWDIR)\prntbase.obj \ |
119 | $(MSWDIR)\resource.obj \ | |
3b1de9c2 | 120 | $(MSWDIR)\resourc2.obj \ |
62448488 JS |
121 | $(MSWDIR)\tbarbase.obj \ |
122 | $(MSWDIR)\tbarsmpl.obj \ | |
123 | $(MSWDIR)\textfile.obj \ | |
124 | $(MSWDIR)\timercmn.obj \ | |
125 | $(MSWDIR)\utilscmn.obj \ | |
126 | $(MSWDIR)\validate.obj \ | |
89c684ef | 127 | $(MSWDIR)\valgen.obj \ |
62448488 JS |
128 | $(MSWDIR)\valtext.obj \ |
129 | $(MSWDIR)\variant.obj \ | |
130 | $(MSWDIR)\date.obj \ | |
131 | $(MSWDIR)\hash.obj \ | |
132 | $(MSWDIR)\list.obj \ | |
7bcb11d3 | 133 | $(MSWDIR)\paper.obj \ |
62448488 JS |
134 | $(MSWDIR)\string.obj \ |
135 | $(MSWDIR)\time.obj \ | |
136 | $(MSWDIR)\wxexpr.obj \ | |
137 | $(MSWDIR)\y_tab.obj \ | |
138 | $(MSWDIR)\stream.obj \ | |
139 | $(MSWDIR)\wfstream.obj \ | |
140 | $(MSWDIR)\mstream.obj \ | |
141 | $(MSWDIR)\zstream.obj \ | |
142 | $(MSWDIR)\datstrm.obj \ | |
143 | $(MSWDIR)\sckstrm.obj \ | |
144 | $(MSWDIR)\extended.obj \ | |
145 | $(MSWDIR)\wincmn.obj \ | |
146 | $(MSWDIR)\objstrm.obj \ | |
147 | $(MSWDIR)\dynlib.obj \ | |
148 | $(MSWDIR)\tokenzr.obj | |
149 | ||
2432b92d | 150 | # Don't compile for WIN16 |
62448488 JS |
151 | # $(MSWDIR)\socket.obj \ |
152 | # $(MSWDIR)\sckaddr.obj \ | |
153 | # $(MSWDIR)\protocol.obj \ | |
154 | # $(MSWDIR)\url.obj \ | |
155 | # $(MSWDIR)\http.obj \ | |
156 | # $(MSWDIR)\ftp.obj \ | |
157 | # $(MSWDIR)\sckfile.obj \ | |
158 | # $(MSWDIR)\sckipc.obj \ | |
2432b92d JS |
159 | |
160 | # Needs extra files (sql*.h) so not compiled by default. | |
62448488 JS |
161 | # $(MSWDIR)\odbc.obj \ |
162 | ||
2432b92d JS |
163 | # Uses WIN32 registry functions |
164 | # $(MSWDIR)\mimetype.obj \ | |
165 | ||
62448488 JS |
166 | MSWOBJS = \ |
167 | $(MSWDIR)\accel.obj \ | |
168 | $(MSWDIR)\app.obj \ | |
169 | $(MSWDIR)\bitmap.obj \ | |
170 | $(MSWDIR)\bmpbuttn.obj \ | |
171 | $(MSWDIR)\brush.obj \ | |
172 | $(MSWDIR)\button.obj \ | |
173 | $(MSWDIR)\checkbox.obj \ | |
174 | $(MSWDIR)\checklst.obj \ | |
175 | $(MSWDIR)\choice.obj \ | |
176 | $(MSWDIR)\clipbrd.obj \ | |
177 | $(MSWDIR)\colordlg.obj \ | |
178 | $(MSWDIR)\colour.obj \ | |
179 | $(MSWDIR)\combobox.obj \ | |
180 | $(MSWDIR)\control.obj \ | |
181 | $(MSWDIR)\curico.obj \ | |
182 | $(MSWDIR)\cursor.obj \ | |
183 | $(MSWDIR)\data.obj \ | |
184 | $(MSWDIR)\dc.obj \ | |
185 | $(MSWDIR)\dcmemory.obj \ | |
186 | $(MSWDIR)\dcclient.obj \ | |
187 | $(MSWDIR)\dcprint.obj \ | |
188 | $(MSWDIR)\dcscreen.obj \ | |
189 | $(MSWDIR)\dde.obj \ | |
190 | $(MSWDIR)\dialog.obj \ | |
191 | $(MSWDIR)\dib.obj \ | |
192 | $(MSWDIR)\dibutils.obj \ | |
193 | $(MSWDIR)\dirdlg.obj \ | |
194 | $(MSWDIR)\filedlg.obj \ | |
195 | $(MSWDIR)\font.obj \ | |
196 | $(MSWDIR)\fontdlg.obj \ | |
197 | $(MSWDIR)\frame.obj \ | |
198 | $(MSWDIR)\gaugemsw.obj \ | |
199 | $(MSWDIR)\gdiobj.obj \ | |
200 | $(MSWDIR)\helpwin.obj \ | |
201 | $(MSWDIR)\icon.obj \ | |
62448488 JS |
202 | $(MSWDIR)\iniconf.obj \ |
203 | $(MSWDIR)\joystick.obj \ | |
204 | $(MSWDIR)\listbox.obj \ | |
205 | $(MSWDIR)\main.obj \ | |
206 | $(MSWDIR)\mdi.obj \ | |
207 | $(MSWDIR)\menu.obj \ | |
208 | $(MSWDIR)\menuitem.obj \ | |
209 | $(MSWDIR)\metafile.obj \ | |
210 | $(MSWDIR)\minifram.obj \ | |
211 | $(MSWDIR)\msgdlg.obj \ | |
212 | $(MSWDIR)\nativdlg.obj \ | |
213 | $(MSWDIR)\ownerdrw.obj \ | |
214 | $(MSWDIR)\palette.obj \ | |
215 | $(MSWDIR)\pen.obj \ | |
216 | $(MSWDIR)\penwin.obj \ | |
217 | $(MSWDIR)\pnghand.obj \ | |
218 | $(MSWDIR)\printdlg.obj \ | |
219 | $(MSWDIR)\printwin.obj \ | |
220 | $(MSWDIR)\radiobox.obj \ | |
221 | $(MSWDIR)\radiobut.obj \ | |
222 | $(MSWDIR)\region.obj \ | |
223 | $(MSWDIR)\scrolbar.obj \ | |
224 | $(MSWDIR)\settings.obj \ | |
225 | $(MSWDIR)\slidrmsw.obj \ | |
226 | $(MSWDIR)\spinbutt.obj \ | |
227 | $(MSWDIR)\statbmp.obj \ | |
228 | $(MSWDIR)\statbox.obj \ | |
229 | $(MSWDIR)\stattext.obj \ | |
230 | $(MSWDIR)\tbarmsw.obj \ | |
231 | $(MSWDIR)\textctrl.obj \ | |
232 | $(MSWDIR)\timer.obj \ | |
233 | $(MSWDIR)\utils.obj \ | |
234 | $(MSWDIR)\utilsexc.obj \ | |
235 | $(MSWDIR)\wave.obj \ | |
236 | $(MSWDIR)\window.obj \ | |
2fd284a4 | 237 | $(MSWDIR)\xpmhand.obj |
62448488 JS |
238 | |
239 | # Unfortunately this causes a crash when the oleauto sample starts. | |
240 | # $(MSWDIR)\automtn.obj | |
241 | ||
242 | # Not used for 16-bit compilation | |
acbd13a3 | 243 | # $(MSWDIR)\tooltip.obj \ |
62448488 JS |
244 | # $(MSWDIR)\gauge95.obj \ |
245 | # $(MSWDIR)\treectrl.obj \ | |
246 | # $(MSWDIR)\oleutils.obj \ | |
247 | # $(MSWDIR)\dataobj.obj \ | |
248 | # $(MSWDIR)\uuid.obj | |
249 | # $(MSWDIR)\droptgt.obj \ | |
250 | # $(MSWDIR)\dropsrc.obj \ | |
3b1de9c2 | 251 | # $(MSWDIR)\imaglist.obj \ |
62448488 JS |
252 | # $(MSWDIR)\notebook.obj \ |
253 | # $(MSWDIR)\listctrl.obj \ | |
254 | # $(MSWDIR)\tabctrl.obj \ | |
255 | # $(MSWDIR)\taskbar.obj \ | |
256 | # $(MSWDIR)\tbar95.obj \ | |
257 | # $(MSWDIR)\thread.obj \ | |
258 | # $(MSWDIR)\slider95.obj \ | |
259 | # $(MSWDIR)\statbr95.obj \ | |
260 | # $(MSWDIR)\registry.obj \ | |
261 | # $(MSWDIR)\regconf.obj \ | |
262 | ||
263 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) | |
264 | ||
265 | default: wx | |
266 | ||
267 | wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET) | |
268 | ||
269 | $(LIBTARGET): $(DUMMY).obj $(OBJECTS) $(PERIPH_LIBS) | |
2bda0e17 | 270 | erase $(LIBTARGET) |
62448488 JS |
271 | tlib $(LIBTARGET) /P1024 @&&! |
272 | +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +) | |
2bda0e17 KB |
273 | ! |
274 | ||
62448488 JS |
275 | dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h |
276 | dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h | |
2bda0e17 | 277 | |
62448488 | 278 | $(MSWDIR)\y_tab.obj: $(COMMDIR)\y_tab.c $(COMMDIR)\lex_yy.c |
2bda0e17 | 279 | |
62448488 JS |
280 | # cl @<< |
281 | #$(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ | |
282 | #<< | |
2bda0e17 | 283 | |
62448488 JS |
284 | $(COMMDIR)\y_tab.c: $(COMMDIR)\dosyacc.c |
285 | copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c | |
2bda0e17 | 286 | |
62448488 JS |
287 | $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c |
288 | copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c | |
2bda0e17 | 289 | |
62448488 | 290 | #$(OBJECTS): $(WXDIR)\include\wx\setup.h |
2bda0e17 | 291 | |
62448488 | 292 | $(MSWDIR)\accel.obj: $(MSWDIR)\accel.$(SRCSUFF) |
2bda0e17 | 293 | |
62448488 | 294 | $(MSWDIR)\app.obj: $(MSWDIR)\app.$(SRCSUFF) |
2bda0e17 | 295 | |
62448488 | 296 | $(MSWDIR)\bitmap.obj: $(MSWDIR)\bitmap.$(SRCSUFF) |
2bda0e17 | 297 | |
62448488 | 298 | $(MSWDIR)\bmpbuttn.obj: $(MSWDIR)\bmpbuttn.$(SRCSUFF) |
2bda0e17 | 299 | |
62448488 JS |
300 | $(MSWDIR)\brush.obj: $(MSWDIR)\brush.$(SRCSUFF) |
301 | ||
302 | $(MSWDIR)\button.obj: $(MSWDIR)\button.$(SRCSUFF) | |
303 | ||
304 | $(MSWDIR)\choice.obj: $(MSWDIR)\choice.$(SRCSUFF) | |
305 | ||
306 | $(MSWDIR)\checkbox.obj: $(MSWDIR)\checkbox.$(SRCSUFF) | |
307 | ||
308 | $(MSWDIR)\checklst.obj: $(MSWDIR)\checklst.$(SRCSUFF) | |
309 | ||
310 | $(MSWDIR)\clipbrd.obj: $(MSWDIR)\clipbrd.$(SRCSUFF) | |
311 | ||
312 | $(MSWDIR)\colordlg.obj: $(MSWDIR)\colordlg.$(SRCSUFF) | |
313 | ||
314 | $(MSWDIR)\colour.obj: $(MSWDIR)\colour.$(SRCSUFF) | |
315 | ||
316 | $(MSWDIR)\combobox.obj: $(MSWDIR)\combobox.$(SRCSUFF) | |
317 | ||
318 | $(MSWDIR)\control.obj: $(MSWDIR)\control.$(SRCSUFF) | |
319 | ||
320 | $(MSWDIR)\curico.obj: $(MSWDIR)\curico.$(SRCSUFF) | |
321 | ||
322 | $(MSWDIR)\cursor.obj: $(MSWDIR)\cursor.$(SRCSUFF) | |
323 | ||
324 | $(MSWDIR)\data.obj: $(MSWDIR)\data.$(SRCSUFF) | |
325 | ||
326 | $(MSWDIR)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF) | |
327 | ||
328 | $(MSWDIR)\dc.obj: $(MSWDIR)\dc.$(SRCSUFF) | |
329 | ||
330 | $(MSWDIR)\dcmemory.obj: $(MSWDIR)\dcmemory.$(SRCSUFF) | |
331 | ||
332 | $(MSWDIR)\dcclient.obj: $(MSWDIR)\dcclient.$(SRCSUFF) | |
333 | ||
334 | $(MSWDIR)\dcprint.obj: $(MSWDIR)\dcprint.$(SRCSUFF) | |
335 | ||
336 | $(MSWDIR)\dcscreen.obj: $(MSWDIR)\dcscreen.$(SRCSUFF) | |
337 | ||
338 | $(MSWDIR)\dialog.obj: $(MSWDIR)\dialog.$(SRCSUFF) | |
339 | ||
340 | $(MSWDIR)\dib.obj: $(MSWDIR)\dib.$(SRCSUFF) | |
341 | ||
342 | $(MSWDIR)\dirdlg.obj: $(MSWDIR)\dirdlg.$(SRCSUFF) | |
343 | ||
344 | $(MSWDIR)\filedlg.obj: $(MSWDIR)\filedlg.$(SRCSUFF) | |
345 | ||
346 | $(MSWDIR)\font.obj: $(MSWDIR)\font.$(SRCSUFF) | |
347 | ||
348 | $(MSWDIR)\fontdlg.obj: $(MSWDIR)\fontdlg.$(SRCSUFF) | |
349 | ||
350 | $(MSWDIR)\frame.obj: $(MSWDIR)\frame.$(SRCSUFF) | |
351 | ||
352 | $(MSWDIR)\gaugemsw.obj: $(MSWDIR)\gaugemsw.$(SRCSUFF) | |
353 | ||
354 | $(MSWDIR)\gauge95.obj: $(MSWDIR)\gauge95.$(SRCSUFF) | |
355 | ||
356 | $(MSWDIR)\gdiobj.obj: $(MSWDIR)\gdiobj.$(SRCSUFF) | |
357 | ||
358 | $(MSWDIR)\icon.obj: $(MSWDIR)\icon.$(SRCSUFF) | |
359 | ||
3b1de9c2 | 360 | # $(MSWDIR)\imaglist.obj: $(MSWDIR)\imaglist.$(SRCSUFF) |
62448488 JS |
361 | |
362 | $(MSWDIR)\joystick.obj: $(MSWDIR)\joystick.$(SRCSUFF) | |
363 | ||
364 | $(MSWDIR)\listbox.obj: $(MSWDIR)\listbox.$(SRCSUFF) | |
365 | ||
3b1de9c2 | 366 | # $(MSWDIR)\listctrl.obj: $(MSWDIR)\listctrl.$(SRCSUFF) |
62448488 JS |
367 | |
368 | $(MSWDIR)\main.obj: $(MSWDIR)\main.$(SRCSUFF) | |
369 | ||
370 | $(MSWDIR)\mdi.obj: $(MSWDIR)\mdi.$(SRCSUFF) | |
371 | ||
372 | $(MSWDIR)\menu.obj: $(MSWDIR)\menu.$(SRCSUFF) | |
373 | ||
374 | $(MSWDIR)\menuitem.obj: $(MSWDIR)\menu.$(SRCSUFF) | |
375 | ||
376 | $(MSWDIR)\metafile.obj: $(MSWDIR)\metafile.$(SRCSUFF) | |
377 | ||
378 | $(MSWDIR)\minifram.obj: $(MSWDIR)\minifram.$(SRCSUFF) | |
379 | ||
380 | $(MSWDIR)\msgdlg.obj: $(MSWDIR)\msgdlg.$(SRCSUFF) | |
381 | ||
382 | $(MSWDIR)\nativdlg.obj: $(MSWDIR)\nativdlg.$(SRCSUFF) | |
383 | ||
384 | # $(MSWDIR)\notebook.obj: $(MSWDIR)\notebook.$(SRCSUFF) | |
385 | ||
386 | $(MSWDIR)\ownerdrw.obj: $(MSWDIR)\ownerdrw.$(SRCSUFF) | |
387 | ||
388 | $(MSWDIR)\palette.obj: $(MSWDIR)\palette.$(SRCSUFF) | |
389 | ||
390 | $(MSWDIR)\pen.obj: $(MSWDIR)\pen.$(SRCSUFF) | |
391 | ||
392 | $(MSWDIR)\penwin.obj: $(MSWDIR)\penwin.$(SRCSUFF) | |
393 | ||
394 | $(MSWDIR)\printdlg.obj: $(MSWDIR)\printdlg.$(SRCSUFF) | |
395 | ||
396 | $(MSWDIR)\printwin.obj: $(MSWDIR)\printwin.$(SRCSUFF) | |
397 | ||
398 | $(MSWDIR)\radiobox.obj: $(MSWDIR)\radiobox.$(SRCSUFF) | |
399 | ||
400 | $(MSWDIR)\radiobut.obj: $(MSWDIR)\radiobut.$(SRCSUFF) | |
401 | ||
402 | $(MSWDIR)\region.obj: $(MSWDIR)\region.$(SRCSUFF) | |
403 | ||
404 | $(MSWDIR)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF) | |
405 | ||
406 | $(MSWDIR)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF) | |
407 | ||
408 | $(MSWDIR)\scrolbar.obj: $(MSWDIR)\scrolbar.$(SRCSUFF) | |
409 | ||
410 | $(MSWDIR)\settings.obj: $(MSWDIR)\settings.$(SRCSUFF) | |
411 | ||
412 | $(MSWDIR)\slidrmsw.obj: $(MSWDIR)\slidrmsw.$(SRCSUFF) | |
413 | ||
414 | $(MSWDIR)\slider95.obj: $(MSWDIR)\slider95.$(SRCSUFF) | |
415 | ||
416 | $(MSWDIR)\spinbutt.obj: $(MSWDIR)\spinbutt.$(SRCSUFF) | |
417 | ||
418 | $(MSWDIR)\statbmp.obj: $(MSWDIR)\statbmp.$(SRCSUFF) | |
419 | ||
420 | $(MSWDIR)\statbox.obj: $(MSWDIR)\statbox.$(SRCSUFF) | |
421 | ||
422 | $(MSWDIR)\statbr95.obj: $(MSWDIR)\statbr95.$(SRCSUFF) | |
423 | ||
424 | $(MSWDIR)\stattext.obj: $(MSWDIR)\stattext.$(SRCSUFF) | |
425 | ||
426 | $(MSWDIR)\tabctrl.obj: $(MSWDIR)\tabctrl.$(SRCSUFF) | |
427 | ||
428 | $(MSWDIR)\taskbar.obj: $(MSWDIR)\taskbar.$(SRCSUFF) | |
429 | ||
430 | $(MSWDIR)\tbar95.obj: $(MSWDIR)\tbar95.$(SRCSUFF) | |
431 | ||
432 | $(MSWDIR)\tbarmsw.obj: $(MSWDIR)\tbarmsw.$(SRCSUFF) | |
433 | ||
434 | $(MSWDIR)\textctrl.obj: $(MSWDIR)\textctrl.$(SRCSUFF) | |
435 | ||
436 | $(MSWDIR)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF) | |
437 | ||
438 | $(MSWDIR)\timer.obj: $(MSWDIR)\timer.$(SRCSUFF) | |
439 | ||
1f112209 JS |
440 | $(MSWDIR)\tooltip.obj: $(MSWDIR)\tooltip.$(SRCSUFF) |
441 | ||
3b1de9c2 | 442 | # $(MSWDIR)\treectrl.obj: $(MSWDIR)\treectrl.$(SRCSUFF) |
62448488 JS |
443 | |
444 | $(MSWDIR)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF) | |
445 | ||
446 | $(MSWDIR)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF) | |
2bda0e17 | 447 | |
62448488 JS |
448 | $(MSWDIR)\wave.obj: $(MSWDIR)\wave.$(SRCSUFF) |
449 | ||
450 | $(MSWDIR)\window.obj: $(MSWDIR)\window.$(SRCSUFF) | |
451 | ||
452 | $(MSWDIR)\droptgt.obj: $(OLEDIR)\droptgt.$(SRCSUFF) | |
453 | ||
454 | $(MSWDIR)\dropsrc.obj: $(OLEDIR)\dropsrc.$(SRCSUFF) | |
455 | ||
456 | $(MSWDIR)\dataobj.obj: $(OLEDIR)\dataobj.$(SRCSUFF) | |
457 | ||
458 | $(MSWDIR)\oleutils.obj: $(OLEDIR)\oleutils.$(SRCSUFF) | |
459 | ||
460 | $(MSWDIR)\uuid.obj: $(OLEDIR)\uuid.$(SRCSUFF) | |
461 | ||
462 | $(MSWDIR)\automtn.obj: $(OLEDIR)\automtn.$(SRCSUFF) | |
463 | ||
464 | ######################################################## | |
465 | # Common objects (always compiled) | |
466 | ||
467 | $(MSWDIR)\config.obj: $(COMMDIR)\config.$(SRCSUFF) | |
468 | ||
469 | $(MSWDIR)\cmndata.obj: $(COMMDIR)\cmndata.$(SRCSUFF) | |
470 | ||
471 | $(MSWDIR)\docview.obj: $(COMMDIR)\docview.$(SRCSUFF) | |
472 | ||
473 | $(MSWDIR)\docmdi.obj: $(COMMDIR)\docmdi.$(SRCSUFF) | |
474 | ||
475 | $(MSWDIR)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF) | |
476 | ||
477 | $(MSWDIR)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF) | |
478 | ||
479 | $(MSWDIR)\event.obj: $(COMMDIR)\event.$(SRCSUFF) | |
480 | ||
481 | $(MSWDIR)\file.obj: $(COMMDIR)\file.$(SRCSUFF) | |
482 | ||
483 | $(MSWDIR)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF) | |
484 | ||
485 | $(MSWDIR)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF) | |
486 | ||
487 | $(MSWDIR)\framecmn.obj: $(COMMDIR)\framecmn.$(SRCSUFF) | |
488 | ||
489 | $(MSWDIR)\gdicmn.obj: $(COMMDIR)\gdicmn.$(SRCSUFF) | |
490 | ||
491 | $(MSWDIR)\image.obj: $(COMMDIR)\image.$(SRCSUFF) | |
492 | ||
493 | $(MSWDIR)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF) | |
494 | ||
495 | $(MSWDIR)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF) | |
496 | ||
497 | $(MSWDIR)\helpbase.obj: $(COMMDIR)\helpbase.$(SRCSUFF) | |
498 | ||
499 | $(MSWDIR)\layout.obj: $(COMMDIR)\layout.$(SRCSUFF) | |
500 | ||
501 | $(MSWDIR)\log.obj: $(COMMDIR)\log.$(SRCSUFF) | |
502 | ||
503 | $(MSWDIR)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF) | |
504 | ||
2432b92d JS |
505 | $(MSWDIR)\mimetype.obj: $(COMMDIR)\mimetype.$(SRCSUFF) |
506 | ||
62448488 JS |
507 | $(MSWDIR)\module.obj: $(COMMDIR)\module.$(SRCSUFF) |
508 | ||
509 | $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF) | |
510 | ||
511 | $(MSWDIR)\odbc.obj: $(COMMDIR)\odbc.$(SRCSUFF) | |
512 | ||
62448488 JS |
513 | $(MSWDIR)\prntbase.obj: $(COMMDIR)\prntbase.$(SRCSUFF) |
514 | ||
515 | $(MSWDIR)\resource.obj: $(COMMDIR)\resource.$(SRCSUFF) | |
516 | ||
3b1de9c2 JS |
517 | $(MSWDIR)\resourc2.obj: $(COMMDIR)\resourc2.$(SRCSUFF) |
518 | ||
62448488 JS |
519 | $(MSWDIR)\tbarbase.obj: $(COMMDIR)\tbarbase.$(SRCSUFF) |
520 | ||
521 | $(MSWDIR)\tbarsmpl.obj: $(COMMDIR)\tbarsmpl.$(SRCSUFF) | |
522 | ||
523 | $(MSWDIR)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF) | |
524 | ||
525 | $(MSWDIR)\timercmn.obj: $(COMMDIR)\timercmn.$(SRCSUFF) | |
526 | ||
527 | $(MSWDIR)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF) | |
528 | ||
529 | $(MSWDIR)\validate.obj: $(COMMDIR)\validate.$(SRCSUFF) | |
530 | ||
89c684ef JS |
531 | $(MSWDIR)\valgen.obj: $(COMMDIR)\valgen.$(SRCSUFF) |
532 | ||
62448488 JS |
533 | $(MSWDIR)\valtext.obj: $(COMMDIR)\valtext.$(SRCSUFF) |
534 | ||
535 | $(MSWDIR)\date.obj: $(COMMDIR)\date.$(SRCSUFF) | |
536 | ||
537 | $(MSWDIR)\wxexpr.obj: $(COMMDIR)\wxexpr.$(SRCSUFF) | |
538 | ||
539 | $(MSWDIR)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF) | |
540 | ||
541 | $(MSWDIR)\list.obj: $(COMMDIR)\list.$(SRCSUFF) | |
542 | ||
7bcb11d3 JS |
543 | $(MSWDIR)\paper.obj: $(COMMDIR)\paper.$(SRCSUFF) |
544 | ||
62448488 JS |
545 | $(MSWDIR)\string.obj: $(COMMDIR)\string.$(SRCSUFF) |
546 | ||
547 | $(MSWDIR)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF) | |
548 | ||
549 | $(MSWDIR)\matrix.obj: $(COMMDIR)\matrix.$(SRCSUFF) | |
550 | ||
551 | $(MSWDIR)\time.obj: $(COMMDIR)\time.$(SRCSUFF) | |
552 | ||
553 | $(MSWDIR)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF) | |
554 | ||
555 | $(MSWDIR)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF) | |
556 | ||
557 | $(MSWDIR)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF) | |
558 | ||
559 | $(MSWDIR)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF) | |
560 | ||
561 | $(MSWDIR)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF) | |
562 | ||
563 | $(MSWDIR)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF) | |
564 | ||
565 | $(MSWDIR)\objstrm.obj: $(COMMDIR)\objstrm.$(SRCSUFF) | |
566 | ||
567 | $(MSWDIR)\wincmn.obj: $(COMMDIR)\wincmn.$(SRCSUFF) | |
568 | ||
569 | $(MSWDIR)\extended.obj: $(COMMDIR)\extended.c | |
570 | ||
571 | $(MSWDIR)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF) | |
572 | ||
573 | $(MSWDIR)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF) | |
574 | ||
575 | $(MSWDIR)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF) | |
576 | ||
577 | $(MSWDIR)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF) | |
578 | ||
579 | $(MSWDIR)\url.obj: $(COMMDIR)\url.$(SRCSUFF) | |
580 | ||
581 | $(MSWDIR)\http.obj: $(COMMDIR)\http.$(SRCSUFF) | |
582 | ||
583 | $(MSWDIR)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF) | |
584 | ||
585 | $(MSWDIR)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF) | |
586 | ||
587 | $(MSWDIR)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF) | |
588 | ||
589 | ######################################################## | |
590 | # Generic objects (not always compiled, depending on | |
591 | # whether platforms have native implementations) | |
592 | ||
593 | $(MSWDIR)\choicdgg.obj: $(GENDIR)\choicdgg.$(SRCSUFF) | |
594 | ||
595 | $(MSWDIR)\colrdlgg.obj: $(GENDIR)\colrdlgg.$(SRCSUFF) | |
596 | ||
597 | $(MSWDIR)\fontdlgg.obj: $(GENDIR)\fontdlgg.$(SRCSUFF) | |
598 | ||
599 | $(MSWDIR)\gridg.obj: $(GENDIR)\gridg.$(SRCSUFF) | |
600 | ||
601 | $(MSWDIR)\helpxlp.obj: $(GENDIR)\helpxlp.$(SRCSUFF) | |
602 | ||
603 | $(MSWDIR)\laywin.obj: $(GENDIR)\laywin.$(SRCSUFF) | |
604 | ||
605 | $(MSWDIR)\msgdlgg.obj: $(GENDIR)\msgdlgg.$(SRCSUFF) | |
606 | ||
607 | $(MSWDIR)\panelg.obj: $(GENDIR)\panelg.$(SRCSUFF) | |
608 | ||
609 | $(MSWDIR)\printps.obj: $(GENDIR)\printps.$(SRCSUFF) | |
610 | ||
611 | $(MSWDIR)\prntdlgg.obj: $(GENDIR)\prntdlgg.$(SRCSUFF) | |
612 | ||
e3a43801 JS |
613 | $(MSWDIR)\prop.obj: $(GENDIR)\prop.$(SRCSUFF) |
614 | ||
615 | $(MSWDIR)\proplist.obj: $(GENDIR)\proplist.$(SRCSUFF) | |
616 | ||
617 | $(MSWDIR)\propform.obj: $(GENDIR)\propform.$(SRCSUFF) | |
618 | ||
62448488 JS |
619 | $(MSWDIR)\sashwin.obj: $(GENDIR)\sashwin.$(SRCSUFF) |
620 | ||
621 | $(MSWDIR)\scrolwin.obj: $(GENDIR)\scrolwin.$(SRCSUFF) | |
622 | ||
623 | $(MSWDIR)\splitter.obj: $(GENDIR)\splitter.$(SRCSUFF) | |
624 | ||
625 | $(MSWDIR)\statusbr.obj: $(GENDIR)\statusbr.$(SRCSUFF) | |
626 | ||
627 | $(MSWDIR)\textdlgg.obj: $(GENDIR)\textdlgg.$(SRCSUFF) | |
628 | ||
629 | $(MSWDIR)\tabg.obj: $(GENDIR)\tabg.$(SRCSUFF) | |
630 | ||
631 | $(MSWDIR)\treectrl.obj: $(GENDIR)\treectrl.$(SRCSUFF) | |
632 | ||
633 | $(MSWDIR)\listctrl.obj: $(GENDIR)\listctrl.$(SRCSUFF) | |
634 | ||
635 | $(MSWDIR)\imaglist.obj: $(GENDIR)\imaglist.$(SRCSUFF) | |
636 | ||
637 | $(MSWDIR)\notebook.obj: $(GENDIR)\notebook.$(SRCSUFF) | |
638 | ||
639 | all_utils: | |
640 | cd $(WXDIR)\utils | |
c7f49969 | 641 | make -f makefile.bcc |
2bda0e17 KB |
642 | cd $(WXDIR)\src\msw |
643 | ||
62448488 JS |
644 | all_samples: |
645 | cd $(WXDIR)\samples | |
c7f49969 | 646 | make -f makefile.bcc |
2bda0e17 KB |
647 | cd $(WXDIR)\src\msw |
648 | ||
62448488 JS |
649 | all_execs: |
650 | cd $(WXDIR)\utils | |
c7f49969 | 651 | make -f makefile.bcc all_execs |
2bda0e17 KB |
652 | cd $(WXDIR)\src\msw |
653 | ||
62448488 | 654 | all_libs: |
2bda0e17 | 655 | cd $(WXDIR)\src\msw |
c7f49969 | 656 | make -f makefile.bcc ctl3d dib fafa gauge hytext itsy prologio rcparser wx wxgraph\ |
62448488 | 657 | wxstring wxtree mfutils # wxxpm |
2bda0e17 | 658 | |
62448488 | 659 | all_contribs: |
2bda0e17 | 660 | cd $(WXDIR)\src\msw |
c7f49969 | 661 | make -f makefile.bcc ctl3d fafa wxstring itsy gauge # wxxpm |
62448488 JS |
662 | |
663 | # CONTRIB | |
664 | ctl3d: $(CFG) | |
665 | cd $(WXDIR)\src\msw\ctl3d\borland | |
c7f49969 | 666 | make -f makefile.bcc -DCFG=$(CFG) |
62448488 JS |
667 | cd $(WXDIR)\src\msw |
668 | ||
669 | wxxpm: $(CFG) | |
670 | cd $(WXDIR)\src\xpm | |
c7f49969 | 671 | make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG) |
62448488 JS |
672 | cd $(WXDIR)\src\msw |
673 | ||
674 | png: $(CFG) | |
675 | cd $(WXDIR)\src\png | |
c7f49969 | 676 | make -f makefile.bcc |
62448488 JS |
677 | cd $(WXDIR)\src\msw |
678 | ||
679 | clean_png: | |
680 | cd $(WXDIR)\src\png | |
c7f49969 | 681 | make -f makefile.bcc clean |
62448488 JS |
682 | cd $(WXDIR)\src\msw |
683 | ||
684 | zlib: $(CFG) | |
685 | cd $(WXDIR)\src\zlib | |
c7f49969 | 686 | make -f makefile.bcc |
62448488 JS |
687 | cd $(WXDIR)\src\msw |
688 | ||
689 | clean_zlib: | |
690 | cd $(WXDIR)\src\zlib | |
c7f49969 | 691 | make -f makefile.bcc clean |
62448488 JS |
692 | cd $(WXDIR)\src\msw |
693 | ||
694 | $(CFG): makefile.bcc | |
695 | copy &&! | |
696 | -H=$(WXDIR)\src\msw\borland.pch | |
697 | -2 | |
698 | -P | |
699 | -d | |
700 | -w-hid | |
701 | -w-par | |
702 | -w-pia | |
703 | -w-aus | |
704 | -w-rch | |
705 | -ml | |
706 | -Od | |
707 | -WE | |
708 | -Fs- | |
709 | -Vf | |
710 | -Ff=4 | |
0a240683 | 711 | -I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm |
62448488 JS |
712 | -I$(WXDIR)\include\wx\msw\gnuwin32 |
713 | -L$(BCCDIR)\lib | |
714 | -D__WXWIN__ | |
715 | -D__WXMSW__ | |
716 | -D__WINDOWS__ | |
717 | -D__WIN16__ | |
718 | ! $(CFG) | |
719 | !if "$(BOR_VER)" == "3.1" | |
720 | echo -Ff=4 >>$(CFG) | |
721 | !elif "$(BOR_VER)" == "4" | |
722 | echo -Ff=512 >>$(CFG) | |
723 | echo -dc >>$(CFG) | |
724 | !else | |
725 | echo -Ff=512 >>$(CFG) | |
726 | echo -dc >>$(CFG) | |
727 | !endif | |
728 | ||
729 | # -O was: -Oxt | |
2bda0e17 KB |
730 | |
731 | clean: $(PERIPH_CLEAN_TARGET) | |
732 | erase $(LIBTARGET) | |
2bda0e17 | 733 | erase *.obj |
62448488 JS |
734 | erase *.pch |
735 | erase *.csm | |
736 | erase *.cfg | |
737 | erase ..\common\y_tab.c | |
738 | erase ..\common\lex_yy.c | |
2bda0e17 KB |
739 | |
740 | cleanall: clean | |
62448488 JS |
741 | |
742 |