Re: Small perl task for the interested

2003-07-25 Thread Gordon Henriksen
On Friday, July 18, 2003, at 09:49 , Josh Wilmes wrote: At 12:48 on 07/14/2003 +0200, Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote: I've taken this very simple approach to the problem. A perl-wrapperfor the CC lines in makefiles/root.in .c$(O) : $(PERL) tools/dev/cc_flags.pl $(

Re: Small perl task for the interested

2003-07-21 Thread Lars Balker Rasmussen
Josh Wilmes <[EMAIL PROTECTED]> wrote: >> .c$(O) : >> $(PERL) tools/dev/cc_flags.pl $(CC) $(CFLAGS) ${cc_o_out}$@ -c $< > > I would go a bit further, and create a tools/build/compile, tools/build/ > link_executable, tools/build/link_library, etc. > > Take all the flags out of the makefile

Re: Small perl task for the interested

2003-07-19 Thread Josh Wilmes
I think you miss the point. It's not just about flags. It's about how you do a particular task, which could involve one or more commands (or be impossible). See libtool for an idea of the size of the problem. --Josh At 18:45 on 07/19/2003 EDT, Benjamin Goldberg <[EMAIL PROTECTED]> wrote:

Re: Small perl task for the interested

2003-07-19 Thread Benjamin Goldberg
Josh Wilmes wrote: > > At 12:48 on 07/14/2003 +0200, Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote: > > > I've taken this very simple approach to the problem. A perl-wrapper > > for the CC lines in makefiles/root.in > > > > .c$(O) : > > $(PERL) tools/dev/cc_flags.pl $(CC) $(CFLAGS)

Re: Small perl task for the interested

2003-07-18 Thread Josh Wilmes
At 12:48 on 07/14/2003 +0200, Lars Balker Rasmussen <[EMAIL PROTECTED]> wrote: > I've taken this very simple approach to the problem. A perl-wrapper > for the CC lines in makefiles/root.in > > .c$(O) : > $(PERL) tools/dev/cc_flags.pl $(CC) $(CFLAGS) ${cc_o_out}$@ -c $< I would go a b

Re: Small perl task for the interested

2003-07-14 Thread Lars Balker Rasmussen
[EMAIL PROTECTED] (Dan Sugalski) writes: > We could really use the capability of specifying per-C-file flags in > the make procedure, something that can be built into Configure. Right > now we build without optimizations on, which is fine, but I'd like to > turn them on in the future. > > They can'

Re: Small perl task for the interested

2003-06-29 Thread Dan Sugalski
At 12:57 PM -0400 6/26/03, David Robins wrote: > So... Configure.pl needs to be able to build a makefile that has per-C-file flags, and those flags need to be overridable per-file at configure time by the platform configuration module. Does the makefile need to be a typical 'make' makefile or is

Re: Small perl task for the interested

2003-06-26 Thread David Robins
> So... Configure.pl needs to be able to build a makefile that has > per-C-file flags, and those flags need to be overridable per-file at > configure time by the platform configuration module. Does the makefile need to be a typical 'make' makefile or is an all-perl solution viable? -- Dave Isa. 4