]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.gcc
added wxString benchmark using 2.8's HTML parser
[wxWidgets.git] / tests / benchmarks / makefile.gcc
CommitLineData
dc2ae355
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.3 (http://www.bakefile.org)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30BENCH_OBJECTS = \
31 $(OBJS)\bench_bench.o \
c21faa0a
VS
32 $(OBJS)\bench_htmlpars.o \
33 $(OBJS)\bench_htmltag.o \
49f11e84
VZ
34 $(OBJS)\bench_strings.o \
35 $(OBJS)\bench_tls.o
dc2ae355
VZ
36
37### Conditionally set variables: ###
38
39ifeq ($(GCC_VERSION),2.95)
40GCCFLAGS = -fvtable-thunks
41endif
42ifeq ($(USE_GUI),0)
43PORTNAME = base
44endif
45ifeq ($(USE_GUI),1)
46PORTNAME = msw
47endif
48ifeq ($(BUILD),debug)
49ifeq ($(DEBUG_FLAG),default)
50WXDEBUGFLAG = d
51endif
52endif
53ifeq ($(DEBUG_FLAG),1)
54WXDEBUGFLAG = d
55endif
56ifeq ($(UNICODE),1)
57WXUNICODEFLAG = u
58endif
59ifeq ($(WXUNIV),1)
60WXUNIVNAME = univ
61endif
62ifeq ($(SHARED),1)
63WXDLLFLAG = dll
64endif
65ifeq ($(SHARED),0)
66LIBTYPE_SUFFIX = lib
67endif
68ifeq ($(SHARED),1)
69LIBTYPE_SUFFIX = dll
70endif
71ifeq ($(MONOLITHIC),0)
72EXTRALIBS_FOR_BASE =
73endif
74ifeq ($(MONOLITHIC),1)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(BUILD),debug)
78__OPTIMIZEFLAG_2 = -O0
79endif
80ifeq ($(BUILD),release)
81__OPTIMIZEFLAG_2 = -O2
82endif
83ifeq ($(USE_RTTI),0)
84__RTTIFLAG_5 = -fno-rtti
85endif
86ifeq ($(USE_RTTI),1)
87__RTTIFLAG_5 =
88endif
89ifeq ($(USE_EXCEPTIONS),0)
90__EXCEPTIONSFLAG_6 = -fno-exceptions
91endif
92ifeq ($(USE_EXCEPTIONS),1)
93__EXCEPTIONSFLAG_6 =
94endif
95ifeq ($(WXUNIV),1)
96__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
97endif
98ifeq ($(BUILD),debug)
99ifeq ($(DEBUG_FLAG),default)
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101endif
102endif
103ifeq ($(DEBUG_FLAG),1)
104__DEBUG_DEFINE_p = -D__WXDEBUG__
105endif
106ifeq ($(USE_EXCEPTIONS),0)
107__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
108endif
109ifeq ($(USE_RTTI),0)
110__RTTI_DEFINE_p = -DwxNO_RTTI
111endif
112ifeq ($(USE_THREADS),0)
113__THREAD_DEFINE_p = -DwxNO_THREADS
114endif
115ifeq ($(UNICODE),0)
116__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
117endif
118ifeq ($(UNICODE),1)
119__UNICODE_DEFINE_p = -D_UNICODE
120endif
121ifeq ($(MSLU),1)
122__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
123endif
124ifeq ($(USE_GDIPLUS),1)
125__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
126endif
127ifeq ($(SHARED),1)
128__DLLFLAG_p = -DWXUSINGDLL
129endif
130ifeq ($(MONOLITHIC),0)
131__WXLIB_BASE_p = \
132 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133endif
134ifeq ($(MONOLITHIC),1)
135__WXLIB_MONO_p = \
136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
137endif
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
140endif
141ifeq ($(USE_GDIPLUS),1)
142__GDIPLUS_LIB_p = -lgdiplus
143endif
144ifeq ($(BUILD),debug)
145ifeq ($(DEBUG_INFO),default)
146__DEBUGINFO = -g
147endif
148endif
149ifeq ($(BUILD),release)
150ifeq ($(DEBUG_INFO),default)
151__DEBUGINFO =
152endif
153endif
154ifeq ($(DEBUG_INFO),0)
155__DEBUGINFO =
156endif
157ifeq ($(DEBUG_INFO),1)
158__DEBUGINFO = -g
159endif
160ifeq ($(USE_THREADS),0)
161__THREADSFLAG =
162endif
163ifeq ($(USE_THREADS),1)
164__THREADSFLAG = -mthreads
165endif
166
167
168all: $(OBJS)
169$(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172### Targets: ###
173
c21faa0a 174all: $(OBJS)\bench.exe data
dc2ae355
VZ
175
176clean:
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
178 -if exist $(OBJS)\*.d del $(OBJS)\*.d
179 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
180
181$(OBJS)\bench.exe: $(BENCH_OBJECTS)
182 $(CXX) -o $@ $(BENCH_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
183
c21faa0a
VS
184data:
185 if not exist $(OBJS) mkdir $(OBJS)
186 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
187
dc2ae355
VZ
188$(OBJS)\bench_bench.o: ./bench.cpp
189 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
190
c21faa0a
VS
191$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
192 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
193
194$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
195 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
196
dc2ae355
VZ
197$(OBJS)\bench_strings.o: ./strings.cpp
198 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
199
49f11e84
VZ
200$(OBJS)\bench_tls.o: ./tls.cpp
201 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
202
c21faa0a 203.PHONY: all clean data
dc2ae355
VZ
204
205
206SHELL := $(COMSPEC)
207
208# Dependencies tracking:
209-include $(OBJS)/*.d