]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.bcc
remove 10.4 compatibility code
[wxWidgets.git] / samples / widgets / makefile.bcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7.autodepend\r
8\r
9!ifndef BCCDIR\r
10!ifndef MAKEDIR\r
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4\r
12!endif\r
13BCCDIR = $(MAKEDIR)\..\r
14!endif\r
15\r
16!include ../../build/msw/config.bcc\r
17\r
18# -------------------------------------------------------------------------\r
19# Do not modify the rest of this file!\r
20# -------------------------------------------------------------------------\r
21\r
22### Variables: ###\r
23\r
24WX_RELEASE_NODOT = 29\r
25COMPILER_PREFIX = bcc\r
26OBJS = \\r
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
28LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r
29SETUPHDIR = \\r
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
31WIDGETS_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
32 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
33 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
34 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 35 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
36 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
37 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
38WIDGETS_OBJECTS = \\r
39 $(OBJS)\widgets_bmpcombobox.obj \\r
40 $(OBJS)\widgets_button.obj \\r
41 $(OBJS)\widgets_checkbox.obj \\r
42 $(OBJS)\widgets_choice.obj \\r
43 $(OBJS)\widgets_clrpicker.obj \\r
44 $(OBJS)\widgets_combobox.obj \\r
45 $(OBJS)\widgets_datepick.obj \\r
46 $(OBJS)\widgets_dirctrl.obj \\r
47 $(OBJS)\widgets_dirpicker.obj \\r
48 $(OBJS)\widgets_editlbox.obj \\r
49 $(OBJS)\widgets_filectrl.obj \\r
50 $(OBJS)\widgets_filepicker.obj \\r
51 $(OBJS)\widgets_fontpicker.obj \\r
52 $(OBJS)\widgets_gauge.obj \\r
53 $(OBJS)\widgets_hyperlnk.obj \\r
54 $(OBJS)\widgets_itemcontainer.obj \\r
55 $(OBJS)\widgets_listbox.obj \\r
56 $(OBJS)\widgets_notebook.obj \\r
57 $(OBJS)\widgets_odcombobox.obj \\r
58 $(OBJS)\widgets_radiobox.obj \\r
59 $(OBJS)\widgets_searchctrl.obj \\r
60 $(OBJS)\widgets_slider.obj \\r
61 $(OBJS)\widgets_spinbtn.obj \\r
62 $(OBJS)\widgets_static.obj \\r
63 $(OBJS)\widgets_statbmp.obj \\r
64 $(OBJS)\widgets_textctrl.obj \\r
51ec29ea 65 $(OBJS)\widgets_timepick.obj \\r
f82b7036
KO
66 $(OBJS)\widgets_toggle.obj \\r
67 $(OBJS)\widgets_widgets.obj\r
68\r
69### Conditionally set variables: ###\r
70\r
71!if "$(USE_GUI)" == "0"\r
72PORTNAME = base\r
73!endif\r
74!if "$(USE_GUI)" == "1"\r
75PORTNAME = msw\r
76!endif\r
77!if "$(BUILD)" == "debug"\r
78WXDEBUGFLAG = d\r
79!endif\r
80!if "$(UNICODE)" == "1"\r
81WXUNICODEFLAG = u\r
82!endif\r
83!if "$(WXUNIV)" == "1"\r
84WXUNIVNAME = univ\r
85!endif\r
86!if "$(SHARED)" == "1"\r
87WXDLLFLAG = dll\r
88!endif\r
89!if "$(SHARED)" == "0"\r
90LIBTYPE_SUFFIX = lib\r
91!endif\r
92!if "$(SHARED)" == "1"\r
93LIBTYPE_SUFFIX = dll\r
94!endif\r
95!if "$(MONOLITHIC)" == "0"\r
96EXTRALIBS_FOR_BASE = \r
97!endif\r
98!if "$(MONOLITHIC)" == "1"\r
51ec29ea 99EXTRALIBS_FOR_BASE = \r
f82b7036
KO
100!endif\r
101!if "$(BUILD)" == "debug"\r
102__OPTIMIZEFLAG_2 = -Od\r
103!endif\r
104!if "$(BUILD)" == "release"\r
105__OPTIMIZEFLAG_2 = -O2\r
106!endif\r
107!if "$(USE_THREADS)" == "0"\r
108__THREADSFLAG_5 = \r
109!endif\r
110!if "$(USE_THREADS)" == "1"\r
111__THREADSFLAG_5 = mt\r
112!endif\r
113!if "$(USE_THREADS)" == "0"\r
114__THREADSFLAG_6 = \r
115!endif\r
116!if "$(USE_THREADS)" == "1"\r
117__THREADSFLAG_6 = -tWM\r
118!endif\r
119!if "$(RUNTIME_LIBS)" == "dynamic"\r
120__RUNTIME_LIBS_7 = -tWR\r
121!endif\r
122!if "$(RUNTIME_LIBS)" == "static"\r
123__RUNTIME_LIBS_7 = \r
124!endif\r
125!if "$(RUNTIME_LIBS)" == "dynamic"\r
126__RUNTIME_LIBS_8 = i\r
127!endif\r
128!if "$(RUNTIME_LIBS)" == "static"\r
129__RUNTIME_LIBS_8 = \r
130!endif\r
131!if "$(WXUNIV)" == "1"\r
132__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
133!endif\r
134!if "$(WXUNIV)" == "1"\r
135__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__\r
136!endif\r
137!if "$(DEBUG_FLAG)" == "0"\r
138__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
139!endif\r
140!if "$(DEBUG_FLAG)" == "0"\r
141__DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0\r
142!endif\r
00fb97de
KO
143!if "$(BUILD)" == "release"\r
144__NDEBUG_DEFINE_p = -DNDEBUG\r
145!endif\r
146!if "$(BUILD)" == "release"\r
147__NDEBUG_DEFINE_p_1 = -dNDEBUG\r
148!endif\r
f82b7036
KO
149!if "$(USE_EXCEPTIONS)" == "0"\r
150__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
151!endif\r
152!if "$(USE_EXCEPTIONS)" == "0"\r
153__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS\r
154!endif\r
155!if "$(USE_RTTI)" == "0"\r
156__RTTI_DEFINE_p = -DwxNO_RTTI\r
157!endif\r
158!if "$(USE_RTTI)" == "0"\r
159__RTTI_DEFINE_p_1 = -dwxNO_RTTI\r
160!endif\r
161!if "$(USE_THREADS)" == "0"\r
162__THREAD_DEFINE_p = -DwxNO_THREADS\r
163!endif\r
164!if "$(USE_THREADS)" == "0"\r
165__THREAD_DEFINE_p_1 = -dwxNO_THREADS\r
166!endif\r
167!if "$(UNICODE)" == "0"\r
168__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
169!endif\r
170!if "$(UNICODE)" == "1"\r
171__UNICODE_DEFINE_p = -D_UNICODE\r
172!endif\r
173!if "$(UNICODE)" == "0"\r
174__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0\r
175!endif\r
176!if "$(UNICODE)" == "1"\r
177__UNICODE_DEFINE_p_1 = -d_UNICODE\r
178!endif\r
179!if "$(MSLU)" == "1"\r
180__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
181!endif\r
182!if "$(MSLU)" == "1"\r
183__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1\r
184!endif\r
f82b7036
KO
185!if "$(USE_CAIRO)" == "1"\r
186____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
187!endif\r
188!if "$(USE_CAIRO)" == "1"\r
189____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo\r
190!endif\r
191!if "$(SHARED)" == "1"\r
192__DLLFLAG_p = -DWXUSINGDLL\r
193!endif\r
194!if "$(SHARED)" == "1"\r
195__DLLFLAG_p_1 = -dWXUSINGDLL\r
196!endif\r
197!if "$(MONOLITHIC)" == "0"\r
198__WXLIB_ADV_p = \\r
199 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib\r
200!endif\r
201!if "$(MONOLITHIC)" == "0"\r
202__WXLIB_CORE_p = \\r
203 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
204!endif\r
205!if "$(MONOLITHIC)" == "0"\r
206__WXLIB_BASE_p = \\r
207 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
208!endif\r
209!if "$(MONOLITHIC)" == "1"\r
210__WXLIB_MONO_p = \\r
211 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
212!endif\r
213!if "$(USE_GUI)" == "1"\r
214__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
215!endif\r
216!if "$(USE_GUI)" == "1"\r
217__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
218!endif\r
219!if "$(USE_GUI)" == "1"\r
220__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
221!endif\r
222!if "$(MSLU)" == "1"\r
223__UNICOWS_LIB_p = unicows.lib\r
224!endif\r
f82b7036
KO
225!if "$(USE_CAIRO)" == "1"\r
226__CAIRO_LIB_p = cairo.lib\r
227!endif\r
228!if "$(USE_CAIRO)" == "1"\r
229____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
230!endif\r
231!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
232__DEBUGINFO = -v\r
233!endif\r
234!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
235__DEBUGINFO = -v-\r
236!endif\r
237!if "$(DEBUG_INFO)" == "0"\r
238__DEBUGINFO = -v-\r
239!endif\r
240!if "$(DEBUG_INFO)" == "1"\r
241__DEBUGINFO = -v\r
242!endif\r
243\r
244\r
245all: $(OBJS)\r
246$(OBJS):\r
247 -if not exist $(OBJS) mkdir $(OBJS)\r
248\r
249### Targets: ###\r
250\r
251all: $(OBJS)\widgets.exe\r
252\r
253clean: \r
254 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
255 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
256 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
257 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe\r
258 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds\r
259 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc\r
260 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild\r
261 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf\r
262 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils\r
263\r
264$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res\r
265 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|\r
b796194b 266 c0w32.obj $(WIDGETS_OBJECTS),$@,, $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\widgets_sample.res\r
f82b7036
KO
267|\r
268\r
269$(OBJS)\widgets_bmpcombobox.obj: .\bmpcombobox.cpp\r
270 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\bmpcombobox.cpp\r
271\r
272$(OBJS)\widgets_button.obj: .\button.cpp\r
273 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\button.cpp\r
274\r
275$(OBJS)\widgets_checkbox.obj: .\checkbox.cpp\r
276 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\checkbox.cpp\r
277\r
278$(OBJS)\widgets_choice.obj: .\choice.cpp\r
279 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\choice.cpp\r
280\r
281$(OBJS)\widgets_clrpicker.obj: .\clrpicker.cpp\r
282 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\clrpicker.cpp\r
283\r
284$(OBJS)\widgets_combobox.obj: .\combobox.cpp\r
285 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\combobox.cpp\r
286\r
287$(OBJS)\widgets_datepick.obj: .\datepick.cpp\r
288 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\datepick.cpp\r
289\r
290$(OBJS)\widgets_dirctrl.obj: .\dirctrl.cpp\r
291 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\dirctrl.cpp\r
292\r
293$(OBJS)\widgets_dirpicker.obj: .\dirpicker.cpp\r
294 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\dirpicker.cpp\r
295\r
296$(OBJS)\widgets_editlbox.obj: .\editlbox.cpp\r
297 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\editlbox.cpp\r
298\r
299$(OBJS)\widgets_filectrl.obj: .\filectrl.cpp\r
300 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\filectrl.cpp\r
301\r
302$(OBJS)\widgets_filepicker.obj: .\filepicker.cpp\r
303 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\filepicker.cpp\r
304\r
305$(OBJS)\widgets_fontpicker.obj: .\fontpicker.cpp\r
306 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\fontpicker.cpp\r
307\r
308$(OBJS)\widgets_gauge.obj: .\gauge.cpp\r
309 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\gauge.cpp\r
310\r
311$(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp\r
312 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\hyperlnk.cpp\r
313\r
314$(OBJS)\widgets_itemcontainer.obj: .\itemcontainer.cpp\r
315 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\itemcontainer.cpp\r
316\r
317$(OBJS)\widgets_listbox.obj: .\listbox.cpp\r
318 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\listbox.cpp\r
319\r
320$(OBJS)\widgets_notebook.obj: .\notebook.cpp\r
321 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\notebook.cpp\r
322\r
323$(OBJS)\widgets_odcombobox.obj: .\odcombobox.cpp\r
324 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\odcombobox.cpp\r
325\r
326$(OBJS)\widgets_radiobox.obj: .\radiobox.cpp\r
327 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\radiobox.cpp\r
328\r
329$(OBJS)\widgets_searchctrl.obj: .\searchctrl.cpp\r
330 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\searchctrl.cpp\r
331\r
332$(OBJS)\widgets_slider.obj: .\slider.cpp\r
333 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\slider.cpp\r
334\r
335$(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp\r
336 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\spinbtn.cpp\r
337\r
338$(OBJS)\widgets_static.obj: .\static.cpp\r
339 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\static.cpp\r
340\r
341$(OBJS)\widgets_statbmp.obj: .\statbmp.cpp\r
342 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\statbmp.cpp\r
343\r
344$(OBJS)\widgets_textctrl.obj: .\textctrl.cpp\r
345 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\textctrl.cpp\r
346\r
51ec29ea
VZ
347$(OBJS)\widgets_timepick.obj: .\timepick.cpp\r
348 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\timepick.cpp\r
349\r
f82b7036
KO
350$(OBJS)\widgets_toggle.obj: .\toggle.cpp\r
351 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\toggle.cpp\r
352\r
353$(OBJS)\widgets_widgets.obj: .\widgets.cpp\r
354 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) .\widgets.cpp\r
355\r
356$(OBJS)\widgets_sample.res: .\..\sample.rc\r
b796194b 357 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH .\..\sample.rc\r
f82b7036 358\r