]>
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.wat\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | # Speed up compilation a bit:\r | |
14 | !ifdef __LOADDLL__\r | |
15 | ! loaddll wcc wccd\r | |
16 | ! loaddll wccaxp wccdaxp\r | |
17 | ! loaddll wcc386 wccd386\r | |
18 | ! loaddll wpp wppdi86\r | |
19 | ! loaddll wppaxp wppdaxp\r | |
20 | ! loaddll wpp386 wppd386\r | |
21 | ! if $(__VERSION__) >= 1280\r | |
22 | ! loaddll wlink wlinkd\r | |
23 | ! else\r | |
24 | ! loaddll wlink wlink\r | |
25 | ! endif\r | |
26 | ! loaddll wlib wlibd\r | |
27 | !endif\r | |
28 | \r | |
29 | # We need these variables in some bakefile-made rules:\r | |
30 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r | |
31 | \r | |
32 | ### Conditionally set variables: ###\r | |
33 | \r | |
34 | WIN32_TOOLKIT_LOWERCASE = | |
35 | !ifeq TOOLKIT GTK | |
36 | WIN32_TOOLKIT_LOWERCASE = gtk | |
37 | !endif | |
38 | !ifeq TOOLKIT MSW | |
39 | WIN32_TOOLKIT_LOWERCASE = msw | |
40 | !endif | |
41 | PORTNAME =\r | |
42 | !ifeq USE_GUI 0\r | |
43 | PORTNAME = base\r | |
44 | !endif\r | |
45 | !ifeq USE_GUI 1\r | |
46 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
47 | !endif | |
48 | WXBASEPORT = | |
49 | !ifeq TOOLKIT MAC | |
50 | WXBASEPORT = _carbon | |
51 | !endif | |
52 | COMPILER_VERSION = | |
53 | !ifeq OFFICIAL_BUILD 1 | |
54 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
55 | !endif\r | |
56 | WXDEBUGFLAG =\r | |
57 | !ifeq BUILD debug\r | |
58 | WXDEBUGFLAG = d\r | |
59 | !endif\r | |
60 | WXUNICODEFLAG =\r | |
61 | !ifeq UNICODE 1\r | |
62 | WXUNICODEFLAG = u\r | |
63 | !endif\r | |
64 | WXUNIVNAME =\r | |
65 | !ifeq WXUNIV 1\r | |
66 | WXUNIVNAME = univ\r | |
67 | !endif\r | |
68 | WXDLLFLAG =\r | |
69 | !ifeq SHARED 1\r | |
70 | WXDLLFLAG = dll\r | |
71 | !endif\r | |
72 | LIBTYPE_SUFFIX =\r | |
73 | !ifeq SHARED 0\r | |
74 | LIBTYPE_SUFFIX = lib\r | |
75 | !endif\r | |
76 | !ifeq SHARED 1\r | |
77 | LIBTYPE_SUFFIX = dll\r | |
78 | !endif\r | |
79 | EXTRALIBS_FOR_BASE =\r | |
80 | !ifeq MONOLITHIC 0\r | |
81 | EXTRALIBS_FOR_BASE = \r | |
82 | !endif\r | |
83 | !ifeq MONOLITHIC 1\r | |
84 | EXTRALIBS_FOR_BASE = \r | |
85 | !endif\r | |
86 | __DEBUGINFO_0 =\r | |
87 | !ifeq BUILD debug\r | |
88 | !ifeq DEBUG_INFO default\r | |
89 | __DEBUGINFO_0 = -d2\r | |
90 | !endif\r | |
91 | !endif\r | |
92 | !ifeq BUILD release\r | |
93 | !ifeq DEBUG_INFO default\r | |
94 | __DEBUGINFO_0 = -d0\r | |
95 | !endif\r | |
96 | !endif\r | |
97 | !ifeq DEBUG_INFO 0\r | |
98 | __DEBUGINFO_0 = -d0\r | |
99 | !endif\r | |
100 | !ifeq DEBUG_INFO 1\r | |
101 | __DEBUGINFO_0 = -d2\r | |
102 | !endif\r | |
103 | __DEBUGINFO_1 =\r | |
104 | !ifeq BUILD debug\r | |
105 | !ifeq DEBUG_INFO default\r | |
106 | __DEBUGINFO_1 = debug all\r | |
107 | !endif\r | |
108 | !endif\r | |
109 | !ifeq BUILD release\r | |
110 | !ifeq DEBUG_INFO default\r | |
111 | __DEBUGINFO_1 = \r | |
112 | !endif\r | |
113 | !endif\r | |
114 | !ifeq DEBUG_INFO 0\r | |
115 | __DEBUGINFO_1 = \r | |
116 | !endif\r | |
117 | !ifeq DEBUG_INFO 1\r | |
118 | __DEBUGINFO_1 = debug all\r | |
119 | !endif\r | |
120 | __OPTIMIZEFLAG_2 =\r | |
121 | !ifeq BUILD debug\r | |
122 | __OPTIMIZEFLAG_2 = -od\r | |
123 | !endif\r | |
124 | !ifeq BUILD release\r | |
125 | __OPTIMIZEFLAG_2 = -ot -ox\r | |
126 | !endif\r | |
127 | __THREADSFLAG_5 =\r | |
128 | !ifeq USE_THREADS 0\r | |
129 | __THREADSFLAG_5 = \r | |
130 | !endif\r | |
131 | !ifeq USE_THREADS 1\r | |
132 | __THREADSFLAG_5 = -bm\r | |
133 | !endif\r | |
134 | __RUNTIME_LIBS_6 =\r | |
135 | !ifeq RUNTIME_LIBS dynamic\r | |
136 | __RUNTIME_LIBS_6 = -br\r | |
137 | !endif\r | |
138 | !ifeq RUNTIME_LIBS static\r | |
139 | __RUNTIME_LIBS_6 = \r | |
140 | !endif\r | |
141 | __RTTIFLAG_7 =\r | |
142 | !ifeq USE_RTTI 0\r | |
143 | __RTTIFLAG_7 = \r | |
144 | !endif\r | |
145 | !ifeq USE_RTTI 1\r | |
146 | __RTTIFLAG_7 = -xr\r | |
147 | !endif\r | |
148 | __EXCEPTIONSFLAG_8 =\r | |
149 | !ifeq USE_EXCEPTIONS 0\r | |
150 | __EXCEPTIONSFLAG_8 = \r | |
151 | !endif\r | |
152 | !ifeq USE_EXCEPTIONS 1\r | |
153 | __EXCEPTIONSFLAG_8 = -xs\r | |
154 | !endif\r | |
155 | __WXUNIV_DEFINE_p =\r | |
156 | !ifeq WXUNIV 1\r | |
157 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r | |
158 | !endif\r | |
159 | __DEBUG_DEFINE_p =\r | |
160 | !ifeq DEBUG_FLAG 0\r | |
161 | __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r | |
162 | !endif\r | |
163 | __NDEBUG_DEFINE_p =\r | |
164 | !ifeq BUILD release\r | |
165 | __NDEBUG_DEFINE_p = -dNDEBUG\r | |
166 | !endif\r | |
167 | __EXCEPTIONS_DEFINE_p =\r | |
168 | !ifeq USE_EXCEPTIONS 0\r | |
169 | __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r | |
170 | !endif\r | |
171 | __RTTI_DEFINE_p =\r | |
172 | !ifeq USE_RTTI 0\r | |
173 | __RTTI_DEFINE_p = -dwxNO_RTTI\r | |
174 | !endif\r | |
175 | __THREAD_DEFINE_p =\r | |
176 | !ifeq USE_THREADS 0\r | |
177 | __THREAD_DEFINE_p = -dwxNO_THREADS\r | |
178 | !endif\r | |
179 | __UNICODE_DEFINE_p =\r | |
180 | !ifeq UNICODE 0\r | |
181 | __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r | |
182 | !endif\r | |
183 | !ifeq UNICODE 1\r | |
184 | __UNICODE_DEFINE_p = -d_UNICODE\r | |
185 | !endif\r | |
186 | ____CAIRO_INCLUDEDIR_FILENAMES_p =\r | |
187 | !ifeq USE_CAIRO 1\r | |
188 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo\r | |
189 | !endif\r | |
190 | __DLLFLAG_p =\r | |
191 | !ifeq SHARED 1\r | |
192 | __DLLFLAG_p = -dWXUSINGDLL\r | |
193 | !endif\r | |
194 | __WXLIB_NET_p =\r | |
195 | !ifeq MONOLITHIC 0\r | |
196 | __WXLIB_NET_p = &\r | |
197 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib | |
198 | !endif\r | |
199 | __WXLIB_BASE_p =\r | |
200 | !ifeq MONOLITHIC 0\r | |
201 | __WXLIB_BASE_p = &\r | |
202 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
203 | !endif\r | |
204 | __WXLIB_MONO_p =\r | |
205 | !ifeq MONOLITHIC 1\r | |
206 | __WXLIB_MONO_p = &\r | |
207 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
208 | !endif\r | |
209 | __LIB_PNG_IF_MONO_p =\r | |
210 | !ifeq MONOLITHIC 1\r | |
211 | __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r | |
212 | !endif\r | |
213 | __LIB_PNG_p =\r | |
214 | !ifeq USE_GUI 1\r | |
215 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
216 | !endif\r | |
217 | __CAIRO_LIB_p =\r | |
218 | !ifeq USE_CAIRO 1\r | |
219 | __CAIRO_LIB_p = cairo.lib\r | |
220 | !endif\r | |
221 | ____CAIRO_LIBDIR_FILENAMES_p =\r | |
222 | !ifeq USE_CAIRO 1\r | |
223 | ____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r | |
224 | !endif\r | |
225 | \r | |
226 | ### Variables: ###\r | |
227 | \r | |
228 | WX_RELEASE_NODOT = 29\r | |
229 | COMPILER_PREFIX = wat\r | |
230 | OBJS = &\r | |
231 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
232 | LIBDIRNAME = & | |
233 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
234 | SETUPHDIR = &\r | |
235 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
236 | BENCH_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r | |
237 | $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) & | |
238 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) & | |
239 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
240 | -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx & | |
241 | -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 & | |
242 | $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS) | |
243 | BENCH_OBJECTS = &\r | |
244 | $(OBJS)\bench_bench.obj &\r | |
245 | $(OBJS)\bench_datetime.obj &\r | |
246 | $(OBJS)\bench_htmlpars.obj &\r | |
247 | $(OBJS)\bench_htmltag.obj &\r | |
248 | $(OBJS)\bench_ipcclient.obj &\r | |
249 | $(OBJS)\bench_log.obj &\r | |
250 | $(OBJS)\bench_mbconv.obj &\r | |
251 | $(OBJS)\bench_strings.obj &\r | |
252 | $(OBJS)\bench_tls.obj &\r | |
253 | $(OBJS)\bench_printfbench.obj\r | |
254 | \r | |
255 | \r | |
256 | all : $(OBJS)\r | |
257 | $(OBJS) :\r | |
258 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
259 | \r | |
260 | ### Targets: ###\r | |
261 | \r | |
262 | all : .SYMBOLIC $(OBJS)\bench.exe data\r | |
263 | \r | |
264 | clean : .SYMBOLIC \r | |
265 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
266 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
267 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r | |
268 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r | |
269 | -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r | |
270 | -if exist $(OBJS)\bench.exe del $(OBJS)\bench.exe\r | |
271 | \r | |
272 | $(OBJS)\bench.exe : $(BENCH_OBJECTS)\r | |
273 | @%create $(OBJS)\bench.lbc\r | |
274 | @%append $(OBJS)\bench.lbc option quiet\r | |
275 | @%append $(OBJS)\bench.lbc name $^@\r | |
276 | @%append $(OBJS)\bench.lbc option caseexact\r | |
277 | @%append $(OBJS)\bench.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r | |
278 | @for %i in ($(BENCH_OBJECTS)) do @%append $(OBJS)\bench.lbc file %i\r | |
279 | @for %i in ( $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib) do @%append $(OBJS)\bench.lbc library %i\r | |
280 | @%append $(OBJS)\bench.lbc\r | |
281 | @for %i in () do @%append $(OBJS)\bench.lbc option stack=%i\r | |
282 | wlink @$(OBJS)\bench.lbc\r | |
283 | \r | |
284 | data : .SYMBOLIC \r | |
285 | if not exist $(OBJS) mkdir $(OBJS)\r | |
286 | for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r | |
287 | \r | |
288 | $(OBJS)\bench_bench.obj : .AUTODEPEND .\bench.cpp\r | |
289 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
290 | \r | |
291 | $(OBJS)\bench_datetime.obj : .AUTODEPEND .\datetime.cpp\r | |
292 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
293 | \r | |
294 | $(OBJS)\bench_htmlpars.obj : .AUTODEPEND .\htmlparser\htmlpars.cpp\r | |
295 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
296 | \r | |
297 | $(OBJS)\bench_htmltag.obj : .AUTODEPEND .\htmlparser\htmltag.cpp\r | |
298 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
299 | \r | |
300 | $(OBJS)\bench_ipcclient.obj : .AUTODEPEND .\ipcclient.cpp\r | |
301 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
302 | \r | |
303 | $(OBJS)\bench_log.obj : .AUTODEPEND .\log.cpp\r | |
304 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
305 | \r | |
306 | $(OBJS)\bench_mbconv.obj : .AUTODEPEND .\mbconv.cpp\r | |
307 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
308 | \r | |
309 | $(OBJS)\bench_strings.obj : .AUTODEPEND .\strings.cpp\r | |
310 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
311 | \r | |
312 | $(OBJS)\bench_tls.obj : .AUTODEPEND .\tls.cpp\r | |
313 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
314 | \r | |
315 | $(OBJS)\bench_printfbench.obj : .AUTODEPEND .\printfbench.cpp\r | |
316 | $(CXX) -bt=nt -zq -fo=$^@ $(BENCH_CXXFLAGS) $<\r | |
317 | \r |