From 67e56146f82cb4ddbc4aa828272e7a73a295864d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 7 Feb 2026 14:42:57 +0100 Subject: [PATCH] lo.mk: Fix warning that targets were not remade make complains for plugins that soandso.dll has not been remade. The problem is that it tries to remake all targets of a multi-target. Split that up into two rules. Signed-off-by: Jan Lindemann --- make/lo.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make/lo.mk b/make/lo.mk index 695f5dd1..d21337bd 100644 --- a/make/lo.mk +++ b/make/lo.mk @@ -48,8 +48,12 @@ clean.generated: clean.lo: profclean clean.generated $(RM) -f $(wildcard *.o *.so *.done *.dll $(OTHER_LIB)) -$(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o $(CPP_PREFIX)%.o $(OTHER_LIB) +define LINK_RECIPE $(CXX) $^ -L. $(OTHER_LIB_LDFLAGS) -shared $(FINAL_LDFLAGS) -o $@ +endef + +$(SO_PREFIX)%.so: %.o $(CPP_PREFIX)%.o $(OTHER_LIB) ; $(LINK_RECIPE) +$(SO_PREFIX)%.dll: %.o $(CPP_PREFIX)%.o $(OTHER_LIB) ; $(LINK_RECIPE) %.cpp: $(TOOLS_INCLUDE_DIR)/$(CPP_PREFIX)%$(CPP_SUFFIX).h echo "#include \"$<\"" > $@.tmp