really fixed dependency checking this time (I hope :-)

svn-id: r4793
This commit is contained in:
Max Horn 2002-08-21 16:40:33 +00:00
parent 96476a9ca0
commit 85a0380801

View File

@ -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