]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.wat
Include <fcntl.h> from a header using fcntl().
[wxWidgets.git] / tests / benchmarks / makefile.wat
CommitLineData
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.wat\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13# Speed up compilation a bit:\r
14!ifdef __LOADDLL__\r
15! loaddll wcc wccd\r
16! loaddll wccaxp wccdaxp\r
17! loaddll wcc386 wccd386\r
18! loaddll wpp wppdi86\r
19! loaddll wppaxp wppdaxp\r
20! loaddll wpp386 wppd386\r
21! if $(__VERSION__) >= 1280\r
22! loaddll wlink wlinkd\r
23! else\r
24! loaddll wlink wlink\r
25! endif\r
26! loaddll wlib wlibd\r
27!endif\r
28\r
29# We need these variables in some bakefile-made rules:\r
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r
31\r
32### Conditionally set variables: ###\r
33\r
22a3b6e4
VZ
34WIN32_TOOLKIT_LOWERCASE =
35!ifeq TOOLKIT GTK
36WIN32_TOOLKIT_LOWERCASE = gtk
37!endif
38!ifeq TOOLKIT MSW
39WIN32_TOOLKIT_LOWERCASE = msw
40!endif
a7ebaf0d
KO
41PORTNAME =\r
42!ifeq USE_GUI 0\r
43PORTNAME = base\r
44!endif\r
45!ifeq USE_GUI 1\r
22a3b6e4
VZ
46PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47!endif
48WXBASEPORT =
49!ifeq TOOLKIT MAC
50WXBASEPORT = _carbon
51!endif
14b682f7
VZ
52COMPILER_VERSION =
53!ifeq OFFICIAL_BUILD 1
54COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 55!endif\r
a7ebaf0d
KO
56WXDEBUGFLAG =\r
57!ifeq BUILD debug\r
58WXDEBUGFLAG = d\r
59!endif\r
60WXUNICODEFLAG =\r
61!ifeq UNICODE 1\r
62WXUNICODEFLAG = u\r
63!endif\r
64WXUNIVNAME =\r
65!ifeq WXUNIV 1\r
66WXUNIVNAME = univ\r
67!endif\r
68WXDLLFLAG =\r
69!ifeq SHARED 1\r
70WXDLLFLAG = dll\r
71!endif\r
72LIBTYPE_SUFFIX =\r
73!ifeq SHARED 0\r
74LIBTYPE_SUFFIX = lib\r
75!endif\r
76!ifeq SHARED 1\r
77LIBTYPE_SUFFIX = dll\r
78!endif\r
79EXTRALIBS_FOR_BASE =\r
80!ifeq MONOLITHIC 0\r
81EXTRALIBS_FOR_BASE = \r
82!endif\r
83!ifeq MONOLITHIC 1\r
51ec29ea 84EXTRALIBS_FOR_BASE = \r
a7ebaf0d 85!endif\r
7b363ab6
VZ
86LIB_GTK =
87!ifeq TOOLKIT GTK
88!ifeq TOOLKIT_VERSION 2
89LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib &
90 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib &
91 glib-2.0.lib
92!endif
93!endif
94__WXLIB_NET_p =
95!ifeq MONOLITHIC 0
96__WXLIB_NET_p = &
97 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
98!endif
99__LIB_PNG_IF_MONO_p =
100!ifeq MONOLITHIC 1
101__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
102!endif
103__bench_gui___depname =
104!ifeq USE_GUI 1
105__bench_gui___depname = $(OBJS)\bench_gui.exe
106!endif
107__WXLIB_CORE_p =
108!ifeq MONOLITHIC 0
109__WXLIB_CORE_p = &
110 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
111!endif
112__LIB_TIFF_p =
113!ifeq USE_GUI 1
114__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
115!endif
116__LIB_JPEG_p =
117!ifeq USE_GUI 1
118__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
119!endif
120__DEBUGINFO =
a7ebaf0d
KO
121!ifeq BUILD debug\r
122!ifeq DEBUG_INFO default\r
7b363ab6 123__DEBUGINFO = -d2
a7ebaf0d
KO
124!endif\r
125!endif\r
126!ifeq BUILD release\r
127!ifeq DEBUG_INFO default\r
7b363ab6 128__DEBUGINFO = -d0
a7ebaf0d
KO
129!endif\r
130!endif\r
131!ifeq DEBUG_INFO 0\r
7b363ab6 132__DEBUGINFO = -d0
a7ebaf0d
KO
133!endif\r
134!ifeq DEBUG_INFO 1\r
7b363ab6 135__DEBUGINFO = -d2
a7ebaf0d
KO
136!endif\r
137__DEBUGINFO_1 =\r
138!ifeq BUILD debug\r
139!ifeq DEBUG_INFO default\r
140__DEBUGINFO_1 = debug all\r
141!endif\r
142!endif\r
143!ifeq BUILD release\r
144!ifeq DEBUG_INFO default\r
145__DEBUGINFO_1 = \r
146!endif\r
147!endif\r
148!ifeq DEBUG_INFO 0\r
149__DEBUGINFO_1 = \r
150!endif\r
151!ifeq DEBUG_INFO 1\r
152__DEBUGINFO_1 = debug all\r
153!endif\r
7b363ab6 154__OPTIMIZEFLAG =
a7ebaf0d 155!ifeq BUILD debug\r
7b363ab6 156__OPTIMIZEFLAG = -od
a7ebaf0d
KO
157!endif\r
158!ifeq BUILD release\r
7b363ab6 159__OPTIMIZEFLAG = -ot -ox
a7ebaf0d 160!endif\r
7b363ab6 161__THREADSFLAG =
a7ebaf0d 162!ifeq USE_THREADS 0\r
7b363ab6 163__THREADSFLAG =
a7ebaf0d
KO
164!endif\r
165!ifeq USE_THREADS 1\r
7b363ab6 166__THREADSFLAG = -bm
a7ebaf0d 167!endif\r
7b363ab6 168__RUNTIME_LIBS =
a7ebaf0d 169!ifeq RUNTIME_LIBS dynamic\r
7b363ab6 170__RUNTIME_LIBS = -br
a7ebaf0d
KO
171!endif\r
172!ifeq RUNTIME_LIBS static\r
7b363ab6 173__RUNTIME_LIBS =
a7ebaf0d 174!endif\r
7b363ab6 175__RTTIFLAG =
a7ebaf0d 176!ifeq USE_RTTI 0\r
7b363ab6 177__RTTIFLAG =
a7ebaf0d
KO
178!endif\r
179!ifeq USE_RTTI 1\r
7b363ab6 180__RTTIFLAG = -xr
a7ebaf0d 181!endif\r
7b363ab6 182__EXCEPTIONSFLAG =
a7ebaf0d 183!ifeq USE_EXCEPTIONS 0\r
7b363ab6 184__EXCEPTIONSFLAG =
a7ebaf0d
KO
185!endif\r
186!ifeq USE_EXCEPTIONS 1\r
7b363ab6
VZ
187__EXCEPTIONSFLAG = -xs
188!endif
189__WXLIB_BASE_p =
190!ifeq MONOLITHIC 0
191__WXLIB_BASE_p = &
192 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
193!endif
194__WXLIB_MONO_p =
195!ifeq MONOLITHIC 1
196__WXLIB_MONO_p = &
197 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
198!endif
199__LIB_PNG_p =
200!ifeq USE_GUI 1
201__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
202!endif
203__CAIRO_LIB_p =
204!ifeq USE_CAIRO 1
205__CAIRO_LIB_p = cairo.lib
206!endif
207____CAIRO_LIBDIR_FILENAMES =
208!ifeq USE_CAIRO 1
209____CAIRO_LIBDIR_FILENAMES = libpath $(CAIRO_ROOT)\lib
a7ebaf0d
KO
210!endif\r
211__WXUNIV_DEFINE_p =\r
212!ifeq WXUNIV 1\r
213__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
214!endif\r
215__DEBUG_DEFINE_p =\r
216!ifeq DEBUG_FLAG 0\r
217__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
218!endif\r
da8b1d4b
KO
219__NDEBUG_DEFINE_p =\r
220!ifeq BUILD release\r
221__NDEBUG_DEFINE_p = -dNDEBUG\r
222!endif\r
a7ebaf0d
KO
223__EXCEPTIONS_DEFINE_p =\r
224!ifeq USE_EXCEPTIONS 0\r
225__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
226!endif\r
227__RTTI_DEFINE_p =\r
228!ifeq USE_RTTI 0\r
229__RTTI_DEFINE_p = -dwxNO_RTTI\r
230!endif\r
231__THREAD_DEFINE_p =\r
232!ifeq USE_THREADS 0\r
233__THREAD_DEFINE_p = -dwxNO_THREADS\r
234!endif\r
235__UNICODE_DEFINE_p =\r
236!ifeq UNICODE 0\r
237__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
238!endif\r
239!ifeq UNICODE 1\r
240__UNICODE_DEFINE_p = -d_UNICODE\r
241!endif\r
7b363ab6 242____CAIRO_INCLUDEDIR_FILENAMES =
f82b7036 243!ifeq USE_CAIRO 1\r
7b363ab6 244____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
f82b7036 245!endif\r
a7ebaf0d
KO
246__DLLFLAG_p =\r
247!ifeq SHARED 1\r
248__DLLFLAG_p = -dWXUSINGDLL\r
249!endif\r
a7ebaf0d
KO
250\r
251### Variables: ###\r
252\r
253WX_RELEASE_NODOT = 29\r
254COMPILER_PREFIX = wat\r
255OBJS = &\r
14b682f7
VZ
256 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
257LIBDIRNAME = &
258 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
a7ebaf0d
KO
259SETUPHDIR = &\r
260 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
7b363ab6
VZ
261BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
262 $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
22a3b6e4
VZ
263 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
264 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
7b363ab6 265 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
22a3b6e4 266 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
7b363ab6 267 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
a7ebaf0d
KO
268BENCH_OBJECTS = &\r
269 $(OBJS)\bench_bench.obj &\r
bf0f3b26 270 $(OBJS)\bench_datetime.obj &\r
a7ebaf0d
KO
271 $(OBJS)\bench_htmlpars.obj &\r
272 $(OBJS)\bench_htmltag.obj &\r
273 $(OBJS)\bench_ipcclient.obj &\r
f7f7b59a 274 $(OBJS)\bench_log.obj &\r
a7ebaf0d
KO
275 $(OBJS)\bench_mbconv.obj &\r
276 $(OBJS)\bench_strings.obj &\r
277 $(OBJS)\bench_tls.obj &\r
278 $(OBJS)\bench_printfbench.obj\r
7b363ab6
VZ
279BENCH_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
280 $(__RUNTIME_LIBS) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
281 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
282 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
283 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx &
284 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples &
285 -dNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
286BENCH_GUI_OBJECTS = &
287 $(OBJS)\bench_gui_bench.obj &
288 $(OBJS)\bench_gui_image.obj
a7ebaf0d
KO
289\r
290\r
291all : $(OBJS)\r
292$(OBJS) :\r
293 -if not exist $(OBJS) mkdir $(OBJS)\r
294\r
295### Targets: ###\r
296\r
7b363ab6 297all : .SYMBOLIC $(OBJS)\bench.exe data $(__bench_gui___depname) data-image
a7ebaf0d
KO
298\r
299clean : .SYMBOLIC \r
300 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
301 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
302 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
303 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
304 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
305 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r
7b363ab6 306 -if exist $(OBJS)\bench_gui.exe del $(OBJS)\bench_gui.exe
a7ebaf0d
KO
307\r
308$(OBJS)\bench.exe : $(BENCH_OBJECTS)\r
309 @%create $(OBJS)\bench.lbc\r
310 @%append $(OBJS)\bench.lbc option quiet\r
311 @%append $(OBJS)\bench.lbc name $^@\r
312 @%append $(OBJS)\bench.lbc option caseexact\r
7b363ab6 313 @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
a7ebaf0d 314 @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r
57c74474 315 @for %i in ( $(__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) $(__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) do @%append $(OBJS)\bench.lbc library %i\r
a7ebaf0d
KO
316 @%append $(OBJS)\bench.lbc\r
317 @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r
318 wlink @$(OBJS)\bench.lbc\r
319\r
320data : .SYMBOLIC \r
321 if not exist $(OBJS) mkdir $(OBJS)\r
322 for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r
323\r
7b363ab6
VZ
324!ifeq USE_GUI 1
325$(OBJS)\bench_gui.exe : $(BENCH_GUI_OBJECTS) $(OBJS)\bench_gui_sample.res
326 @%create $(OBJS)\bench_gui.lbc
327 @%append $(OBJS)\bench_gui.lbc option quiet
328 @%append $(OBJS)\bench_gui.lbc name $^@
329 @%append $(OBJS)\bench_gui.lbc option caseexact
330 @%append $(OBJS)\bench_gui.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS)
331 @for %i in ($(BENCH_GUI_OBJECTS)) do @%append $(OBJS)\bench_gui.lbc file %i
332 @for %i in ( $(__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) $(__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) do @%append $(OBJS)\bench_gui.lbc library %i
333 @%append $(OBJS)\bench_gui.lbc option resource=$(OBJS)\bench_gui_sample.res
334 @for %i in () do @%append $(OBJS)\bench_gui.lbc option stack=%i
335 wlink @$(OBJS)\bench_gui.lbc
336!endif
337
338data-image : .SYMBOLIC
339 if not exist $(OBJS) mkdir $(OBJS)
340 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)
341
a7ebaf0d
KO
342$(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r
343 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
344\r
bf0f3b26
VZ
345$(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r
346 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
347\r
a7ebaf0d
KO
348$(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r
349 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
350\r
351$(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp\r
352 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
353\r
354$(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r
355 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
356\r
f7f7b59a
VZ
357$(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r
358 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
359\r
a7ebaf0d
KO
360$(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r
361 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
362\r
363$(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp\r
364 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
365\r
366$(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp\r
367 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
368\r
369$(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r
370 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r
371\r
7b363ab6
VZ
372$(OBJS)\bench_gui_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
373 wrc -q -ad -bt=nt -r -fo=$^@ -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
374
375$(OBJS)\bench_gui_bench.obj : .AUTODEPEND .\bench.cpp
376 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<
377
378$(OBJS)\bench_gui_image.obj : .AUTODEPEND .\image.cpp
379 $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_GUI_CXXFLAGS) $<