tools: generate most contents of library make variables
authorJuergen Gross <jgross@suse.com>
Sun, 23 Aug 2020 08:00:11 +0000 (10:00 +0200)
committerWei Liu <wl@xen.org>
Thu, 27 Aug 2020 12:59:46 +0000 (12:59 +0000)
commitded08cdfa72bb1555a2beb5c4300dedb1f830358
tree27d0e8e13b87cd8ea9fa5926e074bb8500817772
parent09bf2917046f78a5f0b42da771602bb4ef5dcc09
tools: generate most contents of library make variables

Library related make variables (CFLAGS_lib*, SHDEPS_lib*, LDLIBS_lib*
and SHLIB_lib*) mostly have a common pattern for their values. Generate
most of this content automatically by adding a new per-library variable
defining on which other libraries a lib is depending. Those definitions
are put into an own file in order to make it possible to include it
from various Makefiles, especially for stubdom.

This in turn makes it possible to drop the USELIB variable from each
library Makefile.

The LIBNAME variable can be dropped, too, as it can be derived from the
directory name the library is residing in.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/Rules.mk
tools/libs/call/Makefile
tools/libs/devicemodel/Makefile
tools/libs/evtchn/Makefile
tools/libs/foreignmemory/Makefile
tools/libs/gnttab/Makefile
tools/libs/hypfs/Makefile
tools/libs/libs.mk
tools/libs/toolcore/Makefile
tools/libs/toollog/Makefile
tools/libs/uselibs.mk [new file with mode: 0644]