freebsd-to-rtems: Fix the Makefile test generator.

This removes the make warnings.
This commit is contained in:
Chris Johns 2015-05-16 16:52:52 +10:00
parent 4dab3a04bb
commit 6dc8649393

View File

@ -73,13 +73,13 @@ class TestFragementComposer(builder.BuildSystemFragmentComposer):
for fileFragment in self.fileFragments:
makefileFragment += testOFiles + ' += ' + testDir + '/' + fileFragment + '.o\n' \
+ testDFiles + ' += ' + testDir + '/' + fileFragment + '.d\n'
makefileFragment += '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
'\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -lz -o $@\n' \
+ testCollection + ' += $(' + testPrefix + ')\n' \
'O_FILES += $(' + testOFiles + ')\n' \
'D_FILES += $(' + testDFiles + ')\n'
if self.runTest:
makefileFragment += 'RUN_' + testCollection + ' += $(' + testPrefix + ')\n'
makefileFragment += '$(' + testPrefix + '): $(' + testOFiles + ') $(LIB)\n' \
'\t$(LINK.c) -Wl,-Map,' + testMap + ' $^ -lm -lz -o $@\n' \
+ testCollection + ' += $(' + testPrefix + ')\n' \
'O_FILES += $(' + testOFiles + ')\n' \
'D_FILES += $(' + testDFiles + ')\n'
if self.runTest:
makefileFragment += 'RUN_' + testCollection + ' += $(' + testPrefix + ')\n'
return makefileFragment
class KVMSymbolsFragmentComposer(builder.BuildSystemFragmentComposer):