mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
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:
parent
1e9ab195a6
commit
67e56146f8
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue