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