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