LaTeX macro for T(ombstone) diagrams

I was searching for an editor to draw simple T diagrams representing compilation chains, but didn’t find anything good (except combining boxes within DIA). In the end I created a simple LaTeX macro to draw T diagrams, of course, these can be combined to longer chains by simply creating a new image.