]>
Commit | Line | Data |
---|---|---|
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 | !include <../../build/msw/config.vc>\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | ### Variables: ###\r | |
14 | \r | |
15 | WX_RELEASE_NODOT = 29\r | |
16 | COMPILER_PREFIX = vc\r | |
17 | OBJS = \\r | |
18 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)\r | |
19 | LIBDIRNAME = \\r | |
20 | .\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
21 | SETUPHDIR = \\r | |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
23 | BENCH_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \\r | |
24 | $(__DEBUGINFO_0) /Fd$(OBJS)\bench.pdb $(____DEBUGRUNTIME_3_p) \\r | |
25 | $(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r | |
da8b1d4b KO |
26 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r |
27 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
b796194b | 28 | $(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \\r |
f82b7036 KO |
29 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE \\r |
30 | /DwxUSE_GUI=0 $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) $(CPPFLAGS) \\r | |
a7ebaf0d KO |
31 | $(CXXFLAGS)\r |
32 | BENCH_OBJECTS = \\r | |
33 | $(OBJS)\bench_bench.obj \\r | |
34 | $(OBJS)\bench_htmlpars.obj \\r | |
35 | $(OBJS)\bench_htmltag.obj \\r | |
36 | $(OBJS)\bench_ipcclient.obj \\r | |
37 | $(OBJS)\bench_mbconv.obj \\r | |
38 | $(OBJS)\bench_strings.obj \\r | |
39 | $(OBJS)\bench_tls.obj \\r | |
40 | $(OBJS)\bench_printfbench.obj\r | |
41 | \r | |
42 | ### Conditionally set variables: ###\r | |
43 | \r | |
44 | !if "$(USE_GUI)" == "0"\r | |
45 | PORTNAME = base\r | |
46 | !endif\r | |
47 | !if "$(USE_GUI)" == "1"\r | |
48 | PORTNAME = msw\r | |
49 | !endif\r | |
50 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
51 | WXDEBUGFLAG = d\r | |
52 | !endif\r | |
53 | !if "$(DEBUG_RUNTIME_LIBS)" == "1"\r | |
54 | WXDEBUGFLAG = d\r | |
55 | !endif\r | |
56 | !if "$(UNICODE)" == "1"\r | |
57 | WXUNICODEFLAG = u\r | |
58 | !endif\r | |
59 | !if "$(WXUNIV)" == "1"\r | |
60 | WXUNIVNAME = univ\r | |
61 | !endif\r | |
62 | !if "$(TARGET_CPU)" == "AMD64"\r | |
63 | DIR_SUFFIX_CPU = _amd64\r | |
64 | !endif\r | |
65 | !if "$(TARGET_CPU)" == "IA64"\r | |
66 | DIR_SUFFIX_CPU = _ia64\r | |
67 | !endif\r | |
68 | !if "$(TARGET_CPU)" == "amd64"\r | |
69 | DIR_SUFFIX_CPU = _amd64\r | |
70 | !endif\r | |
71 | !if "$(TARGET_CPU)" == "ia64"\r | |
72 | DIR_SUFFIX_CPU = _ia64\r | |
73 | !endif\r | |
74 | !if "$(SHARED)" == "1"\r | |
75 | WXDLLFLAG = dll\r | |
76 | !endif\r | |
77 | !if "$(SHARED)" == "0"\r | |
78 | LIBTYPE_SUFFIX = lib\r | |
79 | !endif\r | |
80 | !if "$(SHARED)" == "1"\r | |
81 | LIBTYPE_SUFFIX = dll\r | |
82 | !endif\r | |
83 | !if "$(TARGET_CPU)" == "AMD64"\r | |
94b6ce7f | 84 | LINK_TARGET_CPU = /MACHINE:X64\r |
a7ebaf0d KO |
85 | !endif\r |
86 | !if "$(TARGET_CPU)" == "IA64"\r | |
87 | LINK_TARGET_CPU = /MACHINE:IA64\r | |
88 | !endif\r | |
89 | !if "$(TARGET_CPU)" == "amd64"\r | |
94b6ce7f | 90 | LINK_TARGET_CPU = /MACHINE:X64\r |
a7ebaf0d KO |
91 | !endif\r |
92 | !if "$(TARGET_CPU)" == "ia64"\r | |
93 | LINK_TARGET_CPU = /MACHINE:IA64\r | |
94 | !endif\r | |
95 | !if "$(MONOLITHIC)" == "0"\r | |
96 | EXTRALIBS_FOR_BASE = \r | |
97 | !endif\r | |
98 | !if "$(MONOLITHIC)" == "1"\r | |
99 | EXTRALIBS_FOR_BASE = \r | |
100 | !endif\r | |
101 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r | |
102 | __DEBUGINFO_0 = /Zi\r | |
103 | !endif\r | |
104 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r | |
105 | __DEBUGINFO_0 = \r | |
106 | !endif\r | |
107 | !if "$(DEBUG_INFO)" == "0"\r | |
108 | __DEBUGINFO_0 = \r | |
109 | !endif\r | |
110 | !if "$(DEBUG_INFO)" == "1"\r | |
111 | __DEBUGINFO_0 = /Zi\r | |
112 | !endif\r | |
113 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r | |
114 | __DEBUGINFO_1 = /DEBUG\r | |
115 | !endif\r | |
116 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r | |
117 | __DEBUGINFO_1 = \r | |
118 | !endif\r | |
119 | !if "$(DEBUG_INFO)" == "0"\r | |
120 | __DEBUGINFO_1 = \r | |
121 | !endif\r | |
122 | !if "$(DEBUG_INFO)" == "1"\r | |
123 | __DEBUGINFO_1 = /DEBUG\r | |
124 | !endif\r | |
125 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r | |
126 | __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)\r | |
127 | !endif\r | |
128 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r | |
129 | __DEBUGINFO_2 = \r | |
130 | !endif\r | |
131 | !if "$(DEBUG_INFO)" == "0"\r | |
132 | __DEBUGINFO_2 = \r | |
133 | !endif\r | |
134 | !if "$(DEBUG_INFO)" == "1"\r | |
135 | __DEBUGINFO_2 = $(__DEBUGRUNTIME_5)\r | |
136 | !endif\r | |
137 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
138 | ____DEBUGRUNTIME_3_p = /D_DEBUG\r | |
139 | !endif\r | |
140 | !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
141 | ____DEBUGRUNTIME_3_p = \r | |
142 | !endif\r | |
143 | !if "$(DEBUG_RUNTIME_LIBS)" == "0"\r | |
144 | ____DEBUGRUNTIME_3_p = \r | |
145 | !endif\r | |
146 | !if "$(DEBUG_RUNTIME_LIBS)" == "1"\r | |
147 | ____DEBUGRUNTIME_3_p = /D_DEBUG\r | |
148 | !endif\r | |
149 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
150 | __DEBUGRUNTIME_4 = d\r | |
151 | !endif\r | |
152 | !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
153 | __DEBUGRUNTIME_4 = \r | |
154 | !endif\r | |
155 | !if "$(DEBUG_RUNTIME_LIBS)" == "0"\r | |
156 | __DEBUGRUNTIME_4 = \r | |
157 | !endif\r | |
158 | !if "$(DEBUG_RUNTIME_LIBS)" == "1"\r | |
159 | __DEBUGRUNTIME_4 = d\r | |
160 | !endif\r | |
161 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
162 | __DEBUGRUNTIME_5 = \r | |
163 | !endif\r | |
164 | !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r | |
165 | __DEBUGRUNTIME_5 = /opt:ref /opt:icf\r | |
166 | !endif\r | |
167 | !if "$(DEBUG_RUNTIME_LIBS)" == "0"\r | |
168 | __DEBUGRUNTIME_5 = /opt:ref /opt:icf\r | |
169 | !endif\r | |
170 | !if "$(DEBUG_RUNTIME_LIBS)" == "1"\r | |
171 | __DEBUGRUNTIME_5 = \r | |
172 | !endif\r | |
173 | !if "$(BUILD)" == "debug"\r | |
174 | __OPTIMIZEFLAG_6 = /Od\r | |
175 | !endif\r | |
176 | !if "$(BUILD)" == "release"\r | |
177 | __OPTIMIZEFLAG_6 = /O2\r | |
178 | !endif\r | |
179 | !if "$(USE_THREADS)" == "0"\r | |
180 | __THREADSFLAG_9 = L\r | |
181 | !endif\r | |
182 | !if "$(USE_THREADS)" == "1"\r | |
183 | __THREADSFLAG_9 = T\r | |
184 | !endif\r | |
185 | !if "$(RUNTIME_LIBS)" == "dynamic"\r | |
186 | __RUNTIME_LIBS_10 = D\r | |
187 | !endif\r | |
188 | !if "$(RUNTIME_LIBS)" == "static"\r | |
189 | __RUNTIME_LIBS_10 = $(__THREADSFLAG_9)\r | |
190 | !endif\r | |
191 | !if "$(USE_RTTI)" == "0"\r | |
192 | __RTTIFLAG_11 = \r | |
193 | !endif\r | |
194 | !if "$(USE_RTTI)" == "1"\r | |
195 | __RTTIFLAG_11 = /GR\r | |
196 | !endif\r | |
197 | !if "$(USE_EXCEPTIONS)" == "0"\r | |
198 | __EXCEPTIONSFLAG_12 = \r | |
199 | !endif\r | |
200 | !if "$(USE_EXCEPTIONS)" == "1"\r | |
201 | __EXCEPTIONSFLAG_12 = /EHsc\r | |
202 | !endif\r | |
203 | !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"\r | |
204 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r | |
205 | !endif\r | |
206 | !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"\r | |
207 | __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__\r | |
208 | !endif\r | |
209 | !if "$(WXUNIV)" == "1"\r | |
210 | __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__\r | |
211 | !endif\r | |
212 | !if "$(DEBUG_FLAG)" == "0"\r | |
213 | __DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0\r | |
214 | !endif\r | |
da8b1d4b KO |
215 | !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"\r |
216 | __NDEBUG_DEFINE_p = /DNDEBUG\r | |
217 | !endif\r | |
218 | !if "$(DEBUG_RUNTIME_LIBS)" == "0"\r | |
219 | __NDEBUG_DEFINE_p = /DNDEBUG\r | |
220 | !endif\r | |
a7ebaf0d KO |
221 | !if "$(USE_EXCEPTIONS)" == "0"\r |
222 | __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS\r | |
223 | !endif\r | |
224 | !if "$(USE_RTTI)" == "0"\r | |
225 | __RTTI_DEFINE_p = /DwxNO_RTTI\r | |
226 | !endif\r | |
227 | !if "$(USE_THREADS)" == "0"\r | |
228 | __THREAD_DEFINE_p = /DwxNO_THREADS\r | |
229 | !endif\r | |
230 | !if "$(UNICODE)" == "0"\r | |
231 | __UNICODE_DEFINE_p = /DwxUSE_UNICODE=0\r | |
232 | !endif\r | |
233 | !if "$(UNICODE)" == "1"\r | |
234 | __UNICODE_DEFINE_p = /D_UNICODE\r | |
235 | !endif\r | |
236 | !if "$(MSLU)" == "1"\r | |
237 | __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1\r | |
238 | !endif\r | |
f82b7036 KO |
239 | !if "$(USE_CAIRO)" == "1"\r |
240 | ____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo\r | |
241 | !endif\r | |
a7ebaf0d KO |
242 | !if "$(SHARED)" == "1"\r |
243 | __DLLFLAG_p = /DWXUSINGDLL\r | |
244 | !endif\r | |
245 | !if "$(MONOLITHIC)" == "0"\r | |
246 | __WXLIB_NET_p = \\r | |
247 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib\r | |
248 | !endif\r | |
249 | !if "$(MONOLITHIC)" == "0"\r | |
250 | __WXLIB_BASE_p = \\r | |
251 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
252 | !endif\r | |
253 | !if "$(MONOLITHIC)" == "1"\r | |
254 | __WXLIB_MONO_p = \\r | |
255 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
256 | !endif\r | |
57c74474 VZ |
257 | !if "$(MONOLITHIC)" == "1"\r |
258 | __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r | |
259 | !endif\r | |
260 | !if "$(USE_GUI)" == "1"\r | |
261 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
262 | !endif\r | |
a7ebaf0d KO |
263 | !if "$(MSLU)" == "1"\r |
264 | __UNICOWS_LIB_p = unicows.lib\r | |
265 | !endif\r | |
f82b7036 KO |
266 | !if "$(USE_CAIRO)" == "1"\r |
267 | __CAIRO_LIB_p = cairo.lib\r | |
268 | !endif\r | |
269 | !if "$(USE_CAIRO)" == "1"\r | |
270 | ____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib\r | |
271 | !endif\r | |
a7ebaf0d KO |
272 | \r |
273 | \r | |
274 | all: $(OBJS)\r | |
275 | $(OBJS):\r | |
276 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
277 | \r | |
278 | ### Targets: ###\r | |
279 | \r | |
280 | all: $(OBJS)\bench.exe data\r | |
281 | \r | |
282 | clean: \r | |
283 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
284 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
285 | -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r | |
286 | -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r | |
287 | -if exist $(OBJS)\bench.ilk del $(OBJS)\bench.ilk\r | |
288 | -if exist $(OBJS)\bench.pdb del $(OBJS)\bench.pdb\r | |
289 | \r | |
290 | $(OBJS)\bench.exe: $(BENCH_OBJECTS)\r | |
f82b7036 | 291 | link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\bench.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<\r |
57c74474 | 292 | $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib\r |
a7ebaf0d KO |
293 | <<\r |
294 | \r | |
295 | data: \r | |
296 | if not exist $(OBJS) mkdir $(OBJS)\r | |
297 | for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r | |
298 | \r | |
299 | $(OBJS)\bench_bench.obj: .\bench.cpp\r | |
300 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp\r | |
301 | \r | |
302 | $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp\r | |
303 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp\r | |
304 | \r | |
305 | $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp\r | |
306 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp\r | |
307 | \r | |
308 | $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp\r | |
309 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp\r | |
310 | \r | |
311 | $(OBJS)\bench_mbconv.obj: .\mbconv.cpp\r | |
312 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\mbconv.cpp\r | |
313 | \r | |
314 | $(OBJS)\bench_strings.obj: .\strings.cpp\r | |
315 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp\r | |
316 | \r | |
317 | $(OBJS)\bench_tls.obj: .\tls.cpp\r | |
318 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\tls.cpp\r | |
319 | \r | |
320 | $(OBJS)\bench_printfbench.obj: .\printfbench.cpp\r | |
321 | $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\printfbench.cpp\r | |
322 | \r |