Hi,

Is it possible to specify different compile-time flags for different
_PROGRAMS or _LIBRARIES targets in the same Makefile.am?  Sort of a
_CFLAGS version of the _LDFLAGS primary, e.g.

  ## Theoretical example
  bin_PROGRAMS = foo foo-ts

  foo_CFLAGS = 
  foo_SOURCES = foo.c

  foo_ts_CFLAGS = -DREENTRANT
  foo_ts_SOURCES = foo.c

I'm currently just using INCLUDES, but that passes the extra flags to
all compile lines.  This is alright for now, because I'm only adding -I
flags, but what if I had some -D flags in there too, like above?

Am I missing something?  Is this planned for a future release?  Or is
there an existing mechanism for doing something like this?

John

-- 
[EMAIL PROTECTED]                                http://www.gnome.org
[EMAIL PROTECTED]                      http://www.worldforge.org

Reply via email to