These makefile only outputs error reason and error in which file ,but I want to see the whole command , because i want to check whetheer the cross tool chain and compiling parameters are correctly being set /below is make outputs:
ling@ling:~/src/cmakeqnx/build$ make V=99
[ 25%] Building C object src/CMakeFiles/Test.dir/test.c.o
/home/ling/src/cmakeqnx/src/test.c: In function 'add':
/home/ling/src/cmakeqnx/src/test.c:2:11: error: 'sdfsdf' undeclared (first use in this function)
{return 1;sdfsdf
^~~~~~
/home/ling/src/cmakeqnx/src/test.c:2:11: note: each undeclared identifier is reported only once for each function it appears in
/home/ling/src/cmakeqnx/src/test.c:2:17: error: expected ';' before '}' token
{return 1;sdfsdf
^
;
}
~
src/CMakeFiles/Test.dir/build.make:62: recipe for target 'src/CMakeFiles/Test.dir/test.c.o' failed
make[2]: *** [src/CMakeFiles/Test.dir/test.c.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'src/CMakeFiles/Test.dir/all' failed
make[1]: *** [src/CMakeFiles/Test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
ling@ling:~/src/cmakeqnx/build$