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