move xml.h/cpp and ssprintf.h/cpp up a directory, make both rbuild and buildno use...
[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
258 $(RBUILD_TARGET): $(RBUILD_OBJECTS) $(XML_SSPRINTF_OBJECTS) $(INFLIB_HOST_OBJECTS) | $(RBUILD_OUT)
259 $(ECHO_LD)
260 ${host_gpp} $^ $(RBUILD_HOST_LFLAGS) -o $@
261
262 $(RBUILD_INT_)global.o: $(RBUILD_BASE_)global.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
263 $(ECHO_CC)
264 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
265
266 $(RBUILD_INT_)automaticdependency.o: $(RBUILD_BASE_)automaticdependency.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
267 $(ECHO_CC)
268 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
269
270 $(RBUILD_INT_)bootstrap.o: $(RBUILD_BASE_)bootstrap.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
271 $(ECHO_CC)
272 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
273
274 $(RBUILD_INT_)cdfile.o: $(RBUILD_BASE_)cdfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
275 $(ECHO_CC)
276 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
277
278 $(RBUILD_INT_)compilationunit.o: $(RBUILD_BASE_)compilationunit.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
279 $(ECHO_CC)
280 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
281
282 $(RBUILD_INT_)compilationunitsupportcode.o: $(RBUILD_BASE_)compilationunitsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
283 $(ECHO_CC)
284 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
285
286 $(RBUILD_INT_)compilerflag.o: $(RBUILD_BASE_)compilerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
287 $(ECHO_CC)
288 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
289
290 $(RBUILD_INT_)configuration.o: $(RBUILD_BASE_)configuration.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
291 $(ECHO_CC)
292 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
293
294 $(RBUILD_INT_)define.o: $(RBUILD_BASE_)define.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
295 $(ECHO_CC)
296 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
297
298 $(RBUILD_INT_)directory.o: $(RBUILD_BASE_)directory.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
299 $(ECHO_CC)
300 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
301
302 $(RBUILD_INT_)exception.o: $(RBUILD_BASE_)exception.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
303 $(ECHO_CC)
304 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
305
306 $(RBUILD_INT_)filesupportcode.o: $(RBUILD_BASE_)filesupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
307 $(ECHO_CC)
308 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
309
310 $(RBUILD_INT_)include.o: $(RBUILD_BASE_)include.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
311 $(ECHO_CC)
312 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
313
314 $(RBUILD_INT_)installfile.o: $(RBUILD_BASE_)installfile.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
315 $(ECHO_CC)
316 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
317
318 $(RBUILD_INT_)linkerflag.o: $(RBUILD_BASE_)linkerflag.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
319 $(ECHO_CC)
320 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
321
322 $(RBUILD_INT_)linkerscript.o: $(RBUILD_BASE_)linkerscript.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
323 $(ECHO_CC)
324 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
325
326 $(RBUILD_INT_)module.o: $(RBUILD_BASE_)module.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
327 $(ECHO_CC)
328 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
329
330 $(RBUILD_INT_)project.o: $(RBUILD_BASE_)project.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
331 $(ECHO_CC)
332 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
333
334 $(RBUILD_INT_)rbuild.o: $(RBUILD_BASE_)rbuild.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
335 $(ECHO_CC)
336 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
337
338 $(RBUILD_INT_)stubbedcomponent.o: $(RBUILD_BASE_)stubbedcomponent.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
339 $(ECHO_CC)
340 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
341
342 $(RBUILD_INT_)syssetupgenerator.o: $(RBUILD_BASE_)syssetupgenerator.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
343 $(ECHO_CC)
344 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
345
346 $(RBUILD_INT_)wineresource.o: $(RBUILD_BASE_)wineresource.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
347 $(ECHO_CC)
348 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
349
350 $(RBUILD_INT_)testsupportcode.o: $(RBUILD_BASE_)testsupportcode.cpp $(RBUILD_HEADERS) | $(RBUILD_INT)
351 $(ECHO_CC)
352 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
353
354 $(RBUILD_BACKEND_INT_)backend.o: $(RBUILD_BACKEND_BASE_)backend.cpp $(RBUILD_HEADERS) | $(RBUILD_BACKEND_INT)
355 $(ECHO_CC)
356 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
357
358 $(RBUILD_MINGW_INT_)mingw.o: $(RBUILD_MINGW_BASE_)mingw.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
359 $(ECHO_CC)
360 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
361
362 $(RBUILD_MINGW_INT_)modulehandler.o: $(RBUILD_MINGW_BASE_)modulehandler.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
363 $(ECHO_CC)
364 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
365
366 $(RBUILD_MINGW_INT_)proxymakefile.o: $(RBUILD_MINGW_BASE_)proxymakefile.cpp $(RBUILD_HEADERS) | $(RBUILD_MINGW_INT)
367 $(ECHO_CC)
368 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
369
370 $(RBUILD_DEVCPP_INT_)devcpp.o: $(RBUILD_DEVCPP_BASE_)devcpp.cpp $(RBUILD_HEADERS) | $(RBUILD_DEVCPP_INT)
371 $(ECHO_CC)
372 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
373
374 $(RBUILD_MSVC_INT_)genguid.o: $(RBUILD_MSVC_BASE_)genguid.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
375 $(ECHO_CC)
376 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
377
378 $(RBUILD_MSVC_INT_)msvc.o: $(RBUILD_MSVC_BASE_)msvc.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
379 $(ECHO_CC)
380 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
381
382 $(RBUILD_MSVC_INT_)msvcmaker.o: $(RBUILD_MSVC_BASE_)msvcmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
383 $(ECHO_CC)
384 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
385
386 $(RBUILD_MSVC_INT_)vcprojmaker.o: $(RBUILD_MSVC_BASE_)vcprojmaker.cpp $(RBUILD_HEADERS) | $(RBUILD_MSVC_INT)
387 $(ECHO_CC)
388 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
389
390 $(RBUILD_TEST_TARGET): $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HEADERS) | $(RBUILD_OUT)
391 $(ECHO_LD)
392 ${host_gpp} $(RBUILD_TEST_OBJECTS) $(INFLIB_HOST_OBJECTS) $(RBUILD_HOST_LFLAGS) -o $@
393
394 $(RBUILD_TESTS_INT_)cdfiletest.o: $(RBUILD_TESTS_BASE_)cdfiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
395 $(ECHO_CC)
396 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
397
398 $(RBUILD_TESTS_INT_)compilationunittest.o: $(RBUILD_TESTS_BASE_)compilationunittest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
399 $(ECHO_CC)
400 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
401
402 $(RBUILD_TESTS_INT_)definetest.o: $(RBUILD_TESTS_BASE_)definetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
403 $(ECHO_CC)
404 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
405
406 $(RBUILD_TESTS_INT_)functiontest.o: $(RBUILD_TESTS_BASE_)functiontest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
407 $(ECHO_CC)
408 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
409
410 $(RBUILD_TESTS_INT_)iftest.o: $(RBUILD_TESTS_BASE_)iftest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
411 $(ECHO_CC)
412 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
413
414 $(RBUILD_TESTS_INT_)includetest.o: $(RBUILD_TESTS_BASE_)includetest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
415 $(ECHO_CC)
416 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
417
418 $(RBUILD_TESTS_INT_)invoketest.o: $(RBUILD_TESTS_BASE_)invoketest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
419 $(ECHO_CC)
420 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
421
422 $(RBUILD_TESTS_INT_)linkerflagtest.o: $(RBUILD_TESTS_BASE_)linkerflagtest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
423 $(ECHO_CC)
424 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
425
426 $(RBUILD_TESTS_INT_)moduletest.o: $(RBUILD_TESTS_BASE_)moduletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
427 $(ECHO_CC)
428 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
429
430 $(RBUILD_TESTS_INT_)projecttest.o: $(RBUILD_TESTS_BASE_)projecttest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
431 $(ECHO_CC)
432 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
433
434 $(RBUILD_TESTS_INT_)sourcefiletest.o: $(RBUILD_TESTS_BASE_)sourcefiletest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
435 $(ECHO_CC)
436 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
437
438 $(RBUILD_TESTS_INT_)symboltest.o: $(RBUILD_TESTS_BASE_)symboltest.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
439 $(ECHO_CC)
440 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
441
442 $(RBUILD_TESTS_INT_)alltests.o: $(RBUILD_TESTS_BASE_)alltests.cpp $(RBUILD_HEADERS) | $(RBUILD_TESTS_INT)
443 $(ECHO_CC)
444 ${host_gpp} $(RBUILD_HOST_CXXFLAGS) -c $< -o $@
445
446
447 .PHONY: rbuild_test
448 rbuild_test: $(RBUILD_TEST_TARGET)
449 $(ECHO_TEST)
450 $(Q)$(RBUILD_TEST_TARGET)
451
452 .PHONY: rbuild_test_clean
453 rbuild_test_clean: $(RBUILD_TEST_TARGET) $(RBUILD_TESTS_INT)
454 -@$(rm) $(RBUILD_TEST_TARGET) $(RBUILD_TEST_SPECIAL_OBJECTS) 2>$(NUL)
455
456 .PHONY: rbuild_clean
457 rbuild_clean: $(RBUILD_TARGET) $(RBUILD_OBJECTS) $(RBUILD_TESTS_INT)
458 -@$(rm) $(RBUILD_TARGET) $(RBUILD_OBJECTS) 2>$(NUL)
459 clean: rbuild_clean