* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / rbuild / rbuild.mak
1 # Copyright (C) 2005 Casper S. Hornstrup
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License along
14 # with this program; if not, write to the Free Software Foundation, Inc.,
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
17 RBUILD_BASE = $(TOOLS_BASE_)rbuild
18 RBUILD_BASE_ = $(RBUILD_BASE)$(SEP)
19 RBUILD_INT = $(INTERMEDIATE_)$(RBUILD_BASE)
20 RBUILD_INT_ = $(RBUILD_INT)$(SEP)
21 RBUILD_OUT = $(OUTPUT_)$(RBUILD_BASE)
22 RBUILD_OUT_ = $(RBUILD_OUT)$(SEP)
23
24 $(RBUILD_INT): | $(TOOLS_INT)
25 $(ECHO_MKDIR)
26 ${mkdir} $@
27
28 ifneq ($(INTERMEDIATE),$(OUTPUT))
29 $(RBUILD_OUT): | $(TOOLS_OUT)
30 $(ECHO_MKDIR)
31 ${mkdir} $@
32 endif
33
34
35 RBUILD_BACKEND_BASE = $(RBUILD_BASE_)backend
36 RBUILD_BACKEND_BASE_ = $(RBUILD_BACKEND_BASE)$(SEP)
37 RBUILD_BACKEND_INT = $(INTERMEDIATE_)$(RBUILD_BACKEND_BASE)
38 RBUILD_BACKEND_INT_ = $(RBUILD_BACKEND_INT)$(SEP)
39 RBUILD_BACKEND_OUT = $(OUTPUT_)$(RBUILD_BACKEND_BASE)
40 RBUILD_BACKEND_OUT_ = $(RBUILD_BACKEND_OUT)$(SEP)
41
42 $(RBUILD_BACKEND_INT): | $(RBUILD_INT)
43 $(ECHO_MKDIR)
44 ${mkdir} $@
45
46 ifneq ($(INTERMEDIATE),$(OUTPUT))
47 $(RBUILD_BACKEND_OUT): | $(RBUILD_OUT)
48 $(ECHO_MKDIR)
49 ${mkdir} $@
50 endif
51
52
53 RBUILD_MINGW_BASE = $(RBUILD_BACKEND_BASE_)mingw
54 RBUILD_MINGW_BASE_ = $(RBUILD_MINGW_BASE)$(SEP)
55 RBUILD_MINGW_INT = $(INTERMEDIATE_)$(RBUILD_MINGW_BASE)
56 RBUILD_MINGW_INT_ = $(RBUILD_MINGW_INT)$(SEP)
57 RBUILD_MINGW_OUT = $(OUTPUT_)$(RBUILD_MINGW_BASE)
58 RBUILD_MINGW_OUT_ = $(RBUILD_MINGW_OUT)$(SEP)
59
60 $(RBUILD_MINGW_INT): | $(RBUILD_BACKEND_INT)
61 $(ECHO_MKDIR)
62 ${mkdir} $@
63
64 ifneq ($(INTERMEDIATE),$(OUTPUT))
65 $(RBUILD_MINGW_OUT): | $(RBUILD_BACKEND_OUT)
66 $(ECHO_MKDIR)
67 ${mkdir} $@
68 endif
69
70
71 RBUILD_TESTS_BASE = $(RBUILD_BASE_)tests
72 RBUILD_TESTS_BASE_ = $(RBUILD_TESTS_BASE)$(SEP)
73 RBUILD_TESTS_INT = $(INTERMEDIATE_)$(RBUILD_TESTS_BASE)
74 RBUILD_TESTS_INT_ = $(RBUILD_TESTS_INT)$(SEP)
75 RBUILD_TESTS_OUT = $(OUTPUT_)$(RBUILD_TESTS_BASE)
76
77 $(RBUILD_TESTS_INT): | $(RBUILD_INT)
78 $(ECHO_MKDIR)
79 ${mkdir} $@
80
81 ifneq ($(INTERMEDIATE),$(OUTPUT))
82 $(RBUILD_TESTS_OUT): | $(RBUILD_OUT)
83 $(ECHO_MKDIR)
84 ${mkdir} $@
85 endif
86
87 RBUILD_MSBUILD_BASE = $(RBUILD_BACKEND_BASE_)msbuild
88 RBUILD_MSBUILD_BASE_ = $(RBUILD_MSBUILD_BASE)$(SEP)
89 RBUILD_MSBUILD_INT = $(INTERMEDIATE_)$(RBUILD_MSBUILD_BASE)
90 RBUILD_MSBUILD_INT_ = $(RBUILD_MSBUILD_INT)$(SEP)
91 RBUILD_MSBUILD_OUT = $(OUTPUT_)$(RBUILD_MSBUILD_BASE)
92 RBUILD_MSBUILD_OUT_ = $(RBUILD_MSBUILD_OUT)$(SEP)
93
94 $(RBUILD_MSBUILD_INT): | $(RBUILD_BACKEND_INT)
95 $(ECHO_MKDIR)
96 ${mkdir} $@
97
98 ifneq ($(INTERMEDIATE),$(OUTPUT))
99 $(RBUILD_MSBUILD_OUT): | $(RBUILD_BACKEND_OUT)
100 $(ECHO_MKDIR)
101 ${mkdir} $@
102 endif
103
104 RBUILD_DEPMAP_BASE = $(RBUILD_BACKEND_BASE_)dependencymap
105 RBUILD_DEPMAP_BASE_ = $(RBUILD_DEPMAP_BASE)$(SEP)
106 RBUILD_DEPMAP_INT = $(INTERMEDIATE_)$(RBUILD_DEPMAP_BASE)
107 RBUILD_DEPMAP_INT_ = $(RBUILD_DEPMAP_INT)$(SEP)
108 RBUILD_DEPMAP_OUT = $(OUTPUT_)$(RBUILD_DEPMAP_BASE)
109 RBUILD_DEPMAP_OUT_ = $(RBUILD_DEPMAP_OUT)$(SEP)
110
111 $(RBUILD_DEPMAP_INT): | $(RBUILD_BACKEND_INT)
112 $(ECHO_MKDIR)
113 ${mkdir} $@
114
115 ifneq ($(INTERMEDIATE),$(OUTPUT))
116 $(RBUILD_DEPMAP_OUT): | $(RBUILD_BACKEND_OUT)
117 $(ECHO_MKDIR)
118 ${mkdir} $@
119 endif
120
121 RBUILD_VREPORT_BASE = $(RBUILD_BACKEND_BASE_)versionreport
122 RBUILD_VREPORT_BASE_ = $(RBUILD_VREPORT_BASE)$(SEP)
123 RBUILD_VREPORT_INT = $(INTERMEDIATE_)$(RBUILD_VREPORT_BASE)
124 RBUILD_VREPORT_INT_ = $(RBUILD_VREPORT_INT)$(SEP)
125 RBUILD_VREPORT_OUT = $(OUTPUT_)$(RBUILD_VREPORT_BASE)
126 RBUILD_VREPORT_OUT_ = $(RBUILD_VREPORT_OUT)$(SEP)
127
128 $(RBUILD_VREPORT_INT): | $(RBUILD_BACKEND_INT)
129 $(ECHO_MKDIR)
130 ${mkdir} $@
131
132 ifneq ($(INTERMEDIATE),$(OUTPUT))
133 $(RBUILD_VREPORT_OUT): | $(RBUILD_BACKEND_OUT)
134 $(ECHO_MKDIR)
135 ${mkdir} $@
136 endif
137
138
139 RBUILD_MSVC_BASE = $(RBUILD_BACKEND_BASE_)msvc
140 RBUILD_MSVC_BASE_ = $(RBUILD_MSVC_BASE)$(SEP)
141 RBUILD_MSVC_INT = $(INTERMEDIATE_)$(RBUILD_MSVC_BASE)
142 RBUILD_MSVC_INT_ = $(RBUILD_MSVC_INT)$(SEP)
143 RBUILD_MSVC_OUT = $(OUTPUT_)$(RBUILD_MSVC_BASE)
144 RBUILD_MSVC_OUT_ = $(RBUILD_MSVC_OUT)$(SEP)
145
146 $(RBUILD_MSVC_INT): | $(RBUILD_BACKEND_INT)
147 $(ECHO_MKDIR)
148 ${mkdir} $@
149
150 ifneq ($(INTERMEDIATE),$(OUTPUT))
151 $(RBUILD_MSVC_OUT): | $(RBUILD_BACKEND_OUT)
152 $(ECHO_MKDIR)
153 ${mkdir} $@
154 endif
155
156
157 RBUILD_TARGET = \
158 $(RBUILD_OUT_)rbuild$(EXEPOSTFIX)
159
160 RBUILD_TEST_TARGET = \
161 $(RBUILD_OUT_)rbuild_test$(EXEPOSTFIX)
162
163 RBUILD_BACKEND_MINGW_BASE_SOURCES = $(addprefix $(RBUILD_MINGW_BASE_), \
164 mingw.cpp \
165 modulehandler.cpp \
166 mstools_detection.cpp \
167 proxymakefile.cpp \
168 rule.cpp \
169 )
170
171 RBUILD_BACKEND_DEPMAP_BASE_SOURCES = $(addprefix $(RBUILD_DEPMAP_BASE_), \
172 dependencymap.cpp \
173 )
174
175 RBUILD_BACKEND_VREPORT_BASE_SOURCES = $(addprefix $(RBUILD_VREPORT_BASE_), \
176 versionreport.cpp \
177 )
178
179 RBUILD_BACKEND_MSBUILD_BASE_SOURCES = $(addprefix $(RBUILD_MSBUILD_BASE_), \
180 msbuild.cpp \
181 )
182
183 RBUILD_BACKEND_MSVC_BASE_SOURCES = $(addprefix $(RBUILD_MSVC_BASE_), \
184 genguid.cpp \
185 msvc.cpp \
186 projmaker.cpp \
187 propsmaker.cpp \
188 slnmaker.cpp \
189 vcprojmaker.cpp \
190 vcxprojmaker.cpp \
191 vspropsmaker.cpp \
192 )
193
194 RBUILD_BACKEND_SOURCES = \
195 $(RBUILD_BACKEND_MINGW_BASE_SOURCES) \
196 $(RBUILD_BACKEND_MSVC_BASE_SOURCES) \
197 $(RBUILD_BACKEND_DEPMAP_BASE_SOURCES) \
198 $(RBUILD_BACKEND_VREPORT_BASE_SOURCES) \
199 $(RBUILD_BACKEND_MSBUILD_BASE_SOURCES) \
200 $(RBUILD_BACKEND_BASE_)backend.cpp
201
202 RBUILD_SOURCES = \
203 $(RBUILD_BACKEND_SOURCES) \
204 $(addprefix $(RBUILD_BASE_), \
205 global.cpp \
206 automaticdependency.cpp \
207 autoregister.cpp \
208 bootstrap.cpp \
209 cdfile.cpp \
210 compilationunit.cpp \
211 compilationunitsupportcode.cpp \
212 compilerdirective.cpp \
213 compilerflag.cpp \
214 configuration.cpp \
215 define.cpp \
216 directory.cpp \
217 exception.cpp \
218 filesupportcode.cpp \
219 include.cpp \
220 installfile.cpp \
221 linkerflag.cpp \
222 linkerscript.cpp \
223 module.cpp \
224 project.cpp \
225 rbuild.cpp \
226 stubbedcomponent.cpp \
227 syssetupgenerator.cpp \
228 testsupportcode.cpp \
229 xmlnode.cpp \
230 )
231
232 RBUILD_OBJECTS = \
233 $(addprefix $(INTERMEDIATE_), $(RBUILD_SOURCES:.cpp=.o))
234
235 RBUILD_BACKEND_MSVCCPP_HEADERS = \
236 msvc.h
237
238 RBUILD_BACKEND_DEPMAP_HEADERS = \
239 dependencymap.h
240
241 RBUILD_BACKEND_VREPORT_HEADERS = \
242 versionreport.h
243
244 RBUILD_BACKEND_MSBUILD_HEADERS = \
245 msbuild.h
246
247 RBUILD_BACKEND_MINGW_HEADERS = \
248 mingw.h \
249 modulehandler.h \
250 rule.h
251
252 RBUILD_BACKEND_HEADERS = \
253 backend.h \
254 $(addprefix msvc$(SEP), $(RBUILD_BACKEND_MSVC_HEADERS)) \
255 $(addprefix mingw$(SEP), $(RBUILD_BACKEND_MINGW_HEADERS)) \
256 $(addprefix msbuild$(SEP), $(RBUILD_BACKEND_MSBUILD_HEADERS)) \
257 $(addprefix versionreport$(SEP), $(RBUILD_BACKEND_VREPORT_HEADERS)) \
258 $(addprefix dependencymap$(SEP), $(RBUILD_BACKEND_DEPMAP_HEADERS))
259
260 RBUILD_HEADERS = \
261 $(addprefix $(RBUILD_BASE_), \
262 exception.h \
263 pch.h \
264 rbuild.h \
265 test.h \
266 $(addprefix backend$(SEP), $(RBUILD_BACKEND_HEADERS)) \
267 ) \
268 $(XML_SSPRINTF_HEADERS)
269
270 RBUILD_TESTS = \
271 tests$(SEP)cdfiletest.cpp \
272 tests$(SEP)compilationunittest.cpp \
273 tests$(SEP)definetest.cpp \
274 tests$(SEP)functiontest.cpp \
275 tests$(SEP)iftest.cpp \
276 tests$(SEP)includetest.cpp \
277 tests$(SEP)invoketest.cpp \
278 tests$(SEP)linkerflagtest.cpp \
279 tests$(SEP)moduletest.cpp \
280 tests$(SEP)projecttest.cpp \
281 tests$(SEP)sourcefiletest.cpp \
282 tests$(SEP)symboltest.cpp
283
284 RBUILD_TEST_SPECIAL_SOURCES = \
285 $(addprefix $(RBUILD_BASE_), $(RBUILD_TESTS)) \
286 $(RBUILD_BASE_)tests$(SEP)alltests.cpp
287
288 RBUILD_TEST_SOURCES = \
289 $(RBUILD_COMMON_SOURCES) \
290 $(RBUILD_TEST_SPECIAL_SOURCES)
291
292 RBUILD_TEST_SPECIAL_OBJECTS = \
293 $(addprefix $(INTERMEDIATE_), $(RBUILD_TEST_SPECIAL_SOURCES:.cpp=.o))
294
295 RBUILD_TEST_OBJECTS = \
296 $(RBUILD_COMMON_OBJECTS) \
297 $(RBUILD_TEST_SPECIAL_OBJECTS)
298
299 RBUILD_HOST_CXXFLAGS = -I$(RBUILD_BASE) -I$(TOOLS_BASE) -I$(INFLIB_BASE) $(TOOLS_CPPFLAGS) -Iinclude -Iinclude/reactos -Iinclude/host
300
301 RBUILD_HOST_LFLAGS = $(TOOLS_LFLAGS)
302
303 ifeq ($(HOST),mingw32-windows)
304 RBUILD_HOST_LFLAGS += -loleaut32 -lole32 -luuid
305 endif
306
307 .PHONY: rbuild
308 rbuild: $(RBUILD_TARGET)
309 host_gpp += -g
310
311 $(RBUILD_TARGET): $(RBUILD_OBJECTS) $(XML_SSPRINTF_OBJECTS) $(INFLIB_HOST_OBJECTS) | $(RBUILD_OUT)
312 $(ECHO_HOSTLD)
313 ${host_gpp} $^ $(RBUILD_HOST_LFLAGS) -o $@
314
315 $(RBUILD_INT_)global.o: $(RBUILD_BASE_)global.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
316 $(ECHO_HOSTCC)
317 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
318
319 $(RBUILD_INT_)automaticdependency.o: $(RBUILD_BASE_)automaticdependency.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
320 $(ECHO_HOSTCC)
321 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
322
323 $(RBUILD_INT_)autoregister.o: $(RBUILD_BASE_)autoregister.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
324 $(ECHO_HOSTCC)
325 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
326
327 $(RBUILD_INT_)bootstrap.o: $(RBUILD_BASE_)bootstrap.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
328 $(ECHO_HOSTCC)
329 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
330
331 $(RBUILD_INT_)cdfile.o: $(RBUILD_BASE_)cdfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
332 $(ECHO_HOSTCC)
333 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
334
335 $(RBUILD_INT_)compilationunit.o: $(RBUILD_BASE_)compilationunit.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
336 $(ECHO_HOSTCC)
337 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
338
339 $(RBUILD_INT_)compilationunitsupportcode.o: $(RBUILD_BASE_)compilationunitsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
340 $(ECHO_HOSTCC)
341 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
342
343 $(RBUILD_INT_)compilerdirective.o: $(RBUILD_BASE_)compilerdirective.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
344 $(ECHO_HOSTCC)
345 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
346
347 $(RBUILD_INT_)compilerflag.o: $(RBUILD_BASE_)compilerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
348 $(ECHO_HOSTCC)
349 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
350
351 $(RBUILD_INT_)configuration.o: $(RBUILD_BASE_)configuration.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
352 $(ECHO_HOSTCC)
353 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
354
355 $(RBUILD_INT_)define.o: $(RBUILD_BASE_)define.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
356 $(ECHO_HOSTCC)
357 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
358
359 $(RBUILD_INT_)directory.o: $(RBUILD_BASE_)directory.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
360 $(ECHO_HOSTCC)
361 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
362
363 $(RBUILD_INT_)exception.o: $(RBUILD_BASE_)exception.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
364 $(ECHO_HOSTCC)
365 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
366
367 $(RBUILD_INT_)filesupportcode.o: $(RBUILD_BASE_)filesupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
368 $(ECHO_HOSTCC)
369 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
370
371 $(RBUILD_INT_)include.o: $(RBUILD_BASE_)include.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
372 $(ECHO_HOSTCC)
373 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
374
375 $(RBUILD_INT_)installfile.o: $(RBUILD_BASE_)installfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
376 $(ECHO_HOSTCC)
377 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
378
379 $(RBUILD_INT_)linkerflag.o: $(RBUILD_BASE_)linkerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
380 $(ECHO_HOSTCC)
381 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
382
383 $(RBUILD_INT_)linkerscript.o: $(RBUILD_BASE_)linkerscript.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
384 $(ECHO_HOSTCC)
385 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
386
387 $(RBUILD_INT_)module.o: $(RBUILD_BASE_)module.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
388 $(ECHO_HOSTCC)
389 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
390
391 $(RBUILD_INT_)project.o: $(RBUILD_BASE_)project.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
392 $(ECHO_HOSTCC)
393 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
394
395 $(RBUILD_INT_)rbuild.o: $(RBUILD_BASE_)rbuild.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
396 $(ECHO_HOSTCC)
397 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
398
399 $(RBUILD_INT_)rule.o: $(RBUILD_BASE_)rule.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
400 $(ECHO_HOSTCC)
401 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
402
403 $(RBUILD_INT_)stubbedcomponent.o: $(RBUILD_BASE_)stubbedcomponent.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
404 $(ECHO_HOSTCC)
405 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
406
407 $(RBUILD_INT_)syssetupgenerator.o: $(RBUILD_BASE_)syssetupgenerator.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
408 $(ECHO_HOSTCC)
409 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
410
411 $(RBUILD_INT_)wineresource.o: $(RBUILD_BASE_)wineresource.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
412 $(ECHO_HOSTCC)
413 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
414
415 $(RBUILD_INT_)xmlnode.o: $(RBUILD_BASE_)xmlnode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
416 $(ECHO_HOSTCC)
417 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
418
419 $(RBUILD_INT_)testsupportcode.o: $(RBUILD_BASE_)testsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
420 $(ECHO_HOSTCC)
421 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
422
423 $(RBUILD_BACKEND_INT_)backend.o: $(RBUILD_BACKEND_BASE_)backend.cpp $(RBUILD_HEADERS) | $(RBUILD_BACKEND_INT)
424 $(ECHO_HOSTCC)
425 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
426
427 $(RBUILD_MINGW_INT_)mingw.o: $(RBUILD_MINGW_BASE_)mingw.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
428 $(ECHO_HOSTCC)
429 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
430
431 $(RBUILD_MINGW_INT_)modulehandler.o: $(RBUILD_MINGW_BASE_)modulehandler.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
432 $(ECHO_HOSTCC)
433 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
434
435 $(RBUILD_MINGW_INT_)mstools_detection.o: $(RBUILD_MINGW_BASE_)mstools_detection.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
436 $(ECHO_HOSTCC)
437 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
438
439 $(RBUILD_MINGW_INT_)proxymakefile.o: $(RBUILD_MINGW_BASE_)proxymakefile.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
440 $(ECHO_HOSTCC)
441 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
442
443 $(RBUILD_MINGW_INT_)rule.o: $(RBUILD_MINGW_BASE_)rule.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
444 $(ECHO_HOSTCC)
445 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
446
447 $(RBUILD_DEPMAP_INT_)dependencymap.o: $(RBUILD_DEPMAP_BASE_)dependencymap.cpp $(RBUILD_HEADERS) | $(RBUILD_DEPMAP_INT)
448 $(ECHO_HOSTCC)
449 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
450
451 $(RBUILD_VREPORT_INT_)versionreport.o: $(RBUILD_VREPORT_BASE_)versionreport.cpp $(RBUILD_HEADERS) | $(RBUILD_VREPORT_INT)
452 $(ECHO_HOSTCC)
453 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
454
455 $(RBUILD_MSBUILD_INT_)msbuild.o: $(RBUILD_MSBUILD_BASE_)msbuild.cpp $(RBUILD_HEADERS) | $(RBUILD_MSBUILD_INT)
456 $(ECHO_HOSTCC)
457 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
458
459 $(RBUILD_MSVC_INT_)genguid.o: $(RBUILD_MSVC_BASE_)genguid.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
460 $(ECHO_HOSTCC)
461 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
462
463 $(RBUILD_MSVC_INT_)msvc.o: $(RBUILD_MSVC_BASE_)msvc.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
464 $(ECHO_HOSTCC)
465 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
466
467 $(RBUILD_MSVC_INT_)projmaker.o: $(RBUILD_MSVC_BASE_)projmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
468 $(ECHO_HOSTCC)
469 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
470
471 $(RBUILD_MSVC_INT_)vspropsmaker.o: $(RBUILD_MSVC_BASE_)vspropsmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
472 $(ECHO_HOSTCC)
473 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
474
475 $(RBUILD_MSVC_INT_)propsmaker.o: $(RBUILD_MSVC_BASE_)propsmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
476 $(ECHO_HOSTCC)
477 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
478
479 $(RBUILD_MSVC_INT_)slnmaker.o: $(RBUILD_MSVC_BASE_)slnmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
480 $(ECHO_HOSTCC)
481 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
482
483 $(RBUILD_MSVC_INT_)vcprojmaker.o: $(RBUILD_MSVC_BASE_)vcprojmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
484 $(ECHO_HOSTCC)
485 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
486
487 $(RBUILD_MSVC_INT_)vcxprojmaker.o: $(RBUILD_MSVC_BASE_)vcxprojmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
488 $(ECHO_HOSTCC)
489 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
490
491 $(RBUILD_TEST_TARGET): $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HEADERS) | $(RBUILD_OUT)
492 $(ECHO_HOSTLD)
493 ${host_gpp} $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HOST_LFLAGS) -o $@
494
495 $(RBUILD_TESTS_INT_)cdfiletest.o: $(RBUILD_TESTS_BASE_)cdfiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
496 $(ECHO_HOSTCC)
497 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
498
499 $(RBUILD_TESTS_INT_)compilationunittest.o: $(RBUILD_TESTS_BASE_)compilationunittest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
500 $(ECHO_HOSTCC)
501 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
502
503 $(RBUILD_TESTS_INT_)definetest.o: $(RBUILD_TESTS_BASE_)definetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
504 $(ECHO_HOSTCC)
505 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
506
507 $(RBUILD_TESTS_INT_)functiontest.o: $(RBUILD_TESTS_BASE_)functiontest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
508 $(ECHO_HOSTCC)
509 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
510
511 $(RBUILD_TESTS_INT_)iftest.o: $(RBUILD_TESTS_BASE_)iftest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
512 $(ECHO_HOSTCC)
513 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
514
515 $(RBUILD_TESTS_INT_)includetest.o: $(RBUILD_TESTS_BASE_)includetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
516 $(ECHO_HOSTCC)
517 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
518
519 $(RBUILD_TESTS_INT_)invoketest.o: $(RBUILD_TESTS_BASE_)invoketest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
520 $(ECHO_HOSTCC)
521 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
522
523 $(RBUILD_TESTS_INT_)linkerflagtest.o: $(RBUILD_TESTS_BASE_)linkerflagtest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
524 $(ECHO_HOSTCC)
525 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
526
527 $(RBUILD_TESTS_INT_)moduletest.o: $(RBUILD_TESTS_BASE_)moduletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
528 $(ECHO_HOSTCC)
529 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
530
531 $(RBUILD_TESTS_INT_)projecttest.o: $(RBUILD_TESTS_BASE_)projecttest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
532 $(ECHO_HOSTCC)
533 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
534
535 $(RBUILD_TESTS_INT_)sourcefiletest.o: $(RBUILD_TESTS_BASE_)sourcefiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
536 $(ECHO_HOSTCC)
537 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
538
539 $(RBUILD_TESTS_INT_)symboltest.o: $(RBUILD_TESTS_BASE_)symboltest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
540 $(ECHO_HOSTCC)
541 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
542
543 $(RBUILD_TESTS_INT_)alltests.o: $(RBUILD_TESTS_BASE_)alltests.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
544 $(ECHO_HOSTCC)
545 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
546
547
548 .PHONY: rbuild_test
549 rbuild_test: $(RBUILD_TEST_TARGET)
550 $(ECHO_TEST)
551 $(Q)$(RBUILD_TEST_TARGET)
552
553 .PHONY: rbuild_test_clean
554 rbuild_test_clean: $(RBUILD_TEST_TARGET) $(RBUILD_TESTS_INT)
555 -@$(rm) $(RBUILD_TEST_TARGET) $(RBUILD_TEST_SPECIAL_OBJECTS) 2>$(NUL)
556
557 .PHONY: rbuild_clean
558 rbuild_clean: $(RBUILD_TARGET) $(RBUILD_OBJECTS) $(RBUILD_TESTS_INT)
559 -@$(rm) $(RBUILD_TARGET) $(RBUILD_OBJECTS) 2>$(NUL)
560 clean: rbuild_clean