mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-18 18:30:59 +00:00
really fixed dependency checking this time (I hope :-)
svn-id: r4793
This commit is contained in:
parent
96476a9ca0
commit
85a0380801
@ -61,7 +61,8 @@ clean:
|
||||
# dependency tracking.
|
||||
DEPDIR := .deps
|
||||
DEPDIRS = $(patsubst %,%/$(DEPDIR),$(MODULES))
|
||||
DEPFILES = $(wildcard $(DEPDIRS)/*.d) /dev/null
|
||||
DEPFILES = $(wildcard $(patsubst %,%/$(DEPDIR)/*.d,$(MODULES)))
|
||||
|
||||
.cpp.o:
|
||||
mkdir -p $(*D)/$(DEPDIR)
|
||||
$(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
|
||||
@ -69,4 +70,4 @@ DEPFILES = $(wildcard $(DEPDIRS)/*.d) /dev/null
|
||||
cat "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d"
|
||||
rm -f "$(*D)/$(DEPDIR)/$(*F).d2"
|
||||
|
||||
-include $(DEPDIR)/*.d
|
||||
-include $(DEPFILES) /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user