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 "$(MONOLITHIC)" == "1" && "$(USE_STC)" == "1"
144 __LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib
146 !if "$(USE_GUI)" == "1"
147 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
149 !if "$(USE_GUI)" == "1"
150 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
152 !if "$(BUILD)" == "debug"
155 !if "$(BUILD)" == "release"
158 !if "$(USE_THREADS)" == "0"
161 !if "$(USE_THREADS)" == "1"
164 !if "$(USE_THREADS)" == "0"
167 !if "$(USE_THREADS)" == "1"
168 __THREADSFLAG_0 = -tWM
170 !if "$(RUNTIME_LIBS)" == "dynamic"
171 __RUNTIME_LIBS = -tWR
173 !if "$(RUNTIME_LIBS)" == "static"
176 !if "$(RUNTIME_LIBS)" == "dynamic"
179 !if "$(RUNTIME_LIBS)" == "static"
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
185 !if "$(DEBUG_FLAG)" == "0"
186 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
188 !if "$(BUILD)" == "release"
189 __NDEBUG_DEFINE_p = -DNDEBUG
191 !if "$(USE_EXCEPTIONS)" == "0"
192 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
194 !if "$(USE_RTTI)" == "0"
195 __RTTI_DEFINE_p = -DwxNO_RTTI
197 !if "$(USE_THREADS)" == "0"
198 __THREAD_DEFINE_p = -DwxNO_THREADS
200 !if "$(UNICODE)" == "0"
201 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
203 !if "$(UNICODE)" == "1"
204 __UNICODE_DEFINE_p = -D_UNICODE
207 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
209 !if "$(USE_CAIRO)" == "1"
210 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
212 !if "$(SHARED)" == "1"
213 __DLLFLAG_p = -DWXUSINGDLL
215 !if "$(MONOLITHIC)" == "0"
217 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
219 !if "$(MONOLITHIC)" == "1"
221 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
223 !if "$(USE_GUI)" == "1"
224 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
227 __UNICOWS_LIB_p = unicows.lib
229 !if "$(USE_CAIRO)" == "1"
230 __CAIRO_LIB_p = cairo.lib
232 !if "$(USE_CAIRO)" == "1"
233 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
235 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
238 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
241 !if "$(DEBUG_INFO)" == "0"
244 !if "$(DEBUG_INFO)" == "1"
251 -if not exist $(OBJS) mkdir $(OBJS)
255 all: $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
258 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
259 -if exist $(OBJS)\*.res del $(OBJS)\*.res
260 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
261 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
262 -if exist $(OBJS)\bench.tds del $(OBJS)\bench.tds
263 -if exist $(OBJS)\bench.ilc del $(OBJS)\bench.ilc
264 -if exist $(OBJS)\bench.ild del $(OBJS)\bench.ild
265 -if exist $(OBJS)\bench.ilf del $(OBJS)\bench.ilf
266 -if exist $(OBJS)\bench.ils del $(OBJS)\bench.ils
267 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
268 -if exist $(OBJS)\bench_gui.tds del $(OBJS)\bench_gui.tds
269 -if exist $(OBJS)\bench_gui.ilc del $(OBJS)\bench_gui.ilc
270 -if exist $(OBJS)\bench_gui.ild del $(OBJS)\bench_gui.ild
271 -if exist $(OBJS)\bench_gui.ilf del $(OBJS)\bench_gui.ilf
272 -if exist $(OBJS)\bench_gui.ils del $(OBJS)\bench_gui.ils
274 $(OBJS)\bench.exe: $(BENCH_OBJECTS)
275 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
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,,
280 if not exist $(OBJS) mkdir $(OBJS)
281 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
283 !if "$(USE_GUI)" == "1"
284 $(OBJS)\bench_gui.exe: $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
285 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
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
291 if not exist $(OBJS) mkdir $(OBJS)
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)
294 $(OBJS)\bench_bench.obj: .\bench.cpp
295 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\bench.cpp
297 $(OBJS)\bench_datetime.obj: .\datetime.cpp
298 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\datetime.cpp
300 $(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
301 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
303 $(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
304 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
306 $(OBJS)\bench_ipcclient.obj: .\ipcclient.cpp
307 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\ipcclient.cpp
309 $(OBJS)\bench_log.obj: .\log.cpp
310 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\log.cpp
312 $(OBJS)\bench_mbconv.obj: .\mbconv.cpp
313 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\mbconv.cpp
315 $(OBJS)\bench_strings.obj: .\strings.cpp
316 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\strings.cpp
318 $(OBJS)\bench_tls.obj: .\tls.cpp
319 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\tls.cpp
321 $(OBJS)\bench_printfbench.obj: .\printfbench.cpp
322 $(CXX) -q -c -P -o$@ $(BENCH_CXXFLAGS) .\printfbench.cpp
324 $(OBJS)\bench_gui_sample.res: .\..\..\samples\sample.rc
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
327 $(OBJS)\bench_gui_bench.obj: .\bench.cpp
328 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\bench.cpp
330 $(OBJS)\bench_gui_image.obj: .\image.cpp
331 $(CXX) -q -c -P -o$@ $(BENCH_GUI_CXXFLAGS) .\image.cpp