makedepend throws lots of errors - can we use gcc -MM please
A BASIC interpreter and compiler with graphics.
Brought to you by:
kollo
makedeps doesn't know about gcc's fixed includes, so throws lots of errors like
makedepend: warning: xbasic.c (reading /usr/include/string.h, line 32): cannot find include file "stddef.h"
not in ./stddef.h
not in /usr/include/stddef.h
(I removed doocs & tine).
The reported files are then not listed as dependencies.
Adding -I/usr/lib/gcc/i486-slackware-linux/4.8.2/include to the makedepend line clears these errors: this could be scripted (in the Slackware build environment) but would be awkward to say the least.
The attached patch removes makedepend from configure.in. It removes the depend target from Makefile and adds dependency generation with gcc -MM, except for targets clean and distclean.
Forgot to mention - the process creates files with a .d suffix, so clean is patched to remove them
Makedepend used to work without errors years ago. I had not understand why it throws errors now.
great, a working depend without errors. Many thanks. Included in source tarball.