* Implement <autoregister>
[reactos.git] / reactos / 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
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 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
88 RBUILD_DEVCPP_BASE = $(RBUILD_BACKEND_BASE_)devcpp
89 RBUILD_DEVCPP_BASE_ = $(RBUILD_DEVCPP_BASE)$(SEP)
90 RBUILD_DEVCPP_INT = $(INTERMEDIATE_)$(RBUILD_DEVCPP_BASE)
91 RBUILD_DEVCPP_INT_ = $(RBUILD_DEVCPP_INT)$(SEP)
92 RBUILD_DEVCPP_OUT = $(OUTPUT_)$(RBUILD_DEVCPP_BASE)
93 RBUILD_DEVCPP_OUT_ = $(RBUILD_DEVCPP_OUT)$(SEP)
94
95 $(RBUILD_DEVCPP_INT): | $(RBUILD_BACKEND_INT)
96 $(ECHO_MKDIR)
97 ${mkdir} $@
98
99 ifneq ($(INTERMEDIATE),$(OUTPUT))
100 $(RBUILD_DEVCPP_OUT): | $(RBUILD_BACKEND_OUT)
101 $(ECHO_MKDIR)
102 ${mkdir} $@
103 endif
104
105 RBUILD_MSVC_BASE = $(RBUILD_BACKEND_BASE_)msvc
106 RBUILD_MSVC_BASE_ = $(RBUILD_MSVC_BASE)$(SEP)
107 RBUILD_MSVC_INT = $(INTERMEDIATE_)$(RBUILD_MSVC_BASE)
108 RBUILD_MSVC_INT_ = $(RBUILD_MSVC_INT)$(SEP)
109 RBUILD_MSVC_OUT = $(OUTPUT_)$(RBUILD_MSVC_BASE)
110 RBUILD_MSVC_OUT_ = $(RBUILD_MSVC_OUT)$(SEP)
111
112 $(RBUILD_MSVC_INT): | $(RBUILD_BACKEND_INT)
113 $(ECHO_MKDIR)
114 ${mkdir} $@
115
116 ifneq ($(INTERMEDIATE),$(OUTPUT))
117 $(RBUILD_MSVC_OUT): | $(RBUILD_BACKEND_OUT)
118 $(ECHO_MKDIR)
119 ${mkdir} $@
120 endif
121
122
123 RBUILD_TARGET = \
124 $(EXEPREFIX)$(RBUILD_OUT_)rbuild$(EXEPOSTFIX)
125
126 RBUILD_TEST_TARGET = \
127 $(EXEPREFIX)$(RBUILD_OUT_)rbuild_test$(EXEPOSTFIX)
128
129 RBUILD_BACKEND_MINGW_BASE_SOURCES = $(addprefix $(RBUILD_MINGW_BASE_), \
130 mingw.cpp \
131 modulehandler.cpp \
132 proxymakefile.cpp \
133 )
134
135 RBUILD_BACKEND_DEVCPP_BASE_SOURCES = $(addprefix $(RBUILD_DEVCPP_BASE_), \
136 devcpp.cpp \
137 )
138
139 RBUILD_BACKEND_MSVC_BASE_SOURCES = $(addprefix $(RBUILD_MSVC_BASE_), \
140 genguid.cpp \
141 msvc.cpp \
142 msvcmaker.cpp \
143 vcprojmaker.cpp \
144 )
145
146 RBUILD_BACKEND_SOURCES = \
147 $(RBUILD_BACKEND_MINGW_BASE_SOURCES) \
148 $(RBUILD_BACKEND_DEVCPP_BASE_SOURCES) \
149 $(RBUILD_BACKEND_MSVC_BASE_SOURCES) \
150 $(RBUILD_BACKEND_BASE_)backend.cpp
151
152 RBUILD_COMMON_SOURCES = \
153 $(RBUILD_BACKEND_SOURCES) \
154 $(addprefix $(RBUILD_BASE_), \
155 global.cpp \
156 automaticdependency.cpp \
157 bootstrap.cpp \
158 cdfile.cpp \
159 compilationunit.cpp \
160 compilationunitsupportcode.cpp \
161 compilerflag.cpp \
162 configuration.cpp \
163 define.cpp \
164 directory.cpp \
165 exception.cpp \
166 filesupportcode.cpp \
167 include.cpp \
168 installfile.cpp \
169 linkerflag.cpp \
170 linkerscript.cpp \
171 module.cpp \
172 project.cpp \
173 ssprintf.cpp \
174 stubbedcomponent.cpp \
175 syssetupgenerator.cpp \
176 testsupportcode.cpp \
177 wineresource.cpp \
178 XML.cpp \
179 )
180
181 RBUILD_SPECIAL_SOURCES = \
182 $(RBUILD_BASE_)rbuild.cpp
183
184 RBUILD_SOURCES = \
185 $(RBUILD_COMMON_SOURCES) \
186 $(RBUILD_SPECIAL_SOURCES)
187
188 RBUILD_COMMON_OBJECTS = \
189 $(addprefix $(INTERMEDIATE_), $(RBUILD_COMMON_SOURCES:.cpp=.o))
190
191 RBUILD_SPECIAL_OBJECTS = \
192 $(addprefix $(INTERMEDIATE_), $(RBUILD_SPECIAL_SOURCES:.cpp=.o))
193
194 RBUILD_OBJECTS = \
195 $(RBUILD_COMMON_OBJECTS) \
196 $(RBUILD_SPECIAL_OBJECTS)
197
198 RBUILD_BACKEND_DEVCPP_HEADERS = \
199 devcpp.h
200
201 RBUILD_BACKEND_MSVCCPP_HEADERS = \
202 msvc.h
203
204 RBUILD_BACKEND_MINGW_HEADERS = \
205 mingw.h \
206 modulehandler.h
207
208 RBUILD_BACKEND_HEADERS = \
209 backend.h \
210 $(addprefix devcpp$(SEP), $(RBUILD_BACKEND_DEVCPP_HEADERS)) \
211 $(addprefix msvc$(SEP), $(RBUILD_BACKEND_MSVC_HEADERS)) \
212 $(addprefix mingw$(SEP), $(RBUILD_BACKEND_MINGW_HEADERS))
213
214 RBUILD_HEADERS = \
215 $(addprefix $(RBUILD_BASE_), \
216 exception.h \
217 pch.h \
218 rbuild.h \
219 ssprintf.h \
220 test.h \
221 XML.h \
222 $(addprefix backend$(SEP), $(RBUILD_BACKEND_HEADERS)) \
223 )
224
225 RBUILD_TESTS = \
226 tests$(SEP)cdfiletest.cpp \
227 tests$(SEP)compilationunittest.cpp \
228 tests$(SEP)definetest.cpp \
229 tests$(SEP)functiontest.cpp \
230 tests$(SEP)iftest.cpp \
231 tests$(SEP)includetest.cpp \
232 tests$(SEP)invoketest.cpp \
233 tests$(SEP)linkerflagtest.cpp \
234 tests$(SEP)moduletest.cpp \
235 tests$(SEP)projecttest.cpp \
236 tests$(SEP)sourcefiletest.cpp \
237 tests$(SEP)symboltest.cpp
238
239 RBUILD_TEST_SPECIAL_SOURCES = \
240 $(addprefix $(RBUILD_BASE_), $(RBUILD_TESTS)) \
241 $(RBUILD_BASE_)tests$(SEP)alltests.cpp
242
243 RBUILD_TEST_SOURCES = \
244 $(RBUILD_COMMON_SOURCES) \
245 $(RBUILD_TEST_SPECIAL_SOURCES)
246
247 RBUILD_TEST_SPECIAL_OBJECTS = \
248 $(addprefix $(INTERMEDIATE_), $(RBUILD_TEST_SPECIAL_SOURCES:.cpp=.o))
249
250 RBUILD_TEST_OBJECTS = \
251 $(RBUILD_COMMON_OBJECTS) \
252 $(RBUILD_TEST_SPECIAL_OBJECTS)
253
254 RBUILD_HOST_CXXFLAGS = -I$(RBUILD_BASE) -I$(INFLIB_BASE) $(TOOLS_CPPFLAGS)
255
256 RBUILD_HOST_LFLAGS = $(TOOLS_LFLAGS)
257
258 .PHONY: rbuild
259 rbuild: $(RBUILD_TARGET)
260
261 $(RBUILD_TARGET): $(RBUILD_OBJECTS) $(INFLIB_HOST_TARGET) | $(RBUILD_OUT)
262 $(ECHO_LD)
263 ${host_gpp} $(RBUILD_OBJECTS) $(INFLIB_HOST_TARGET) $(RBUILD_HOST_LFLAGS) -o $@
264
265 $(RBUILD_INT_)global.o: $(RBUILD_BASE_)global.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
266 $(ECHO_CC)
267 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
268
269 $(RBUILD_INT_)automaticdependency.o: $(RBUILD_BASE_)automaticdependency.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
270 $(ECHO_CC)
271 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
272
273 $(RBUILD_INT_)bootstrap.o: $(RBUILD_BASE_)bootstrap.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
274 $(ECHO_CC)
275 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
276
277 $(RBUILD_INT_)cdfile.o: $(RBUILD_BASE_)cdfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
278 $(ECHO_CC)
279 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
280
281 $(RBUILD_INT_)compilationunit.o: $(RBUILD_BASE_)compilationunit.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
282 $(ECHO_CC)
283 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
284
285 $(RBUILD_INT_)compilationunitsupportcode.o: $(RBUILD_BASE_)compilationunitsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
286 $(ECHO_CC)
287 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
288
289 $(RBUILD_INT_)compilerflag.o: $(RBUILD_BASE_)compilerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
290 $(ECHO_CC)
291 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
292
293 $(RBUILD_INT_)configuration.o: $(RBUILD_BASE_)configuration.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
294 $(ECHO_CC)
295 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
296
297 $(RBUILD_INT_)define.o: $(RBUILD_BASE_)define.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
298 $(ECHO_CC)
299 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
300
301 $(RBUILD_INT_)directory.o: $(RBUILD_BASE_)directory.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
302 $(ECHO_CC)
303 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
304
305 $(RBUILD_INT_)exception.o: $(RBUILD_BASE_)exception.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
306 $(ECHO_CC)
307 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
308
309 $(RBUILD_INT_)filesupportcode.o: $(RBUILD_BASE_)filesupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
310 $(ECHO_CC)
311 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
312
313 $(RBUILD_INT_)include.o: $(RBUILD_BASE_)include.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
314 $(ECHO_CC)
315 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
316
317 $(RBUILD_INT_)installfile.o: $(RBUILD_BASE_)installfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
318 $(ECHO_CC)
319 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
320
321 $(RBUILD_INT_)linkerflag.o: $(RBUILD_BASE_)linkerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
322 $(ECHO_CC)
323 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
324
325 $(RBUILD_INT_)linkerscript.o: $(RBUILD_BASE_)linkerscript.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
326 $(ECHO_CC)
327 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
328
329 $(RBUILD_INT_)module.o: $(RBUILD_BASE_)module.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
330 $(ECHO_CC)
331 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
332
333 $(RBUILD_INT_)project.o: $(RBUILD_BASE_)project.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
334 $(ECHO_CC)
335 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
336
337 $(RBUILD_INT_)rbuild.o: $(RBUILD_BASE_)rbuild.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
338 $(ECHO_CC)
339 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
340
341 $(RBUILD_INT_)ssprintf.o: $(RBUILD_BASE_)ssprintf.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
342 $(ECHO_CC)
343 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
344
345 $(RBUILD_INT_)stubbedcomponent.o: $(RBUILD_BASE_)stubbedcomponent.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
346 $(ECHO_CC)
347 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
348
349 $(RBUILD_INT_)syssetupgenerator.o: $(RBUILD_BASE_)syssetupgenerator.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
350 $(ECHO_CC)
351 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
352
353 $(RBUILD_INT_)wineresource.o: $(RBUILD_BASE_)wineresource.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
354 $(ECHO_CC)
355 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
356
357 $(RBUILD_INT_)testsupportcode.o: $(RBUILD_BASE_)testsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
358 $(ECHO_CC)
359 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
360
361 $(RBUILD_INT_)XML.o: $(RBUILD_BASE_)XML.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
362 $(ECHO_CC)
363 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
364
365 $(RBUILD_BACKEND_INT_)backend.o: $(RBUILD_BACKEND_BASE_)backend.cpp $(RBUILD_HEADERS) | $(RBUILD_BACKEND_INT)
366 $(ECHO_CC)
367 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
368
369 $(RBUILD_MINGW_INT_)mingw.o: $(RBUILD_MINGW_BASE_)mingw.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
370 $(ECHO_CC)
371 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
372
373 $(RBUILD_MINGW_INT_)modulehandler.o: $(RBUILD_MINGW_BASE_)modulehandler.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
374 $(ECHO_CC)
375 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
376
377 $(RBUILD_MINGW_INT_)proxymakefile.o: $(RBUILD_MINGW_BASE_)proxymakefile.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
378 $(ECHO_CC)
379 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
380
381 $(RBUILD_DEVCPP_INT_)devcpp.o: $(RBUILD_DEVCPP_BASE_)devcpp.cpp $(RBUILD_HEADERS) | $(RBUILD_DEVCPP_INT)
382 $(ECHO_CC)
383 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
384
385 $(RBUILD_MSVC_INT_)genguid.o: $(RBUILD_MSVC_BASE_)genguid.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
386 $(ECHO_CC)
387 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
388
389 $(RBUILD_MSVC_INT_)msvc.o: $(RBUILD_MSVC_BASE_)msvc.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
390 $(ECHO_CC)
391 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
392
393 $(RBUILD_MSVC_INT_)msvcmaker.o: $(RBUILD_MSVC_BASE_)msvcmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
394 $(ECHO_CC)
395 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
396
397 $(RBUILD_MSVC_INT_)vcprojmaker.o: $(RBUILD_MSVC_BASE_)vcprojmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
398 $(ECHO_CC)
399 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
400
401 $(RBUILD_TEST_TARGET): $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_TARGET) $(RBUILD_HEADERS) | $(RBUILD_OUT)
402 $(ECHO_LD)
403 ${host_gpp} $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_TARGET) $(RBUILD_HOST_LFLAGS) -o $@
404
405 $(RBUILD_TESTS_INT_)cdfiletest.o: $(RBUILD_TESTS_BASE_)cdfiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
406 $(ECHO_CC)
407 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
408
409 $(RBUILD_TESTS_INT_)compilationunittest.o: $(RBUILD_TESTS_BASE_)compilationunittest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
410 $(ECHO_CC)
411 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
412
413 $(RBUILD_TESTS_INT_)definetest.o: $(RBUILD_TESTS_BASE_)definetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
414 $(ECHO_CC)
415 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
416
417 $(RBUILD_TESTS_INT_)functiontest.o: $(RBUILD_TESTS_BASE_)functiontest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
418 $(ECHO_CC)
419 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
420
421 $(RBUILD_TESTS_INT_)iftest.o: $(RBUILD_TESTS_BASE_)iftest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
422 $(ECHO_CC)
423 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
424
425 $(RBUILD_TESTS_INT_)includetest.o: $(RBUILD_TESTS_BASE_)includetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
426 $(ECHO_CC)
427 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
428
429 $(RBUILD_TESTS_INT_)invoketest.o: $(RBUILD_TESTS_BASE_)invoketest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
430 $(ECHO_CC)
431 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
432
433 $(RBUILD_TESTS_INT_)linkerflagtest.o: $(RBUILD_TESTS_BASE_)linkerflagtest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
434 $(ECHO_CC)
435 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
436
437 $(RBUILD_TESTS_INT_)moduletest.o: $(RBUILD_TESTS_BASE_)moduletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
438 $(ECHO_CC)
439 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
440
441 $(RBUILD_TESTS_INT_)projecttest.o: $(RBUILD_TESTS_BASE_)projecttest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
442 $(ECHO_CC)
443 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
444
445 $(RBUILD_TESTS_INT_)sourcefiletest.o: $(RBUILD_TESTS_BASE_)sourcefiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
446 $(ECHO_CC)
447 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
448
449 $(RBUILD_TESTS_INT_)symboltest.o: $(RBUILD_TESTS_BASE_)symboltest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
450 $(ECHO_CC)
451 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
452
453 $(RBUILD_TESTS_INT_)alltests.o: $(RBUILD_TESTS_BASE_)alltests.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
454 $(ECHO_CC)
455 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
456
457
458 .PHONY: rbuild_test
459 rbuild_test: $(RBUILD_TEST_TARGET)
460 $(ECHO_TEST)
461 $(Q)$(RBUILD_TEST_TARGET)
462
463 .PHONY: rbuild_test_clean
464 rbuild_test_clean: $(RBUILD_TEST_TARGET) $(RBUILD_TESTS_INT)
465 -@$(rm) $(RBUILD_TEST_TARGET) $(RBUILD_TEST_SPECIAL_OBJECTS) 2>$(NUL)
466
467 .PHONY: rbuild_clean
468 rbuild_clean: $(RBUILD_TARGET) $(RBUILD_OBJECTS) $(RBUILD_TESTS_INT)
469 -@$(rm) $(RBUILD_TARGET) $(RBUILD_OBJECTS) 2>$(NUL)
470 clean: rbuild_clean