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