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