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