Add support of silent rules

With a project built in silent rules (./configure --enable-silent-rules
or make V=0) the output is in the form:
  CC     foo.o
  CXX    bar.o