The code for # make depend is missing in the Makefile.in
I add some code, which works fine on unix machines.
It uses mainly the -M switch of gcc. The other stuff sets some variables for the move command and loads the generated .depend file
Patch for the Makefile.in
Patch for the Makefile.in