Hello Peter, * Peter Johansson wrote on Mon, Sep 14, 2009 at 08:14:11PM CEST: > I have a problem setting CPPFLAGS for a specific program > (src_foo_CPPFLAGS) in a non-recursive build. I wonder if I'm doing > something wrong or if this is a bug in Automake.
AFAICS things work as expected. See below for comments. > cat > Makefile.am <<EOF > ACLOCAL_AMFLAGS = -I m4 --install I've never seen --install put in ACLOCAL_AMFLAGS. Does this cause any issues? It could maybe have unwanted effects if triggered on a user system. > AM_DEFAULT_SOURCE_EXT = .cc > AM_CPPFLAGS = > src_foo_CPPFLAGS = -I`pwd`/include This affects the sources of src/foo. If you want src/foo2 sources to also use these flags, then also set src_foo2_CPPFLAGS. BTW, I'd never use `pwd` here, either -Iinclude or -I$(srcdir)/include or both (depending on whether include contains files in the build tree or the source tree or both). > bin_PROGRAMS = > bin_PROGRAMS += src/foo > bin_PROGRAMS += src/foo2 > EOF Cheers, Ralf
