Replace use of 'makedepend' by 'gcc -M' in test makefiles