This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Passing flags to SUBDIRS


On Mon, 22 Nov 2004, Aaron W. LaFramboise wrote:

If I'd like all of the files in a particular subdirectory to be compiled
with -Isome/path, for instance, how do I arrange for this?  AM_CPPFLAGS
does not seem to be automatically propagated.

Use AC_SUBST to perform substitutions. Automake will add some code to convert each subsitution into a make variable with the same name.


So if your configure.ac includes

AC_SUBST(FOO)

then you could put this in any Makefile.am:

AM_CPPFLAGS=$(FOO).

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]