Compile with:

   cc -O -o xmoontool xmoontool.c -lXm -lXt -lX11 -lm

and, as always xmoontool.1 is the man page.  Format with your favorite roff
command (ie: nroff -t -man xmoontool.1 | less)
