# run compile test on the new file.
# DEBUG: echo "TRY: ${cc} -o testHeaderDeps.o ./testHeaderDeps_${hdr}.cc"
- ${cc} -o testHeaderDeps_${hdr}.o ./testHeaderDeps_${hdr}.cc
+ ${cc} -c -o testHeaderDeps_${hdr}.o ./testHeaderDeps_${hdr}.cc
rm ./testHeaderDeps_${hdr}.cc
fi
if [ ! -f testHeaderDeps_${hdr}.o ]; then
fi
echo "OK."
# unit-tests require an app to run.
- # our most-recent object suits this purpose
- cp ./testHeaderDeps_${hdr}.o ./testHeaders
+ # our most-recent object suits this purpose.
+ # let's link or some tests will fail
+ ${cc} ./testHeaderDeps_${hdr}.o -o ./testHeaders
done