looking for a code analysis tool for some legacy c/c++ code on unix specifically to identify dependencies to
Doxygen
is probably what you're looking for. It can provide cross-reference, call graphs and dependency trees without programmer's markups, that seems to be what you need.