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