Bruno Haible <[email protected]> writes:
> Hi Ralf,
>> +# Ensure objects in ../src are renamed so they don't conflict with
>> +# the objects generated from ../src/Makefile.
>> +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS)
> Wow. What a hack! Even with the comments, I could not understand how
> changing CPPFLAGS could have an effect on object files.
When using a per-target compilation flag, Automake will choose a
different name for the intermediate object files. Ordinarily a
file like `sample.c' will be compiled to produce `sample.o'.
However, if the program's `_CFLAGS' variable is set, then the
object file will be named, for instance, `maude-sample.o'. (See
also *note Renamed Objects::.)
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>