]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/makefile.bcc
Make @genericAppearance Doxygen macro consistent with @appearance.
[wxWidgets.git] / tests / benchmarks / 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 = 30
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 BENCH_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -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) -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
38 $(CPPFLAGS) $(CXXFLAGS)
39 BENCH_OBJECTS = \
40 $(OBJS)\bench_bench.obj \
41 $(OBJS)\bench_datetime.obj \
42 $(OBJS)\bench_htmlpars.obj \
43 $(OBJS)\bench_htmltag.obj \
44 $(OBJS)\bench_ipcclient.obj \
45 $(OBJS)\bench_log.obj \
46 $(OBJS)\bench_mbconv.obj \
47 $(OBJS)\bench_strings.obj \
48 $(OBJS)\bench_tls.obj \
49 $(OBJS)\bench_printfbench.obj
50 BENCH_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
51 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
52 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
53 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
54 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
55 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
56 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
57 BENCH_GUI_OBJECTS = \
58 $(OBJS)\bench_gui_bench.obj \
59 $(OBJS)\bench_gui_image.obj
60
61 ### Conditionally set variables: ###
62
63 !if "$(USE_GUI)" == "0"
64 PORTNAME = base
65 !endif
66 !if "$(USE_GUI)" == "1"
67 PORTNAME = msw$(TOOLKIT_VERSION)
68 !endif
69 !if "$(OFFICIAL_BUILD)" == "1"
70 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
71 !endif
72 !if "$(BUILD)" == "debug"
73 WXDEBUGFLAG = d
74 !endif
75 !if "$(UNICODE)" == "1"
76 WXUNICODEFLAG = u
77 !endif
78 !if "$(WXUNIV)" == "1"
79 WXUNIVNAME = univ
80 !endif
81 !if "$(SHARED)" == "1"
82 WXDLLFLAG = dll
83 !endif
84 !if "$(SHARED)" == "0"
85 LIBTYPE_SUFFIX = lib
86 !endif
87 !if "$(SHARED)" == "1"
88 LIBTYPE_SUFFIX = dll
89 !endif
90 !if "$(MONOLITHIC)" == "0"
91 EXTRALIBS_FOR_BASE =
92 !endif
93 !if "$(MONOLITHIC)" == "1"
94 EXTRALIBS_FOR_BASE =
95 !endif
96 !if "$(MONOLITHIC)" == "0"
97 __WXLIB_NET_p = \
98 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
99 !endif
100 !if "$(MONOLITHIC)" == "1"
101 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
102 !endif
103 !if "$(USE_GUI)" == "1"
104 __bench_gui___depname = $(OBJS)\bench_gui.exe
105 !endif
106 !if "$(WXUNIV)" == "1"
107 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
108 !endif
109 !if "$(DEBUG_FLAG)" == "0"
110 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
111 !endif
112 !if "$(BUILD)" == "release"
113 __NDEBUG_DEFINE_p_3 = -dNDEBUG
114 !endif
115 !if "$(USE_EXCEPTIONS)" == "0"
116 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
117 !endif
118 !if "$(USE_RTTI)" == "0"
119 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
120 !endif
121 !if "$(USE_THREADS)" == "0"
122 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
123 !endif
124 !if "$(UNICODE)" == "0"
125 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
126 !endif
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p_3 = -d_UNICODE
129 !endif
130 !if "$(MSLU)" == "1"
131 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
132 !endif
133 !if "$(USE_CAIRO)" == "1"
134 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
135 !endif
136 !if "$(SHARED)" == "1"
137 __DLLFLAG_p_3 = -dWXUSINGDLL
138 !endif
139 !if "$(MONOLITHIC)" == "0"
140 __WXLIB_CORE_p = \
141 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
142 !endif
143 !if "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
144 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
145 !endif
146 !if "$(USE_GUI)" == "1"
147 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
148 !endif
149 !if "$(USE_GUI)" == "1"
150 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
151 !endif
152 !if "$(BUILD)" == "debug"
153 __OPTIMIZEFLAG = -Od
154 !endif
155 !if "$(BUILD)" == "release"
156 __OPTIMIZEFLAG = -O2
157 !endif
158 !if "$(USE_THREADS)" == "0"
159 __THREADSFLAG =
160 !endif
161 !if "$(USE_THREADS)" == "1"
162 __THREADSFLAG = mt
163 !endif
164 !if "$(USE_THREADS)" == "0"
165 __THREADSFLAG_0 =
166 !endif
167 !if "$(USE_THREADS)" == "1"
168 __THREADSFLAG_0 = -tWM
169 !endif
170 !if "$(RUNTIME_LIBS)" == "dynamic"
171 __RUNTIME_LIBS = -tWR
172 !endif
173 !if "$(RUNTIME_LIBS)" == "static"
174 __RUNTIME_LIBS =
175 !endif
176 !if "$(RUNTIME_LIBS)" == "dynamic"
177 __RUNTIME_LIBS_0 = i
178 !endif
179 !if "$(RUNTIME_LIBS)" == "static"
180 __RUNTIME_LIBS_0 =
181 !endif
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
184 !endif
185 !if "$(DEBUG_FLAG)" == "0"
186 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
187 !endif
188 !if "$(BUILD)" == "release"
189 __NDEBUG_DEFINE_p = -DNDEBUG
190 !endif
191 !if "$(USE_EXCEPTIONS)" == "0"
192 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
193 !endif
194 !if "$(USE_RTTI)" == "0"
195 __RTTI_DEFINE_p = -DwxNO_RTTI
196 !endif
197 !if "$(USE_THREADS)" == "0"
198 __THREAD_DEFINE_p = -DwxNO_THREADS
199 !endif
200 !if "$(UNICODE)" == "0"
201 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
202 !endif
203 !if "$(UNICODE)" == "1"
204 __UNICODE_DEFINE_p = -D_UNICODE
205 !endif
206 !if "$(MSLU)" == "1"
207 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
208 !endif
209 !if "$(USE_CAIRO)" == "1"
210 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
211 !endif
212 !if "$(SHARED)" == "1"
213 __DLLFLAG_p = -DWXUSINGDLL
214 !endif
215 !if "$(MONOLITHIC)" == "0"
216 __WXLIB_BASE_p = \
217 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
218 !endif
219 !if "$(MONOLITHIC)" == "1"
220 __WXLIB_MONO_p = \
221 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
222 !endif
223 !if "$(USE_GUI)" == "1"
224 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
225 !endif
226 !if "$(MSLU)" == "1"
227 __UNICOWS_LIB_p = unicows.lib
228 !endif
229 !if "$(USE_CAIRO)" == "1"
230 __CAIRO_LIB_p = cairo.lib
231 !endif
232 !if "$(USE_CAIRO)" == "1"
233 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
234 !endif
235 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
236 __DEBUGINFO = -v
237 !endif
238 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
239 __DEBUGINFO = -v-
240 !endif
241 !if "$(DEBUG_INFO)" == "0"
242 __DEBUGINFO = -v-
243 !endif
244 !if "$(DEBUG_INFO)" == "1"
245 __DEBUGINFO = -v
246 !endif
247
248
249 all: $(OBJS)
250 $(OBJS):
251 -if not exist $(OBJS) mkdir $(OBJS)
252
253 ### Targets: ###
254
255 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
256
257 clean:
258 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
259 -if exist $(OBJS)\*.res del $(OBJS)\*.res
260 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
261 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
262 -if exist $(OBJS)\bench.tds del $(OBJS)\bench.tds
263 -if exist $(OBJS)\bench.ilc del $(OBJS)\bench.ilc
264 -if exist $(OBJS)\bench.ild del $(OBJS)\bench.ild
265 -if exist $(OBJS)\bench.ilf del $(OBJS)\bench.ilf
266 -if exist $(OBJS)\bench.ils del $(OBJS)\bench.ils
267 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
268 -if exist $(OBJS)\bench_gui.tds del $(OBJS)\bench_gui.tds
269 -if exist $(OBJS)\bench_gui.ilc del $(OBJS)\bench_gui.ilc
270 -if exist $(OBJS)\bench_gui.ild del $(OBJS)\bench_gui.ild
271 -if exist $(OBJS)\bench_gui.ilf del $(OBJS)\bench_gui.ilf
272 -if exist $(OBJS)\bench_gui.ils del $(OBJS)\bench_gui.ils
273
274 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
275 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
276 c0x32.obj $(BENCH_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_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)$(__RUNTIME_LIBS_0).lib,,
277 |
278
279 data:
280 if not exist $(OBJS) mkdir $(OBJS)
281 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
282
283 !if "$(USE_GUI)" == "1"
284 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
285 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
286 c0x32.obj $(BENCH_GUI_OBJECTS),$@,, $(__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)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\bench_gui_sample.res
287 |
288 !endif
289
290 data-image:
291 if not exist $(OBJS) mkdir $(OBJS)
292 for %f in (../../samples/image/horse.bmp ../../samples/image/horse.jpg ../../samples/image/horse.png ../../samples/image/horse.tif) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
293
294 $(OBJS)\bench_bench.obj: .\bench.cpp
295 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\bench.cpp
296
297 $(OBJS)\bench_datetime.obj: .\datetime.cpp
298 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\datetime.cpp
299
300 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
301 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
302
303 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
304 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
305
306 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
307 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
308
309 $(OBJS)\bench_log.obj: .\log.cpp
310 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\log.cpp
311
312 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
313 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
314
315 $(OBJS)\bench_strings.obj: .\strings.cpp
316 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\strings.cpp
317
318 $(OBJS)\bench_tls.obj: .\tls.cpp
319 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\tls.cpp
320
321 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
322 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
323
324 $(OBJS)\bench_gui_sample.res: .\..\..\samples\sample.rc
325 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) -i. $(__DLLFLAG_p_3) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc
326
327 $(OBJS)\bench_gui_bench.obj: .\bench.cpp
328 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\bench.cpp
329
330 $(OBJS)\bench_gui_image.obj: .\image.cpp
331 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\image.cpp
332