]> git.saurik.com Git - wxWidgets.git/blame - tests/benchmarks/makefile.gcc
don't use WPARAM in the header (build fix after r59336)
[wxWidgets.git] / tests / benchmarks / makefile.gcc
CommitLineData
dc2ae355
VZ
1# =========================================================================
2# This makefile was generated by
506e9b7e 3# Bakefile 0.2.5 (http://www.bakefile.org)
dc2ae355
VZ
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
8ece421c 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
dc2ae355
VZ
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 \
65669e31 34 $(OBJS)\bench_ipcclient.o \
3e356d41 35 $(OBJS)\bench_mbconv.o \
49f11e84
VZ
36 $(OBJS)\bench_strings.o \
37 $(OBJS)\bench_tls.o
dc2ae355
VZ
38
39### Conditionally set variables: ###
40
41ifeq ($(GCC_VERSION),2.95)
42GCCFLAGS = -fvtable-thunks
43endif
44ifeq ($(USE_GUI),0)
45PORTNAME = base
46endif
47ifeq ($(USE_GUI),1)
48PORTNAME = msw
49endif
50ifeq ($(BUILD),debug)
51ifeq ($(DEBUG_FLAG),default)
52WXDEBUGFLAG = d
53endif
54endif
55ifeq ($(DEBUG_FLAG),1)
56WXDEBUGFLAG = d
57endif
58ifeq ($(UNICODE),1)
59WXUNICODEFLAG = u
60endif
61ifeq ($(WXUNIV),1)
62WXUNIVNAME = univ
63endif
64ifeq ($(SHARED),1)
65WXDLLFLAG = dll
66endif
67ifeq ($(SHARED),0)
68LIBTYPE_SUFFIX = lib
69endif
70ifeq ($(SHARED),1)
71LIBTYPE_SUFFIX = dll
72endif
73ifeq ($(MONOLITHIC),0)
74EXTRALIBS_FOR_BASE =
75endif
76ifeq ($(MONOLITHIC),1)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(BUILD),debug)
80__OPTIMIZEFLAG_2 = -O0
81endif
82ifeq ($(BUILD),release)
83__OPTIMIZEFLAG_2 = -O2
84endif
85ifeq ($(USE_RTTI),0)
86__RTTIFLAG_5 = -fno-rtti
87endif
88ifeq ($(USE_RTTI),1)
89__RTTIFLAG_5 =
90endif
91ifeq ($(USE_EXCEPTIONS),0)
92__EXCEPTIONSFLAG_6 = -fno-exceptions
93endif
94ifeq ($(USE_EXCEPTIONS),1)
95__EXCEPTIONSFLAG_6 =
96endif
97ifeq ($(WXUNIV),1)
98__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
99endif
100ifeq ($(BUILD),debug)
101ifeq ($(DEBUG_FLAG),default)
102__DEBUG_DEFINE_p = -D__WXDEBUG__
103endif
104endif
105ifeq ($(DEBUG_FLAG),1)
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107endif
108ifeq ($(USE_EXCEPTIONS),0)
109__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
110endif
111ifeq ($(USE_RTTI),0)
112__RTTI_DEFINE_p = -DwxNO_RTTI
113endif
114ifeq ($(USE_THREADS),0)
115__THREAD_DEFINE_p = -DwxNO_THREADS
116endif
117ifeq ($(UNICODE),0)
118__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
119endif
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p = -D_UNICODE
122endif
123ifeq ($(MSLU),1)
124__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
125endif
126ifeq ($(USE_GDIPLUS),1)
127__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
128endif
129ifeq ($(SHARED),1)
130__DLLFLAG_p = -DWXUSINGDLL
131endif
132ifeq ($(MONOLITHIC),0)
133__WXLIB_BASE_p = \
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
135endif
65669e31
VZ
136ifeq ($(MONOLITHIC),0)
137__WXLIB_NET_p = \
138 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
139endif
dc2ae355
VZ
140ifeq ($(MONOLITHIC),1)
141__WXLIB_MONO_p = \
142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
143endif
144ifeq ($(MSLU),1)
145__UNICOWS_LIB_p = -lunicows
146endif
147ifeq ($(USE_GDIPLUS),1)
148__GDIPLUS_LIB_p = -lgdiplus
149endif
150ifeq ($(BUILD),debug)
151ifeq ($(DEBUG_INFO),default)
152__DEBUGINFO = -g
153endif
154endif
155ifeq ($(BUILD),release)
156ifeq ($(DEBUG_INFO),default)
157__DEBUGINFO =
158endif
159endif
160ifeq ($(DEBUG_INFO),0)
161__DEBUGINFO =
162endif
163ifeq ($(DEBUG_INFO),1)
164__DEBUGINFO = -g
165endif
166ifeq ($(USE_THREADS),0)
167__THREADSFLAG =
168endif
169ifeq ($(USE_THREADS),1)
170__THREADSFLAG = -mthreads
171endif
172
173
174all: $(OBJS)
175$(OBJS):
176 -if not exist $(OBJS) mkdir $(OBJS)
177
178### Targets: ###
179
c21faa0a 180all: $(OBJS)\bench.exe data
dc2ae355
VZ
181
182clean:
183 -if exist $(OBJS)\*.o del $(OBJS)\*.o
184 -if exist $(OBJS)\*.d del $(OBJS)\*.d
185 -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe
186
187$(OBJS)\bench.exe: $(BENCH_OBJECTS)
b44f5137 188 $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(LDFLAGS) $(__WXLIB_BASE_p) $(__WXLIB_NET_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 -lwininet
dc2ae355 189
c21faa0a
VS
190data:
191 if not exist $(OBJS) mkdir $(OBJS)
192 for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
193
dc2ae355
VZ
194$(OBJS)\bench_bench.o: ./bench.cpp
195 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
196
c21faa0a
VS
197$(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp
198 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
199
200$(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp
201 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
202
65669e31
VZ
203$(OBJS)\bench_ipcclient.o: ./ipcclient.cpp
204 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
205
3e356d41
VZ
206$(OBJS)\bench_mbconv.o: ./mbconv.cpp
207 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
208
dc2ae355
VZ
209$(OBJS)\bench_strings.o: ./strings.cpp
210 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
211
49f11e84
VZ
212$(OBJS)\bench_tls.o: ./tls.cpp
213 $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<
214
c21faa0a 215.PHONY: all clean data
dc2ae355
VZ
216
217
218SHELL := $(COMSPEC)
219
220# Dependencies tracking:
221-include $(OBJS)/*.d