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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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)
58 $(OBJS)\bench_gui_bench.obj \
59 $(OBJS)\bench_gui_image.obj
61 ### Conditionally set variables: ###
63 !if "$(USE_GUI)" == "0"
66 !if "$(USE_GUI)" == "1"
67 PORTNAME = msw$(TOOLKIT_VERSION)
69 !if "$(OFFICIAL_BUILD)" == "1"
70 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
72 !if "$(BUILD)" == "debug"
75 !if "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
81 !if "$(SHARED)" == "1"
84 !if "$(SHARED)" == "0"
87 !if "$(SHARED)" == "1"
90 !if "$(MONOLITHIC)" == "0"
93 !if "$(MONOLITHIC)" == "1"
96 !if "$(MONOLITHIC)" == "0"
98 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
100 !if "$(MONOLITHIC)" == "1"
101 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
103 !if "$(USE_GUI)" == "1"
104 __bench_gui___depname = $(OBJS)\bench_gui.exe
106 !if "$(WXUNIV)" == "1"
107 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
109 !if "$(DEBUG_FLAG)" == "0"
110 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
112 !if "$(BUILD)" == "release"
113 __NDEBUG_DEFINE_p_3 = -dNDEBUG
115 !if "$(USE_EXCEPTIONS)" == "0"
116 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
118 !if "$(USE_RTTI)" == "0"
119 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
121 !if "$(USE_THREADS)" == "0"
122 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
124 !if "$(UNICODE)" == "0"
125 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p_3 = -d_UNICODE
131 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
133 !if "$(USE_CAIRO)" == "1"
134 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
136 !if "$(SHARED)" == "1"
137 __DLLFLAG_p_3 = -dWXUSINGDLL
139 !if "$(MONOLITHIC)" == "0"
141 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
143 !if "$(USE_GUI)" == "1"
144 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
146 !if "$(USE_GUI)" == "1"
147 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
149 !if "$(BUILD)" == "debug"
152 !if "$(BUILD)" == "release"
155 !if "$(USE_THREADS)" == "0"
158 !if "$(USE_THREADS)" == "1"
161 !if "$(USE_THREADS)" == "0"
164 !if "$(USE_THREADS)" == "1"
165 __THREADSFLAG_0 = -tWM
167 !if "$(RUNTIME_LIBS)" == "dynamic"
168 __RUNTIME_LIBS = -tWR
170 !if "$(RUNTIME_LIBS)" == "static"
173 !if "$(RUNTIME_LIBS)" == "dynamic"
176 !if "$(RUNTIME_LIBS)" == "static"
179 !if "$(WXUNIV)" == "1"
180 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
182 !if "$(DEBUG_FLAG)" == "0"
183 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
185 !if "$(BUILD)" == "release"
186 __NDEBUG_DEFINE_p = -DNDEBUG
188 !if "$(USE_EXCEPTIONS)" == "0"
189 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
191 !if "$(USE_RTTI)" == "0"
192 __RTTI_DEFINE_p = -DwxNO_RTTI
194 !if "$(USE_THREADS)" == "0"
195 __THREAD_DEFINE_p = -DwxNO_THREADS
197 !if "$(UNICODE)" == "0"
198 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
200 !if "$(UNICODE)" == "1"
201 __UNICODE_DEFINE_p = -D_UNICODE
204 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
206 !if "$(USE_CAIRO)" == "1"
207 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
209 !if "$(SHARED)" == "1"
210 __DLLFLAG_p = -DWXUSINGDLL
212 !if "$(MONOLITHIC)" == "0"
214 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
216 !if "$(MONOLITHIC)" == "1"
218 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
220 !if "$(USE_GUI)" == "1"
221 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
224 __UNICOWS_LIB_p = unicows.lib
226 !if "$(USE_CAIRO)" == "1"
227 __CAIRO_LIB_p = cairo.lib
229 !if "$(USE_CAIRO)" == "1"
230 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
232 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
235 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
238 !if "$(DEBUG_INFO)" == "0"
241 !if "$(DEBUG_INFO)" == "1"
248 -if not exist $(OBJS) mkdir $(OBJS)
252 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res
257 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
258 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
259 -if exist $(OBJS)\bench.tds del $(OBJS)\bench.tds
260 -if exist $(OBJS)\bench.ilc del $(OBJS)\bench.ilc
261 -if exist $(OBJS)\bench.ild del $(OBJS)\bench.ild
262 -if exist $(OBJS)\bench.ilf del $(OBJS)\bench.ilf
263 -if exist $(OBJS)\bench.ils del $(OBJS)\bench.ils
264 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
265 -if exist $(OBJS)\bench_gui.tds del $(OBJS)\bench_gui.tds
266 -if exist $(OBJS)\bench_gui.ilc del $(OBJS)\bench_gui.ilc
267 -if exist $(OBJS)\bench_gui.ild del $(OBJS)\bench_gui.ild
268 -if exist $(OBJS)\bench_gui.ilf del $(OBJS)\bench_gui.ilf
269 -if exist $(OBJS)\bench_gui.ils del $(OBJS)\bench_gui.ils
271 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
272 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
273 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 if not exist $(OBJS) mkdir $(OBJS)
278 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
280 !if "$(USE_GUI)" == "1"
281 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
282 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
283 c0x32.obj $(BENCH_GUI_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_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
288 if not exist $(OBJS) mkdir $(OBJS)
289 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)
291 $(OBJS)\bench_bench.obj: .\bench.cpp
292 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\bench.cpp
294 $(OBJS)\bench_datetime.obj: .\datetime.cpp
295 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\datetime.cpp
297 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
298 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
300 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
301 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
303 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
304 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
306 $(OBJS)\bench_log.obj: .\log.cpp
307 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\log.cpp
309 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
310 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
312 $(OBJS)\bench_strings.obj: .\strings.cpp
313 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\strings.cpp
315 $(OBJS)\bench_tls.obj: .\tls.cpp
316 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\tls.cpp
318 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
319 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
321 $(OBJS)\bench_gui_sample.res: .\..\..\samples\sample.rc
322 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
324 $(OBJS)\bench_gui_bench.obj: .\bench.cpp
325 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\bench.cpp
327 $(OBJS)\bench_gui_image.obj: .\image.cpp
328 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\image.cpp