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