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