[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple libraries from the same sources
From: |
Simon Richter |
Subject: |
Re: Multiple libraries from the same sources |
Date: |
Fri, 22 Nov 2019 15:11:24 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
On Fri, Nov 22, 2019 at 01:27:34PM +0100, Darshit Shah wrote:
> Until here, it's all good. But then, I don't want to mention the
> sources for each of the libraries separately. They are always the
> same, and I would like to avoid having to manually keep them in sync
> when stuff changes. Not to mention, the sources list and quite large
> and copying it around seems excessive.
You can define a variable and reference that in the _SOURCES variable:
COMMON_SOURCES = foo.c bar.c baz.c
libfoo_a_a_SOURCES = $(COMMON_SOURCES)
libfoo_a_b_SOURCES = $(COMMON_SOURCES)
etc.
Simon