Mail Archives: djgpp/1997/04/03/09:52:24
On Thu, 3 Apr 1997, Orlando Andico wrote:
> gcc -MM *.c >>Makefile
>
> so as to build the dependencies. This is not extremely "user friendly."
> First, how do I include a "depend" target so that dependencies are made
> when you type "make depend" ?
One way is described in the Make manual. Fire up "info make" and go to
the section called "Automatic Dependencies". The method described there
uses the -MM option, but in a way that eliminates the need to do a
separate "make depend" step.
- Raw text -