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