[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation flags per object file

From: Ralf Wildenhues
Subject: Re: compilation flags per object file
Date: Fri, 25 Aug 2006 15:19:46 +0200
User-agent: Mutt/1.5.12 (2006-08-10)

Hello Bruno,

* Bruno Haible wrote on Fri, Aug 25, 2006 at 03:07:26PM CEST:
> I would love to replace
>      DEFS += -DLIBDIR=\"$(libdir)\"
> with
>      localcharset_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR=\"$(libdir)\"
> but does automake support per-object-file settings?

No.  You can workaround by making your object be the only one in a
noinst_[LT]LIBRARY and setting per-target flags for that.

> If not, then this is a feature request :-)

If you ask me: don't hold your breath.  You should note that object file
names are an internal Automake detail, so the naming of the respective
*_CPPFLAGS variable is not clear, for starters.  Above would conflict
with a program named localcharset.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]