Mail Archives: djgpp/2002/11/20/01:08:52
On Wed, 20 Nov 2002, CBFalconer wrote:
> Why does the underlined dependancy appear? Can it be suppressed?
DJ already explained why it appears. Suppressing it is tricky, unless
you edit the results of "gcc -MM" with Sed.
Does that dependency really hurt you?
> I am trying to set up automatic dependancies in the makefile early
> in the project, since I expect them to change continuously. Can I
> make them from the list of object files alone? i.e. have the gcc
> -MM operate on filename.c when supplied filename.obj.
GNU Make's pattern rules should help you, in conjunction with the $*
built-in variable (which extracts the stem of a file name).
- Raw text -