From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30163 invoked by alias); 15 Mar 2004 18:53:05 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30149 invoked from network); 15 Mar 2004 18:53:04 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 15 Mar 2004 18:53:04 -0000 Received: (qmail 18220 invoked by uid 10); 15 Mar 2004 18:53:03 -0000 Received: (qmail 13381 invoked by uid 500); 15 Mar 2004 18:52:55 -0000 From: Ian Lance Taylor To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Generate makefile dependencies References: <404BBFD6.1060702@gnu.org> <4055F42D.3020506@gnu.org> Date: Fri, 19 Mar 2004 00:09:00 -0000 In-Reply-To: <4055F42D.3020506@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg00322.txt.bz2 Andrew Cagney writes: > The attached, er, hack, modifies configure.in so that all the Makefile > dependencies are generated during configure time: > > defs_h = ... > foo.o: foo.c $(defs_h) Does the result in fact correctly record that mips-tdep.o depends upon include/elf/reloc-macros.h? I don't see that it would. But I haven't actually tried running it. If you are going this route, have you considered simply using automake's depcomp script? It is reportedly quite portable, and it is the most reliable possible approach. Ian From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30163 invoked by alias); 15 Mar 2004 18:53:05 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30149 invoked from network); 15 Mar 2004 18:53:04 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 15 Mar 2004 18:53:04 -0000 Received: (qmail 18220 invoked by uid 10); 15 Mar 2004 18:53:03 -0000 Received: (qmail 13381 invoked by uid 500); 15 Mar 2004 18:52:55 -0000 From: Ian Lance Taylor To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Generate makefile dependencies References: <404BBFD6.1060702@gnu.org> <4055F42D.3020506@gnu.org> Date: Mon, 15 Mar 2004 18:53:00 -0000 In-Reply-To: <4055F42D.3020506@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03.o/txt/msg00322.txt Message-ID: <20040315185300.f966cN932QU3FR_T89UZMls8OlIOecqP5WM8c0V7SKA@z> Andrew Cagney writes: > The attached, er, hack, modifies configure.in so that all the Makefile > dependencies are generated during configure time: > > defs_h = ... > foo.o: foo.c $(defs_h) Does the result in fact correctly record that mips-tdep.o depends upon include/elf/reloc-macros.h? I don't see that it would. But I haven't actually tried running it. If you are going this route, have you considered simply using automake's depcomp script? It is reportedly quite portable, and it is the most reliable possible approach. Ian