I just found a set of cool options in gcc.

gcc -E -H -dI …foo.c

It gives you the tree of #include done from foo.c