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

Reply via email to