automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A global _CFLAGS assigment?


From: Steven Woody
Subject: Re: A global _CFLAGS assigment?
Date: Sat, 7 Jun 2008 00:44:46 +0800

On Sat, Jun 7, 2008 at 12:22 AM, Ralf Wildenhues <address@hidden> wrote:
> Hello Steven,
>
> * Steven Woody wrote on Fri, Jun 06, 2008 at 06:17:30PM CEST:
>>
>> My project tree have many Makefile.am in a recursive directory tree
>> and I want every Makefile.am has a line some thing like xxx_CFLAGS =
>> -Wall.  What's the way to do that?  You see, there are many different
>> xxx_ in different Makefile.am.
>
> I don't quite understand, but you're either looking for
>  AM_CFLAGS = ...

But I have to insert this line in every Makefile.am in the tree,
right? That's I dont want.  But your below solution using AC_SUBST
looks making sense.

>
> (you can also AC_SUBST([AM_CFLAGS], [...]) from within configure.ac)
> or for putting a bunch of 'include $(top_srcdir)/.../fragment.am' into
> all the Makefile.am files to have some common code.
>
> Hope that helps.

The big problem may be, the AM_CFLAGS will disappear if in a
Makefile.am, there is a xxxx_CFLAGS.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]