]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | include ../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
8ece421c | 15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP |
dc2ae355 VZ |
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 \ | |
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 | ||
40 | ifeq ($(GCC_VERSION),2.95) | |
41 | GCCFLAGS = -fvtable-thunks | |
42 | endif | |
43 | ifeq ($(USE_GUI),0) | |
44 | PORTNAME = base | |
45 | endif | |
46 | ifeq ($(USE_GUI),1) | |
47 | PORTNAME = msw | |
48 | endif | |
49 | ifeq ($(BUILD),debug) | |
50 | ifeq ($(DEBUG_FLAG),default) | |
51 | WXDEBUGFLAG = d | |
52 | endif | |
53 | endif | |
54 | ifeq ($(DEBUG_FLAG),1) | |
55 | WXDEBUGFLAG = d | |
56 | endif | |
57 | ifeq ($(UNICODE),1) | |
58 | WXUNICODEFLAG = u | |
59 | endif | |
60 | ifeq ($(WXUNIV),1) | |
61 | WXUNIVNAME = univ | |
62 | endif | |
63 | ifeq ($(SHARED),1) | |
64 | WXDLLFLAG = dll | |
65 | endif | |
66 | ifeq ($(SHARED),0) | |
67 | LIBTYPE_SUFFIX = lib | |
68 | endif | |
69 | ifeq ($(SHARED),1) | |
70 | LIBTYPE_SUFFIX = dll | |
71 | endif | |
72 | ifeq ($(MONOLITHIC),0) | |
73 | EXTRALIBS_FOR_BASE = | |
74 | endif | |
75 | ifeq ($(MONOLITHIC),1) | |
76 | EXTRALIBS_FOR_BASE = | |
77 | endif | |
78 | ifeq ($(BUILD),debug) | |
79 | __OPTIMIZEFLAG_2 = -O0 | |
80 | endif | |
81 | ifeq ($(BUILD),release) | |
82 | __OPTIMIZEFLAG_2 = -O2 | |
83 | endif | |
84 | ifeq ($(USE_RTTI),0) | |
85 | __RTTIFLAG_5 = -fno-rtti | |
86 | endif | |
87 | ifeq ($(USE_RTTI),1) | |
88 | __RTTIFLAG_5 = | |
89 | endif | |
90 | ifeq ($(USE_EXCEPTIONS),0) | |
91 | __EXCEPTIONSFLAG_6 = -fno-exceptions | |
92 | endif | |
93 | ifeq ($(USE_EXCEPTIONS),1) | |
94 | __EXCEPTIONSFLAG_6 = | |
95 | endif | |
96 | ifeq ($(WXUNIV),1) | |
97 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
98 | endif | |
99 | ifeq ($(BUILD),debug) | |
100 | ifeq ($(DEBUG_FLAG),default) | |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
102 | endif | |
103 | endif | |
104 | ifeq ($(DEBUG_FLAG),1) | |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
106 | endif | |
107 | ifeq ($(USE_EXCEPTIONS),0) | |
108 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
109 | endif | |
110 | ifeq ($(USE_RTTI),0) | |
111 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
112 | endif | |
113 | ifeq ($(USE_THREADS),0) | |
114 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
115 | endif | |
116 | ifeq ($(UNICODE),0) | |
117 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
118 | endif | |
119 | ifeq ($(UNICODE),1) | |
120 | __UNICODE_DEFINE_p = -D_UNICODE | |
121 | endif | |
122 | ifeq ($(MSLU),1) | |
123 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
124 | endif | |
125 | ifeq ($(USE_GDIPLUS),1) | |
126 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
127 | endif | |
128 | ifeq ($(SHARED),1) | |
129 | __DLLFLAG_p = -DWXUSINGDLL | |
130 | endif | |
131 | ifeq ($(MONOLITHIC),0) | |
132 | __WXLIB_BASE_p = \ | |
133 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
134 | endif | |
65669e31 VZ |
135 | ifeq ($(MONOLITHIC),0) |
136 | __WXLIB_NET_p = \ | |
137 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
138 | endif | |
dc2ae355 VZ |
139 | ifeq ($(MONOLITHIC),1) |
140 | __WXLIB_MONO_p = \ | |
141 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
142 | endif | |
143 | ifeq ($(MSLU),1) | |
144 | __UNICOWS_LIB_p = -lunicows | |
145 | endif | |
146 | ifeq ($(USE_GDIPLUS),1) | |
147 | __GDIPLUS_LIB_p = -lgdiplus | |
148 | endif | |
149 | ifeq ($(BUILD),debug) | |
150 | ifeq ($(DEBUG_INFO),default) | |
151 | __DEBUGINFO = -g | |
152 | endif | |
153 | endif | |
154 | ifeq ($(BUILD),release) | |
155 | ifeq ($(DEBUG_INFO),default) | |
156 | __DEBUGINFO = | |
157 | endif | |
158 | endif | |
159 | ifeq ($(DEBUG_INFO),0) | |
160 | __DEBUGINFO = | |
161 | endif | |
162 | ifeq ($(DEBUG_INFO),1) | |
163 | __DEBUGINFO = -g | |
164 | endif | |
165 | ifeq ($(USE_THREADS),0) | |
166 | __THREADSFLAG = | |
167 | endif | |
168 | ifeq ($(USE_THREADS),1) | |
169 | __THREADSFLAG = -mthreads | |
170 | endif | |
171 | ||
172 | ||
173 | all: $(OBJS) | |
174 | $(OBJS): | |
175 | -if not exist $(OBJS) mkdir $(OBJS) | |
176 | ||
177 | ### Targets: ### | |
178 | ||
c21faa0a | 179 | all: $(OBJS)\bench.exe data |
dc2ae355 VZ |
180 | |
181 | clean: | |
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 |
189 | data: |
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 | ||
214 | SHELL := $(COMSPEC) | |
215 | ||
216 | # Dependencies tracking: | |
217 | -include $(OBJS)/*.d |