On Fri, 2007-08-03 at 12:45 -0700, Samuel Klatchko wrote:
> The real use case is when I have a Makefile that is building both an
> shared object and an executable that uses it. I want to factor LDLIBS
> into common libraries that both use and specific libraries that are
> only for the shared objec
On Fri, 2007-08-03 at 12:45 -0700, Samuel Klatchko wrote:
> Is this a bug or am I misunderstanding how target specific variables
> work.
The latter.
See the section in the GNU make manual 'Target-specific Variable Values'
and read the part starting with "There is one more special feature of
targe
I have the following Makefile:
foo: bar
@echo While building $@ MACRO = ${MACRO}
foo: MACRO += foo_specific
bar:
@echo While building $@ MACRO = ${MACRO}
bar: MACRO += bar_specific
MACRO = common
I would expect to get th