]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.bcc
fix the tests to pass with both gcc and msvc (2nd part of patch 1462778)
[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_button.obj \
38 $(OBJS)\widgets_checkbox.obj \
39 $(OBJS)\widgets_combobox.obj \
40 $(OBJS)\widgets_datepick.obj \
41 $(OBJS)\widgets_gauge.obj \
42 $(OBJS)\widgets_hyperlnk.obj \
43 $(OBJS)\widgets_listbox.obj \
44 $(OBJS)\widgets_notebook.obj \
45 $(OBJS)\widgets_radiobox.obj \
46 $(OBJS)\widgets_slider.obj \
47 $(OBJS)\widgets_spinbtn.obj \
48 $(OBJS)\widgets_static.obj \
49 $(OBJS)\widgets_textctrl.obj \
50 $(OBJS)\widgets_toggle.obj \
51 $(OBJS)\widgets_widgets.obj
52
53 ### Conditionally set variables: ###
54
55 !if "$(USE_GUI)" == "0"
56 PORTNAME = base
57 !endif
58 !if "$(USE_GUI)" == "1"
59 PORTNAME = msw
60 !endif
61 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
62 WXDEBUGFLAG = d
63 !endif
64 !if "$(DEBUG_FLAG)" == "1"
65 WXDEBUGFLAG = d
66 !endif
67 !if "$(UNICODE)" == "1"
68 WXUNICODEFLAG = u
69 !endif
70 !if "$(WXUNIV)" == "1"
71 WXUNIVNAME = univ
72 !endif
73 !if "$(SHARED)" == "1"
74 WXDLLFLAG = dll
75 !endif
76 !if "$(SHARED)" == "0"
77 LIBTYPE_SUFFIX = lib
78 !endif
79 !if "$(SHARED)" == "1"
80 LIBTYPE_SUFFIX = dll
81 !endif
82 !if "$(MONOLITHIC)" == "0"
83 EXTRALIBS_FOR_BASE =
84 !endif
85 !if "$(MONOLITHIC)" == "1"
86 EXTRALIBS_FOR_BASE =
87 !endif
88 !if "$(BUILD)" == "debug"
89 __OPTIMIZEFLAG_2 = -Od
90 !endif
91 !if "$(BUILD)" == "release"
92 __OPTIMIZEFLAG_2 = -O2
93 !endif
94 !if "$(USE_THREADS)" == "0"
95 __THREADSFLAG_5 =
96 !endif
97 !if "$(USE_THREADS)" == "1"
98 __THREADSFLAG_5 = mt
99 !endif
100 !if "$(USE_THREADS)" == "0"
101 __THREADSFLAG_6 =
102 !endif
103 !if "$(USE_THREADS)" == "1"
104 __THREADSFLAG_6 = -tWM
105 !endif
106 !if "$(RUNTIME_LIBS)" == "dynamic"
107 __RUNTIME_LIBS_7 = -tWR
108 !endif
109 !if "$(RUNTIME_LIBS)" == "static"
110 __RUNTIME_LIBS_7 =
111 !endif
112 !if "$(RUNTIME_LIBS)" == "dynamic"
113 __RUNTIME_LIBS_8 = i
114 !endif
115 !if "$(RUNTIME_LIBS)" == "static"
116 __RUNTIME_LIBS_8 =
117 !endif
118 !if "$(WXUNIV)" == "1"
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 !endif
121 !if "$(WXUNIV)" == "1"
122 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
123 !endif
124 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
125 __DEBUG_DEFINE_p = -D__WXDEBUG__
126 !endif
127 !if "$(DEBUG_FLAG)" == "1"
128 __DEBUG_DEFINE_p = -D__WXDEBUG__
129 !endif
130 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
131 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
132 !endif
133 !if "$(DEBUG_FLAG)" == "1"
134 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
135 !endif
136 !if "$(USE_EXCEPTIONS)" == "0"
137 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
138 !endif
139 !if "$(USE_EXCEPTIONS)" == "0"
140 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
141 !endif
142 !if "$(USE_RTTI)" == "0"
143 __RTTI_DEFINE_p = -DwxNO_RTTI
144 !endif
145 !if "$(USE_RTTI)" == "0"
146 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
147 !endif
148 !if "$(USE_THREADS)" == "0"
149 __THREAD_DEFINE_p = -DwxNO_THREADS
150 !endif
151 !if "$(USE_THREADS)" == "0"
152 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
153 !endif
154 !if "$(UNICODE)" == "1"
155 __UNICODE_DEFINE_p = -D_UNICODE
156 !endif
157 !if "$(UNICODE)" == "1"
158 __UNICODE_DEFINE_p_1 = -d_UNICODE
159 !endif
160 !if "$(MSLU)" == "1"
161 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
162 !endif
163 !if "$(MSLU)" == "1"
164 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
165 !endif
166 !if "$(SHARED)" == "1"
167 __DLLFLAG_p = -DWXUSINGDLL
168 !endif
169 !if "$(SHARED)" == "1"
170 __DLLFLAG_p_1 = -dWXUSINGDLL
171 !endif
172 !if "$(MONOLITHIC)" == "0"
173 __WXLIB_ADV_p = \
174 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
175 !endif
176 !if "$(MONOLITHIC)" == "0"
177 __WXLIB_HTML_p = \
178 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
179 !endif
180 !if "$(MONOLITHIC)" == "0"
181 __WXLIB_CORE_p = \
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
183 !endif
184 !if "$(MONOLITHIC)" == "0"
185 __WXLIB_BASE_p = \
186 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
187 !endif
188 !if "$(MONOLITHIC)" == "1"
189 __WXLIB_MONO_p = \
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
191 !endif
192 !if "$(USE_GUI)" == "1"
193 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
194 !endif
195 !if "$(USE_GUI)" == "1"
196 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
197 !endif
198 !if "$(USE_GUI)" == "1"
199 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
200 !endif
201 !if "$(MSLU)" == "1"
202 __UNICOWS_LIB_p = unicows.lib
203 !endif
204 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
205 __DEBUGINFO = -v
206 !endif
207 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
208 __DEBUGINFO = -v-
209 !endif
210 !if "$(DEBUG_INFO)" == "0"
211 __DEBUGINFO = -v-
212 !endif
213 !if "$(DEBUG_INFO)" == "1"
214 __DEBUGINFO = -v
215 !endif
216
217
218 all: $(OBJS)
219 $(OBJS):
220 -if not exist $(OBJS) mkdir $(OBJS)
221
222 ### Targets: ###
223
224 all: $(OBJS)\widgets.exe
225
226 clean:
227 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
228 -if exist $(OBJS)\*.res del $(OBJS)\*.res
229 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
230 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
231 -if exist $(OBJS)\widgets.tds del $(OBJS)\widgets.tds
232 -if exist $(OBJS)\widgets.ilc del $(OBJS)\widgets.ilc
233 -if exist $(OBJS)\widgets.ild del $(OBJS)\widgets.ild
234 -if exist $(OBJS)\widgets.ilf del $(OBJS)\widgets.ilf
235 -if exist $(OBJS)\widgets.ils del $(OBJS)\widgets.ils
236
237 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample.res
238 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
239 c0w32.obj $(WIDGETS_OBJECTS),$@,, $(__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
240 |
241
242 $(OBJS)\widgets_button.obj: .\button.cpp
243 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
244
245 $(OBJS)\widgets_checkbox.obj: .\checkbox.cpp
246 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
247
248 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
249 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
250
251 $(OBJS)\widgets_datepick.obj: .\datepick.cpp
252 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
253
254 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
255 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
256
257 $(OBJS)\widgets_hyperlnk.obj: .\hyperlnk.cpp
258 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
259
260 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
261 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
262
263 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
264 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
265
266 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
267 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
268
269 $(OBJS)\widgets_slider.obj: .\slider.cpp
270 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
271
272 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
273 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
274
275 $(OBJS)\widgets_static.obj: .\static.cpp
276 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
277
278 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
279 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
280
281 $(OBJS)\widgets_toggle.obj: .\toggle.cpp
282 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
283
284 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
285 $(CXX) -q -c -P -o$@ $(WIDGETS_CXXFLAGS) $**
286
287 $(OBJS)\widgets_sample.res: .\..\sample.rc
288 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 $**
289