This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Patch to include $(CFLAGS) into specflags
Pavel Roskin writes:
> Hello, Lars!
>
> > I don't agree with Alexandre either. I'd very much prefer a method
> > which allows per-object CFLAGS. Eg. when only one of the source files
> > needs compilation with a certain -I or -D option. Only the minimal
> > necessary set of CFLAGS should in the compile rule for every object.
>
> "Allow per-object cflags" is in TODO
Good!
In that part of my message you didn't quote, I wrote that I currently
use explicit dependencies. This breaks utterly with ansi2knr, a case which
should be considered with per-object cflags.
> This is not so harmful as replacing CFLAGS, since using AM_CFLAGS is kind
> of advanced use, so explicit adding AM_CFLAGS to prog_CFLAGS will not
> complicate things very much. Cases when AM_CFLAGS should be replaced are
> perhaps not so singular as those when CFLAGS can do any harm.
There is virtually no documentation of AM_.FLAGS except for a
couple of list emails recommending them in certain situations.