tools/libs: Fix build dependencies
PATCH 1/1 tools/libs: Fix build dependencies
Some libs' Makefile aren't loading the dependencies files *.d2.
We can load them from "libs.mk" as none of the Makefile here are changing $(DEPS) or $(DEPS_INCLUDE) so it is fine to move the "include" to "libs.mk".
As a little improvement, don't load the dependencies files (and thus avoid regenerating the *.d2 files) during make clean.
Signed-off-by Anthony PERARD <[email protected]>
--- tools/libs/ctrl/Makefile | 2 -- tools/libs/guest/Makefile | 2 -- tools/libs/light/Makefile | 2 -- tools/libs/stat/Makefile | 2 -- tools/libs/store/Makefile | 2 -- tools/libs/util/Makefile | 2 -- tools/libs/vchan/Makefile | 1 - tools/libs/libs.mk | 4 ++++ 8 files changed, 4 insertions(+), 13 deletions(-)
tools/libs/ctrl/Makefile +0 -2
@@ -54,8 +54,6 @@ NO_HEADERS_CHK := y include $(XEN_ROOT)/tools/libs/libs.mk --include $(DEPS_INCLUDE) - clean: cleanlocal .PHONY: cleanlocal
tools/libs/guest/Makefile +0 -2
@@ -106,8 +106,6 @@ include $(XEN_ROOT)/tools/libs/libs.mk libxenguest.so.$(MAJOR).$(MINOR): COMPRESSION_LIBS = $(filter -l%,$(zlib-options)) libxenguest.so.$(MAJOR).$(MINOR): APPEND_LDFLAGS += $(COMPRESSION_LIBS) -lz --include $(DEPS_INCLUDE) - .PHONY: cleanlocal cleanlocal: rm -f libxenguest.map
tools/libs/light/Makefile +0 -2
@@ -268,5 +268,3 @@ cleanlocal: $(RM) -f libxenlight.map $(RM) -f $(AUTOSRCS) $(AUTOINCS) $(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean - --include $(DEPS_INCLUDE)
tools/libs/stat/Makefile +0 -2
@@ -121,5 +121,3 @@ clean: cleanlocal cleanlocal: rm -f $(BINDINGS) $(BINDINGSRC) $(DEPS_RM) rm -f libxenstat.map - --include $(DEPS_INCLUDE)
tools/libs/store/Makefile +0 -2
@@ -29,8 +29,6 @@ ifeq ($(CONFIG_Linux),y) xs.opic: CFLAGS += -DUSE_DLSYM endif --include $(DEPS_INCLUDE) - .PHONY: install install: install-headers
tools/libs/util/Makefile +0 -2
@@ -49,8 +49,6 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) @rm -f $*.[ch] $(FLEX) --header-file=$*.h --outfile=$*.c $< --include $(DEPS_INCLUDE) - clean: cleanlocal .PHONY: cleanlocal
tools/libs/vchan/Makefile +0 -1
@@ -11,7 +11,6 @@ SRCS-y += io.c NO_HEADERS_CHK := y include $(XEN_ROOT)/tools/libs/libs.mk --include $(DEPS_INCLUDE) clean: cleanlocal
tools/libs/libs.mk +4 -0
@@ -132,3 +132,7 @@ clean: .PHONY: distclean distclean: clean + +ifeq ($(filter clean distclean,$(MAKECMDGOALS)),) +-include $(DEPS_INCLUDE) +endif
Signature · 1 line
Anthony PERARD
Quoted 10 lines · Anthony PERARD
Some libs'
Makefilearen't loading the dependencies files *.d2.We can load them from "libs.mk" as none of the
Makefilehere are changing $(DEPS) or $(DEPS_INCLUDE) so it is fine to move the "include" to "libs.mk".As a little improvement, don't load the dependencies files (and thus avoid regenerating the *.d2 files) during
make clean.Signed-off-by Anthony PERARD <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen