Seems like RedHat7's makedepend isn't too nice. "makedepend file.cpp" creates Makefile entries like "file.c.o: file.h". It doesn't seem to be a configuration option or something. It is *very* funny to chase random segfaults a whole day just because "make depend" doesn't do is job. Ho-ho.