Date: Wed, 20 Nov 2002 08:07:40 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Why the djgpp.ver dependancy? In-Reply-To: <3DDAEF0A.6D1FAAF2@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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).