Home > Archive > Unix Programming > July 2004 > an automake question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
an automake question
|
|
| Daniel Haude 2004-07-23, 8:57 am |
| Hi folks,
is it posssible to use different CFLAGS for different targets in
an automake-generated file?
Specifically, I need to turn off some warning options for some sources;
my favourites (gcc -W -Wall -ansi -pedantic -O) are too tight for some
system header files (namely the linuxvideo ones).
Any ideas?
Thanks,
**Daniel
PS: I really haven't managed yet to wrap my head around
autoconf/automake. Not that I didn't try. So please be
patient with me.
--
"With me is nothing wrong! And with you?" (from r.a.m.p)
| |
| Ronald Landheer-Cieslak 2004-07-23, 3:57 pm |
| Daniel Haude wrote:
> Hi folks,
>
> is it posssible to use different CFLAGS for different targets in
> an automake-generated file?
>
> Specifically, I need to turn off some warning options for some sources;
> my favourites (gcc -W -Wall -ansi -pedantic -O) are too tight for some
> system header files (namely the linuxvideo ones).
>
> Any ideas?
>
> Thanks,
> **Daniel
>
> PS: I really haven't managed yet to wrap my head around
> autoconf/automake. Not that I didn't try. So please be
> patient with me.
yes: just use the target name in the tag:
target_CFLAGS=-Wall -Werror
HTH
rlc
NB: see ``(automake.info)renamed objects'' for more info
| |
| Daniel Rakel 2004-07-28, 9:05 pm |
| Ronald Landheer-Cieslak wrote:
> Daniel Haude wrote:
[color=darkred]
> yes: just use the target name in the tag:
> target_CFLAGS=-Wall -Werror
> NB: see ``(automake.info)renamed objects'' for more info
Not what the OP wanted. From automake info documentation:
"Automake allows you to set compilation flags on a per-program (or
per-library) basis. A single source file can be included in
several programs, and it will potentially be compiled with
different flags for each program."
Regards,
Daniel
|
|
|
|
|