[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Passing flags to SUBDIRS
From: |
Bob Friesenhahn |
Subject: |
Re: Passing flags to SUBDIRS |
Date: |
Mon, 22 Nov 2004 14:25:47 -0600 (CST) |
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
address@hidden
http://www.simplesystems.org/users/bfriesen