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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-02-07 14:42:57 +01:00
commit 67e56146f8

View file

@ -48,8 +48,12 @@ clean.generated:
clean.lo: profclean clean.generated clean.lo: profclean clean.generated
$(RM) -f $(wildcard *.o *.so *.done *.dll $(OTHER_LIB)) $(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 $@ $(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 %.cpp: $(TOOLS_INCLUDE_DIR)/$(CPP_PREFIX)%$(CPP_SUFFIX).h
echo "#include \"$<\"" > $@.tmp echo "#include \"$<\"" > $@.tmp