On Sat, Jun 7, 2008 at 12:22 AM, Ralf Wildenhues <[EMAIL PROTECTED]> 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.