Added support for ROS_AUTOMAKE variable.
[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 stubbedcomponent.cpp \
174 syssetupgenerator.cpp \
175 testsupportcode.cpp \
176 wineresource.cpp \
177 )
178
179 RBUILD_SPECIAL_SOURCES = \
180 $(RBUILD_BASE_)rbuild.cpp
181
182 RBUILD_SOURCES = \
183 $(RBUILD_COMMON_SOURCES) \
184 $(RBUILD_SPECIAL_SOURCES)
185
186 RBUILD_COMMON_OBJECTS = \
187 $(addprefix $(INTERMEDIATE_), $(RBUILD_COMMON_SOURCES:.cpp=.o))
188
189 RBUILD_SPECIAL_OBJECTS = \
190 $(addprefix $(INTERMEDIATE_), $(RBUILD_SPECIAL_SOURCES:.cpp=.o))
191
192 RBUILD_OBJECTS = \
193 $(RBUILD_COMMON_OBJECTS) \
194 $(RBUILD_SPECIAL_OBJECTS)
195
196 RBUILD_BACKEND_DEVCPP_HEADERS = \
197 devcpp.h
198
199 RBUILD_BACKEND_MSVCCPP_HEADERS = \
200 msvc.h
201
202 RBUILD_BACKEND_MINGW_HEADERS = \
203 mingw.h \
204 modulehandler.h
205
206 RBUILD_BACKEND_HEADERS = \
207 backend.h \
208 $(addprefix devcpp$(SEP), $(RBUILD_BACKEND_DEVCPP_HEADERS)) \
209 $(addprefix msvc$(SEP), $(RBUILD_BACKEND_MSVC_HEADERS)) \
210 $(addprefix mingw$(SEP), $(RBUILD_BACKEND_MINGW_HEADERS))
211
212 RBUILD_HEADERS = \
213 $(addprefix $(RBUILD_BASE_), \
214 exception.h \
215 pch.h \
216 rbuild.h \
217 test.h \
218 $(addprefix backend$(SEP), $(RBUILD_BACKEND_HEADERS)) \
219 ) \
220 $(XML_SSPRINTF_HEADERS)
221
222 RBUILD_TESTS = \
223 tests$(SEP)cdfiletest.cpp \
224 tests$(SEP)compilationunittest.cpp \
225 tests$(SEP)definetest.cpp \
226 tests$(SEP)functiontest.cpp \
227 tests$(SEP)iftest.cpp \
228 tests$(SEP)includetest.cpp \
229 tests$(SEP)invoketest.cpp \
230 tests$(SEP)linkerflagtest.cpp \
231 tests$(SEP)moduletest.cpp \
232 tests$(SEP)projecttest.cpp \
233 tests$(SEP)sourcefiletest.cpp \
234 tests$(SEP)symboltest.cpp
235
236 RBUILD_TEST_SPECIAL_SOURCES = \
237 $(addprefix $(RBUILD_BASE_), $(RBUILD_TESTS)) \
238 $(RBUILD_BASE_)tests$(SEP)alltests.cpp
239
240 RBUILD_TEST_SOURCES = \
241 $(RBUILD_COMMON_SOURCES) \
242 $(RBUILD_TEST_SPECIAL_SOURCES)
243
244 RBUILD_TEST_SPECIAL_OBJECTS = \
245 $(addprefix $(INTERMEDIATE_), $(RBUILD_TEST_SPECIAL_SOURCES:.cpp=.o))
246
247 RBUILD_TEST_OBJECTS = \
248 $(RBUILD_COMMON_OBJECTS) \
249 $(RBUILD_TEST_SPECIAL_OBJECTS)
250
251 RBUILD_HOST_CXXFLAGS = -I$(RBUILD_BASE) -I$(TOOLS_BASE) -I$(INFLIB_BASE) $(TOOLS_CPPFLAGS)
252
253 RBUILD_HOST_LFLAGS = $(TOOLS_LFLAGS)
254
255 .PHONY: rbuild
256 rbuild: $(RBUILD_TARGET)
257 host_gpp += -g
258
259 $(RBUILD_TARGET): $(RBUILD_OBJECTS) $(XML_SSPRINTF_OBJECTS) $(INFLIB_HOST_OBJECTS) | $(RBUILD_OUT)
260 $(ECHO_LD)
261 ${host_gpp} $^ $(RBUILD_HOST_LFLAGS) -o $@
262
263 $(RBUILD_INT_)global.o: $(RBUILD_BASE_)global.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
264 $(ECHO_CC)
265 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
266
267 $(RBUILD_INT_)automaticdependency.o: $(RBUILD_BASE_)automaticdependency.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
268 $(ECHO_CC)
269 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
270
271 $(RBUILD_INT_)bootstrap.o: $(RBUILD_BASE_)bootstrap.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
272 $(ECHO_CC)
273 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
274
275 $(RBUILD_INT_)cdfile.o: $(RBUILD_BASE_)cdfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
276 $(ECHO_CC)
277 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
278
279 $(RBUILD_INT_)compilationunit.o: $(RBUILD_BASE_)compilationunit.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
280 $(ECHO_CC)
281 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
282
283 $(RBUILD_INT_)compilationunitsupportcode.o: $(RBUILD_BASE_)compilationunitsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
284 $(ECHO_CC)
285 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
286
287 $(RBUILD_INT_)compilerflag.o: $(RBUILD_BASE_)compilerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
288 $(ECHO_CC)
289 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
290
291 $(RBUILD_INT_)configuration.o: $(RBUILD_BASE_)configuration.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
292 $(ECHO_CC)
293 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
294
295 $(RBUILD_INT_)define.o: $(RBUILD_BASE_)define.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
296 $(ECHO_CC)
297 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
298
299 $(RBUILD_INT_)directory.o: $(RBUILD_BASE_)directory.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
300 $(ECHO_CC)
301 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
302
303 $(RBUILD_INT_)exception.o: $(RBUILD_BASE_)exception.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
304 $(ECHO_CC)
305 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
306
307 $(RBUILD_INT_)filesupportcode.o: $(RBUILD_BASE_)filesupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
308 $(ECHO_CC)
309 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
310
311 $(RBUILD_INT_)include.o: $(RBUILD_BASE_)include.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
312 $(ECHO_CC)
313 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
314
315 $(RBUILD_INT_)installfile.o: $(RBUILD_BASE_)installfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
316 $(ECHO_CC)
317 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
318
319 $(RBUILD_INT_)linkerflag.o: $(RBUILD_BASE_)linkerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
320 $(ECHO_CC)
321 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
322
323 $(RBUILD_INT_)linkerscript.o: $(RBUILD_BASE_)linkerscript.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
324 $(ECHO_CC)
325 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
326
327 $(RBUILD_INT_)module.o: $(RBUILD_BASE_)module.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
328 $(ECHO_CC)
329 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
330
331 $(RBUILD_INT_)project.o: $(RBUILD_BASE_)project.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
332 $(ECHO_CC)
333 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
334
335 $(RBUILD_INT_)rbuild.o: $(RBUILD_BASE_)rbuild.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
336 $(ECHO_CC)
337 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
338
339 $(RBUILD_INT_)stubbedcomponent.o: $(RBUILD_BASE_)stubbedcomponent.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
340 $(ECHO_CC)
341 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
342
343 $(RBUILD_INT_)syssetupgenerator.o: $(RBUILD_BASE_)syssetupgenerator.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
344 $(ECHO_CC)
345 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
346
347 $(RBUILD_INT_)wineresource.o: $(RBUILD_BASE_)wineresource.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
348 $(ECHO_CC)
349 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
350
351 $(RBUILD_INT_)testsupportcode.o: $(RBUILD_BASE_)testsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
352 $(ECHO_CC)
353 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
354
355 $(RBUILD_BACKEND_INT_)backend.o: $(RBUILD_BACKEND_BASE_)backend.cpp $(RBUILD_HEADERS) | $(RBUILD_BACKEND_INT)
356 $(ECHO_CC)
357 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
358
359 $(RBUILD_MINGW_INT_)mingw.o: $(RBUILD_MINGW_BASE_)mingw.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
360 $(ECHO_CC)
361 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
362
363 $(RBUILD_MINGW_INT_)modulehandler.o: $(RBUILD_MINGW_BASE_)modulehandler.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
364 $(ECHO_CC)
365 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
366
367 $(RBUILD_MINGW_INT_)proxymakefile.o: $(RBUILD_MINGW_BASE_)proxymakefile.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
368 $(ECHO_CC)
369 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
370
371 $(RBUILD_DEVCPP_INT_)devcpp.o: $(RBUILD_DEVCPP_BASE_)devcpp.cpp $(RBUILD_HEADERS) | $(RBUILD_DEVCPP_INT)
372 $(ECHO_CC)
373 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
374
375 $(RBUILD_MSVC_INT_)genguid.o: $(RBUILD_MSVC_BASE_)genguid.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
376 $(ECHO_CC)
377 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
378
379 $(RBUILD_MSVC_INT_)msvc.o: $(RBUILD_MSVC_BASE_)msvc.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
380 $(ECHO_CC)
381 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
382
383 $(RBUILD_MSVC_INT_)msvcmaker.o: $(RBUILD_MSVC_BASE_)msvcmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
384 $(ECHO_CC)
385 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
386
387 $(RBUILD_MSVC_INT_)vcprojmaker.o: $(RBUILD_MSVC_BASE_)vcprojmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
388 $(ECHO_CC)
389 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
390
391 $(RBUILD_TEST_TARGET): $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HEADERS) | $(RBUILD_OUT)
392 $(ECHO_LD)
393 ${host_gpp} $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HOST_LFLAGS) -o $@
394
395 $(RBUILD_TESTS_INT_)cdfiletest.o: $(RBUILD_TESTS_BASE_)cdfiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
396 $(ECHO_CC)
397 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
398
399 $(RBUILD_TESTS_INT_)compilationunittest.o: $(RBUILD_TESTS_BASE_)compilationunittest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
400 $(ECHO_CC)
401 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
402
403 $(RBUILD_TESTS_INT_)definetest.o: $(RBUILD_TESTS_BASE_)definetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
404 $(ECHO_CC)
405 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
406
407 $(RBUILD_TESTS_INT_)functiontest.o: $(RBUILD_TESTS_BASE_)functiontest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
408 $(ECHO_CC)
409 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
410
411 $(RBUILD_TESTS_INT_)iftest.o: $(RBUILD_TESTS_BASE_)iftest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
412 $(ECHO_CC)
413 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
414
415 $(RBUILD_TESTS_INT_)includetest.o: $(RBUILD_TESTS_BASE_)includetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
416 $(ECHO_CC)
417 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
418
419 $(RBUILD_TESTS_INT_)invoketest.o: $(RBUILD_TESTS_BASE_)invoketest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
420 $(ECHO_CC)
421 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
422
423 $(RBUILD_TESTS_INT_)linkerflagtest.o: $(RBUILD_TESTS_BASE_)linkerflagtest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
424 $(ECHO_CC)
425 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
426
427 $(RBUILD_TESTS_INT_)moduletest.o: $(RBUILD_TESTS_BASE_)moduletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
428 $(ECHO_CC)
429 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
430
431 $(RBUILD_TESTS_INT_)projecttest.o: $(RBUILD_TESTS_BASE_)projecttest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
432 $(ECHO_CC)
433 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
434
435 $(RBUILD_TESTS_INT_)sourcefiletest.o: $(RBUILD_TESTS_BASE_)sourcefiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
436 $(ECHO_CC)
437 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
438
439 $(RBUILD_TESTS_INT_)symboltest.o: $(RBUILD_TESTS_BASE_)symboltest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
440 $(ECHO_CC)
441 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
442
443 $(RBUILD_TESTS_INT_)alltests.o: $(RBUILD_TESTS_BASE_)alltests.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
444 $(ECHO_CC)
445 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
446
447
448 .PHONY: rbuild_test
449 rbuild_test: $(RBUILD_TEST_TARGET)
450 $(ECHO_TEST)
451 $(Q)$(RBUILD_TEST_TARGET)
452
453 .PHONY: rbuild_test_clean
454 rbuild_test_clean: $(RBUILD_TEST_TARGET) $(RBUILD_TESTS_INT)
455 -@$(rm) $(RBUILD_TEST_TARGET) $(RBUILD_TEST_SPECIAL_OBJECTS) 2>$(NUL)
456
457 .PHONY: rbuild_clean
458 rbuild_clean: $(RBUILD_TARGET) $(RBUILD_OBJECTS) $(RBUILD_TESTS_INT)
459 -@$(rm) $(RBUILD_TARGET) $(RBUILD_OBJECTS) 2>$(NUL)
460 clean: rbuild_clean