]>
Commit | Line | Data |
---|---|---|
1 | # =========================================================================\r | |
2 | # This makefile was generated by\r | |
3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r | |
4 | # Do not modify, all changes will be overwritten!\r | |
5 | # =========================================================================\r | |
6 | \r | |
7 | include ../../build/msw/config.gcc\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | ### Variables: ###\r | |
14 | \r | |
15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP\r | |
16 | WX_RELEASE_NODOT = 29\r | |
17 | COMPILER_PREFIX = gcc\r | |
18 | OBJS = \\r | |
19 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
20 | LIBDIRNAME = \ | |
21 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
22 | SETUPHDIR = \\r | |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
24 | BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r | |
25 | $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ | |
26 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r | |
27 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
28 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
29 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r | |
30 | $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \ | |
31 | $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS) | |
32 | BENCH_OBJECTS = \\r | |
33 | $(OBJS)\bench_bench.o \\r | |
34 | $(OBJS)\bench_datetime.o \\r | |
35 | $(OBJS)\bench_htmlpars.o \\r | |
36 | $(OBJS)\bench_htmltag.o \\r | |
37 | $(OBJS)\bench_ipcclient.o \\r | |
38 | $(OBJS)\bench_log.o \\r | |
39 | $(OBJS)\bench_mbconv.o \\r | |
40 | $(OBJS)\bench_strings.o \\r | |
41 | $(OBJS)\bench_tls.o \\r | |
42 | $(OBJS)\bench_printfbench.o\r | |
43 | \r | |
44 | ### Conditionally set variables: ###\r | |
45 | \r | |
46 | ifeq ($(TOOLKIT),GTK) | |
47 | WIN32_TOOLKIT_LOWERCASE = gtk | |
48 | endif | |
49 | ifeq ($(TOOLKIT),MSW) | |
50 | WIN32_TOOLKIT_LOWERCASE = msw | |
51 | endif | |
52 | ifeq ($(GCC_VERSION),2.95)\r | |
53 | GCCFLAGS = -fvtable-thunks\r | |
54 | endif\r | |
55 | ifeq ($(USE_GUI),0)\r | |
56 | PORTNAME = base\r | |
57 | endif\r | |
58 | ifeq ($(USE_GUI),1)\r | |
59 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
60 | endif | |
61 | ifeq ($(TOOLKIT),MAC) | |
62 | WXBASEPORT = _carbon | |
63 | endif | |
64 | ifeq ($(OFFICIAL_BUILD),1) | |
65 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
66 | endif\r | |
67 | ifeq ($(BUILD),debug)\r | |
68 | WXDEBUGFLAG = d\r | |
69 | endif\r | |
70 | ifeq ($(UNICODE),1)\r | |
71 | WXUNICODEFLAG = u\r | |
72 | endif\r | |
73 | ifeq ($(WXUNIV),1)\r | |
74 | WXUNIVNAME = univ\r | |
75 | endif\r | |
76 | ifeq ($(SHARED),1)\r | |
77 | WXDLLFLAG = dll\r | |
78 | endif\r | |
79 | ifeq ($(SHARED),0)\r | |
80 | LIBTYPE_SUFFIX = lib\r | |
81 | endif\r | |
82 | ifeq ($(SHARED),1)\r | |
83 | LIBTYPE_SUFFIX = dll\r | |
84 | endif\r | |
85 | ifeq ($(MONOLITHIC),0)\r | |
86 | EXTRALIBS_FOR_BASE = \r | |
87 | endif\r | |
88 | ifeq ($(MONOLITHIC),1)\r | |
89 | EXTRALIBS_FOR_BASE = \r | |
90 | endif\r | |
91 | ifeq ($(TOOLKIT),GTK) | |
92 | CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields | |
93 | endif | |
94 | ifeq ($(BUILD),debug)\r | |
95 | __OPTIMIZEFLAG_2 = -O0\r | |
96 | endif\r | |
97 | ifeq ($(BUILD),release)\r | |
98 | __OPTIMIZEFLAG_2 = -O2\r | |
99 | endif\r | |
100 | ifeq ($(USE_RTTI),0)\r | |
101 | __RTTIFLAG_5 = -fno-rtti\r | |
102 | endif\r | |
103 | ifeq ($(USE_RTTI),1)\r | |
104 | __RTTIFLAG_5 = \r | |
105 | endif\r | |
106 | ifeq ($(USE_EXCEPTIONS),0)\r | |
107 | __EXCEPTIONSFLAG_6 = -fno-exceptions\r | |
108 | endif\r | |
109 | ifeq ($(USE_EXCEPTIONS),1)\r | |
110 | __EXCEPTIONSFLAG_6 = \r | |
111 | endif\r | |
112 | ifeq ($(WXUNIV),1)\r | |
113 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
114 | endif\r | |
115 | ifeq ($(DEBUG_FLAG),0)\r | |
116 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
117 | endif\r | |
118 | ifeq ($(BUILD),release)\r | |
119 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
120 | endif\r | |
121 | ifeq ($(USE_EXCEPTIONS),0)\r | |
122 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
123 | endif\r | |
124 | ifeq ($(USE_RTTI),0)\r | |
125 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
126 | endif\r | |
127 | ifeq ($(USE_THREADS),0)\r | |
128 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
129 | endif\r | |
130 | ifeq ($(UNICODE),0)\r | |
131 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
132 | endif\r | |
133 | ifeq ($(UNICODE),1)\r | |
134 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
135 | endif\r | |
136 | ifeq ($(MSLU),1)\r | |
137 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
138 | endif\r | |
139 | ifeq ($(USE_CAIRO),1)\r | |
140 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
141 | endif\r | |
142 | ifeq ($(SHARED),1)\r | |
143 | __DLLFLAG_p = -DWXUSINGDLL\r | |
144 | endif\r | |
145 | ifeq ($(MONOLITHIC),0)\r | |
146 | __WXLIB_NET_p = \\r | |
147 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
148 | endif\r | |
149 | ifeq ($(MONOLITHIC),0)\r | |
150 | __WXLIB_BASE_p = \\r | |
151 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
152 | endif\r | |
153 | ifeq ($(MONOLITHIC),1)\r | |
154 | __WXLIB_MONO_p = \\r | |
155 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
156 | endif\r | |
157 | ifeq ($(MONOLITHIC),1)\r | |
158 | __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r | |
159 | endif\r | |
160 | ifeq ($(USE_GUI),1)\r | |
161 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
162 | endif\r | |
163 | ifeq ($(MSLU),1)\r | |
164 | __UNICOWS_LIB_p = -lunicows\r | |
165 | endif\r | |
166 | ifeq ($(USE_CAIRO),1)\r | |
167 | __CAIRO_LIB_p = -lcairo\r | |
168 | endif\r | |
169 | ifeq ($(USE_CAIRO),1)\r | |
170 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
171 | endif\r | |
172 | ifeq ($(BUILD),debug)\r | |
173 | ifeq ($(DEBUG_INFO),default)\r | |
174 | __DEBUGINFO = -g\r | |
175 | endif\r | |
176 | endif\r | |
177 | ifeq ($(BUILD),release)\r | |
178 | ifeq ($(DEBUG_INFO),default)\r | |
179 | __DEBUGINFO = \r | |
180 | endif\r | |
181 | endif\r | |
182 | ifeq ($(DEBUG_INFO),0)\r | |
183 | __DEBUGINFO = \r | |
184 | endif\r | |
185 | ifeq ($(DEBUG_INFO),1)\r | |
186 | __DEBUGINFO = -g\r | |
187 | endif\r | |
188 | ifeq ($(USE_THREADS),0)\r | |
189 | __THREADSFLAG = \r | |
190 | endif\r | |
191 | ifeq ($(USE_THREADS),1)\r | |
192 | __THREADSFLAG = -mthreads\r | |
193 | endif\r | |
194 | \r | |
195 | \r | |
196 | all: $(OBJS)\r | |
197 | $(OBJS):\r | |
198 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
199 | \r | |
200 | ### Targets: ###\r | |
201 | \r | |
202 | all: $(OBJS)\bench.exe data\r | |
203 | \r | |
204 | clean: \r | |
205 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
206 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
207 | -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r | |
208 | \r | |
209 | $(OBJS)\bench.exe: $(BENCH_OBJECTS)\r | |
210 | $(CXX) -o $@ $(BENCH_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r | |
211 | \r | |
212 | data: \r | |
213 | if not exist $(OBJS) mkdir $(OBJS)\r | |
214 | for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r | |
215 | \r | |
216 | $(OBJS)\bench_bench.o: ./bench.cpp\r | |
217 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
218 | \r | |
219 | $(OBJS)\bench_datetime.o: ./datetime.cpp\r | |
220 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
221 | \r | |
222 | $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r | |
223 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
224 | \r | |
225 | $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r | |
226 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
227 | \r | |
228 | $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r | |
229 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
230 | \r | |
231 | $(OBJS)\bench_log.o: ./log.cpp\r | |
232 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
233 | \r | |
234 | $(OBJS)\bench_mbconv.o: ./mbconv.cpp\r | |
235 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
236 | \r | |
237 | $(OBJS)\bench_strings.o: ./strings.cpp\r | |
238 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
239 | \r | |
240 | $(OBJS)\bench_tls.o: ./tls.cpp\r | |
241 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
242 | \r | |
243 | $(OBJS)\bench_printfbench.o: ./printfbench.cpp\r | |
244 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
245 | \r | |
246 | .PHONY: all clean data\r | |
247 | \r | |
248 | \r | |
249 | SHELL := $(COMSPEC)\r | |
250 | \r | |
251 | # Dependencies tracking:\r | |
252 | -include $(OBJS)/*.d\r |