From: Tom Tromey <tromey@redhat.com>
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: automatic dependency tracking
Date: Thu, 07 Aug 2008 13:47:00 -0000 [thread overview]
Message-ID: <m3iqudhr8p.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20080807054840.GA26651@ins.uni-bonn.de> (Ralf Wildenhues's message of "Thu\, 7 Aug 2008 07\:48\:41 +0200")
>>>>> "Ralf" == Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
Ralf> [ChangeLog]
>> (cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
>> cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
Ralf> Missing cli-cmds.o.
Tough crowd :)
Ralf> s/by the GNUMakefile/by GNU make-specific code below/
Yeah, I thought I'd gotten that one, but I guess not. Thanks.
Ralf> BSD make will complain about a rule command
Ralf> $(POSTCOMPILE)
Ralf> when the macro expands to empty; let's set it to '@true' instead.
I don't mind either way. This must be version-specific, though, since
this patch was tested on BSD, specifically FreeBSD 6.0-Release:
http://sourceware.org/ml/gdb-patches/2008-07/msg00586.html
What version are you using?
Ralf> BSD make barfs over $< outside of inference rules.
Ditto.
>> # gdb/cli/ dependencies
>> #
>> # Need to explicitly specify the compile rule as make will do nothing
>> # or try to compile the object file into the sub-directory.
Ralf> Have you thought of simply compiling the object file in the sub
Ralf> directory? That's not a bad option; and the makefile has already been
Ralf> assuming that the compiler understands '-c -o' anyway.
That comment predates my patch. I just preserved it.
FWIW I did not want to change where the build puts objects; I didn't
see a particular benefit to doing this.
>> +@GMAKE_TRUE@$(all_object_files): | $(generated_files)
Ralf> This order-only dependency requires make 3.80 or newer.
Ralf> Not sure if you want to change this, but I guess the documentation
Ralf> should otherwise be updated to reflect that GNU make < 3.80 can't be
Ralf> used. (Or you disable GMAKE_TRUE for that...)
3.80 was released in October 2002. So, I am not really worried about
this myself. I didn't see any docs to update.
We could dynamically detect 3.80 by looking at .VARIABLES.
(.VARIABLES was introduced in 3.80. .FEATURES wasn't introduced until
3.81, so we can't use that.)
In the case where make is too old, we could emit a warning and not
enable the dependency tracking, like:
ifndef .VARIABLES
$(warning GNU make 3.80 or later is required for automatic dependency tracking)
else
... existing code
endif
(All protected with @GMAKE_TRUE@ of course.)
What do you think of that?
Of course, then we would need someone to test this with 3.79.
>> +dnl For dependency tracking macros.
>> +sinclude([../config/depstand.m4])
Ralf> Why sinclude?
That is what the rest of the file does. In general I try to submit
patches which match the prevailing style. If a cleanup is really
needed, then I send that as a separate patch.
Ralf> Adding the patch below on top of yours should fix all these issues.
Could you just send the full, updated patch?
Thanks.
Tom
next prev parent reply other threads:[~2008-08-07 13:47 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-21 22:14 Tom Tromey
2008-07-30 17:53 ` Pedro Alves
2008-07-30 19:12 ` Tom Tromey
2008-07-31 18:51 ` Pedro Alves
2008-07-31 10:48 ` Andrew STUBBS
2008-07-31 12:16 ` Tom Tromey
2008-07-31 14:43 ` Tom Tromey
2008-08-02 20:34 ` Thiago Jung Bauermann
2008-08-07 5:50 ` Ralf Wildenhues
2008-08-07 13:47 ` Tom Tromey [this message]
2008-08-07 13:53 ` Daniel Jacobowitz
2008-08-07 19:17 ` Ralf Wildenhues
2008-08-07 20:07 ` Tom Tromey
2008-08-07 20:46 ` Ralf Wildenhues
2008-08-07 20:51 ` Tom Tromey
2008-08-07 20:17 ` Daniel Jacobowitz
2008-08-07 20:22 ` Tom Tromey
2008-08-07 20:46 ` Ralf Wildenhues
2008-08-07 20:49 ` Tom Tromey
2008-08-07 20:59 ` Daniel Jacobowitz
2008-08-07 22:51 ` Ralf Wildenhues
2008-08-08 14:37 ` Thiago Jung Bauermann
2008-08-08 15:18 ` Tom Tromey
2008-08-08 15:24 ` Ralf Wildenhues
2008-08-08 17:27 ` Tom Tromey
2008-08-08 17:35 ` Daniel Jacobowitz
2008-08-07 17:09 ` Tom Tromey
2008-08-07 19:23 ` Ralf Wildenhues
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3iqudhr8p.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=Ralf.Wildenhues@gmx.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox