]>
Commit | Line | Data |
---|---|---|
a7ebaf0d KO |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
a7ebaf0d KO |
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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r | |
20 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
21 | SETUPHDIR = \\r | |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
23 | BENCH_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r | |
24 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r | |
da8b1d4b KO |
25 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r |
26 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
b796194b | 27 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r |
f82b7036 KO |
28 | $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r |
29 | $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r | |
30 | $(CXXFLAGS)\r | |
a7ebaf0d KO |
31 | BENCH_OBJECTS = \\r |
32 | $(OBJS)\bench_bench.o \\r | |
bf0f3b26 | 33 | $(OBJS)\bench_datetime.o \\r |
a7ebaf0d KO |
34 | $(OBJS)\bench_htmlpars.o \\r |
35 | $(OBJS)\bench_htmltag.o \\r | |
36 | $(OBJS)\bench_ipcclient.o \\r | |
f7f7b59a | 37 | $(OBJS)\bench_log.o \\r |
a7ebaf0d KO |
38 | $(OBJS)\bench_mbconv.o \\r |
39 | $(OBJS)\bench_strings.o \\r | |
40 | $(OBJS)\bench_tls.o \\r | |
41 | $(OBJS)\bench_printfbench.o\r | |
42 | \r | |
43 | ### Conditionally set variables: ###\r | |
44 | \r | |
45 | ifeq ($(GCC_VERSION),2.95)\r | |
46 | GCCFLAGS = -fvtable-thunks\r | |
47 | endif\r | |
48 | ifeq ($(USE_GUI),0)\r | |
49 | PORTNAME = base\r | |
50 | endif\r | |
51 | ifeq ($(USE_GUI),1)\r | |
52 | PORTNAME = msw\r | |
53 | endif\r | |
54 | ifeq ($(BUILD),debug)\r | |
55 | WXDEBUGFLAG = d\r | |
56 | endif\r | |
57 | ifeq ($(UNICODE),1)\r | |
58 | WXUNICODEFLAG = u\r | |
59 | endif\r | |
60 | ifeq ($(WXUNIV),1)\r | |
61 | WXUNIVNAME = univ\r | |
62 | endif\r | |
63 | ifeq ($(SHARED),1)\r | |
64 | WXDLLFLAG = dll\r | |
65 | endif\r | |
66 | ifeq ($(SHARED),0)\r | |
67 | LIBTYPE_SUFFIX = lib\r | |
68 | endif\r | |
69 | ifeq ($(SHARED),1)\r | |
70 | LIBTYPE_SUFFIX = dll\r | |
71 | endif\r | |
72 | ifeq ($(MONOLITHIC),0)\r | |
73 | EXTRALIBS_FOR_BASE = \r | |
74 | endif\r | |
75 | ifeq ($(MONOLITHIC),1)\r | |
51ec29ea | 76 | EXTRALIBS_FOR_BASE = \r |
a7ebaf0d KO |
77 | endif\r |
78 | ifeq ($(BUILD),debug)\r | |
79 | __OPTIMIZEFLAG_2 = -O0\r | |
80 | endif\r | |
81 | ifeq ($(BUILD),release)\r | |
82 | __OPTIMIZEFLAG_2 = -O2\r | |
83 | endif\r | |
84 | ifeq ($(USE_RTTI),0)\r | |
85 | __RTTIFLAG_5 = -fno-rtti\r | |
86 | endif\r | |
87 | ifeq ($(USE_RTTI),1)\r | |
88 | __RTTIFLAG_5 = \r | |
89 | endif\r | |
90 | ifeq ($(USE_EXCEPTIONS),0)\r | |
91 | __EXCEPTIONSFLAG_6 = -fno-exceptions\r | |
92 | endif\r | |
93 | ifeq ($(USE_EXCEPTIONS),1)\r | |
94 | __EXCEPTIONSFLAG_6 = \r | |
95 | endif\r | |
96 | ifeq ($(WXUNIV),1)\r | |
97 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
98 | endif\r | |
99 | ifeq ($(DEBUG_FLAG),0)\r | |
100 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
101 | endif\r | |
da8b1d4b KO |
102 | ifeq ($(BUILD),release)\r |
103 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
104 | endif\r | |
a7ebaf0d KO |
105 | ifeq ($(USE_EXCEPTIONS),0)\r |
106 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
107 | endif\r | |
108 | ifeq ($(USE_RTTI),0)\r | |
109 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
110 | endif\r | |
111 | ifeq ($(USE_THREADS),0)\r | |
112 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
113 | endif\r | |
114 | ifeq ($(UNICODE),0)\r | |
115 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
116 | endif\r | |
117 | ifeq ($(UNICODE),1)\r | |
118 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
119 | endif\r | |
120 | ifeq ($(MSLU),1)\r | |
121 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
122 | endif\r | |
f82b7036 KO |
123 | ifeq ($(USE_CAIRO),1)\r |
124 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
125 | endif\r | |
a7ebaf0d KO |
126 | ifeq ($(SHARED),1)\r |
127 | __DLLFLAG_p = -DWXUSINGDLL\r | |
128 | endif\r | |
129 | ifeq ($(MONOLITHIC),0)\r | |
130 | __WXLIB_NET_p = \\r | |
131 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r | |
132 | endif\r | |
133 | ifeq ($(MONOLITHIC),0)\r | |
134 | __WXLIB_BASE_p = \\r | |
135 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
136 | endif\r | |
137 | ifeq ($(MONOLITHIC),1)\r | |
138 | __WXLIB_MONO_p = \\r | |
139 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
140 | endif\r | |
57c74474 VZ |
141 | ifeq ($(MONOLITHIC),1)\r |
142 | __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r | |
143 | endif\r | |
144 | ifeq ($(USE_GUI),1)\r | |
145 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
146 | endif\r | |
a7ebaf0d KO |
147 | ifeq ($(MSLU),1)\r |
148 | __UNICOWS_LIB_p = -lunicows\r | |
149 | endif\r | |
f82b7036 KO |
150 | ifeq ($(USE_CAIRO),1)\r |
151 | __CAIRO_LIB_p = -lcairo\r | |
152 | endif\r | |
153 | ifeq ($(USE_CAIRO),1)\r | |
154 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
155 | endif\r | |
a7ebaf0d KO |
156 | ifeq ($(BUILD),debug)\r |
157 | ifeq ($(DEBUG_INFO),default)\r | |
158 | __DEBUGINFO = -g\r | |
159 | endif\r | |
160 | endif\r | |
161 | ifeq ($(BUILD),release)\r | |
162 | ifeq ($(DEBUG_INFO),default)\r | |
163 | __DEBUGINFO = \r | |
164 | endif\r | |
165 | endif\r | |
166 | ifeq ($(DEBUG_INFO),0)\r | |
167 | __DEBUGINFO = \r | |
168 | endif\r | |
169 | ifeq ($(DEBUG_INFO),1)\r | |
170 | __DEBUGINFO = -g\r | |
171 | endif\r | |
172 | ifeq ($(USE_THREADS),0)\r | |
173 | __THREADSFLAG = \r | |
174 | endif\r | |
175 | ifeq ($(USE_THREADS),1)\r | |
176 | __THREADSFLAG = -mthreads\r | |
177 | endif\r | |
178 | \r | |
179 | \r | |
180 | all: $(OBJS)\r | |
181 | $(OBJS):\r | |
182 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
183 | \r | |
184 | ### Targets: ###\r | |
185 | \r | |
186 | all: $(OBJS)\bench.exe data\r | |
187 | \r | |
188 | clean: \r | |
189 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
190 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
191 | -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r | |
192 | \r | |
193 | $(OBJS)\bench.exe: $(BENCH_OBJECTS)\r | |
57c74474 | 194 | $(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 |
a7ebaf0d KO |
195 | \r |
196 | data: \r | |
197 | if not exist $(OBJS) mkdir $(OBJS)\r | |
198 | for %%f in (htmltest.html) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)\r | |
199 | \r | |
200 | $(OBJS)\bench_bench.o: ./bench.cpp\r | |
201 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
202 | \r | |
bf0f3b26 VZ |
203 | $(OBJS)\bench_datetime.o: ./datetime.cpp\r |
204 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
205 | \r | |
a7ebaf0d KO |
206 | $(OBJS)\bench_htmlpars.o: ./htmlparser/htmlpars.cpp\r |
207 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
208 | \r | |
209 | $(OBJS)\bench_htmltag.o: ./htmlparser/htmltag.cpp\r | |
210 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
211 | \r | |
212 | $(OBJS)\bench_ipcclient.o: ./ipcclient.cpp\r | |
213 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
214 | \r | |
f7f7b59a VZ |
215 | $(OBJS)\bench_log.o: ./log.cpp\r |
216 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
217 | \r | |
a7ebaf0d KO |
218 | $(OBJS)\bench_mbconv.o: ./mbconv.cpp\r |
219 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
220 | \r | |
221 | $(OBJS)\bench_strings.o: ./strings.cpp\r | |
222 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
223 | \r | |
224 | $(OBJS)\bench_tls.o: ./tls.cpp\r | |
225 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
226 | \r | |
227 | $(OBJS)\bench_printfbench.o: ./printfbench.cpp\r | |
228 | $(CXX) -c -o $@ $(BENCH_CXXFLAGS) $(CPPDEPS) $<\r | |
229 | \r | |
230 | .PHONY: all clean data\r | |
231 | \r | |
232 | \r | |
233 | SHELL := $(COMSPEC)\r | |
234 | \r | |
235 | # Dependencies tracking:\r | |
236 | -include $(OBJS)/*.d\r |