]> git.saurik.com Git - wxWidgets.git/blob - tests/benchmarks/makefile.bcc
Don't include wxUniversal configurations in MSVC project files.
[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 = 29
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_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WX$(TOOLKIT)__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
37 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -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
51 ### Conditionally set variables: ###
52
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
55 !endif
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
58 !endif
59 !if "$(USE_GUI)" == "0"
60 PORTNAME = base
61 !endif
62 !if "$(USE_GUI)" == "1"
63 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
64 !endif
65 !if "$(TOOLKIT)" == "MAC"
66 WXBASEPORT = _carbon
67 !endif
68 !if "$(OFFICIAL_BUILD)" == "1"
69 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
70 !endif
71 !if "$(BUILD)" == "debug"
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 "$(DEBUG_FLAG)" == "0"
129 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
130 !endif
131 !if "$(BUILD)" == "release"
132 __NDEBUG_DEFINE_p = -DNDEBUG
133 !endif
134 !if "$(USE_EXCEPTIONS)" == "0"
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136 !endif
137 !if "$(USE_RTTI)" == "0"
138 __RTTI_DEFINE_p = -DwxNO_RTTI
139 !endif
140 !if "$(USE_THREADS)" == "0"
141 __THREAD_DEFINE_p = -DwxNO_THREADS
142 !endif
143 !if "$(UNICODE)" == "0"
144 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
145 !endif
146 !if "$(UNICODE)" == "1"
147 __UNICODE_DEFINE_p = -D_UNICODE
148 !endif
149 !if "$(MSLU)" == "1"
150 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151 !endif
152 !if "$(USE_CAIRO)" == "1"
153 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
154 !endif
155 !if "$(SHARED)" == "1"
156 __DLLFLAG_p = -DWXUSINGDLL
157 !endif
158 !if "$(MONOLITHIC)" == "0"
159 __WXLIB_NET_p = \
160 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
161 !endif
162 !if "$(MONOLITHIC)" == "0"
163 __WXLIB_BASE_p = \
164 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
165 !endif
166 !if "$(MONOLITHIC)" == "1"
167 __WXLIB_MONO_p = \
168 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
169 !endif
170 !if "$(MONOLITHIC)" == "1"
171 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
172 !endif
173 !if "$(USE_GUI)" == "1"
174 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
175 !endif
176 !if "$(MSLU)" == "1"
177 __UNICOWS_LIB_p = unicows.lib
178 !endif
179 !if "$(USE_CAIRO)" == "1"
180 __CAIRO_LIB_p = cairo.lib
181 !endif
182 !if "$(USE_CAIRO)" == "1"
183 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
184 !endif
185 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
186 __DEBUGINFO = -v
187 !endif
188 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
189 __DEBUGINFO = -v-
190 !endif
191 !if "$(DEBUG_INFO)" == "0"
192 __DEBUGINFO = -v-
193 !endif
194 !if "$(DEBUG_INFO)" == "1"
195 __DEBUGINFO = -v
196 !endif
197
198
199 all: $(OBJS)
200 $(OBJS):
201 -if not exist $(OBJS) mkdir $(OBJS)
202
203 ### Targets: ###
204
205 all: $(OBJS)\bench.exe data
206
207 clean:
208 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
209 -if exist $(OBJS)\*.res del $(OBJS)\*.res
210 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
211 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
212 -if exist $(OBJS)\bench.tds del $(OBJS)\bench.tds
213 -if exist $(OBJS)\bench.ilc del $(OBJS)\bench.ilc
214 -if exist $(OBJS)\bench.ild del $(OBJS)\bench.ild
215 -if exist $(OBJS)\bench.ilf del $(OBJS)\bench.ilf
216 -if exist $(OBJS)\bench.ils del $(OBJS)\bench.ils
217
218 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
219 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|
220 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_5)$(__RUNTIME_LIBS_8).lib,,
221 |
222
223 data:
224 if not exist $(OBJS) mkdir $(OBJS)
225 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
226
227 $(OBJS)\bench_bench.obj: .\bench.cpp
228 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\bench.cpp
229
230 $(OBJS)\bench_datetime.obj: .\datetime.cpp
231 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\datetime.cpp
232
233 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
234 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
235
236 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
237 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
238
239 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
240 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
241
242 $(OBJS)\bench_log.obj: .\log.cpp
243 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\log.cpp
244
245 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
246 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
247
248 $(OBJS)\bench_strings.obj: .\strings.cpp
249 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\strings.cpp
250
251 $(OBJS)\bench_tls.obj: .\tls.cpp
252 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\tls.cpp
253
254 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
255 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
256