5 .static-dep/%.dep: %.cpp
7 $(CXX) -MM -MT $(patsubst %.cpp,%.o,$<) $(CPPFLAGS) $< > $@
9 .shared-dep/%.dep: %.cpp
11 $(CXX) -MM -MT $(patsubst %.cpp,%.lo,$<) $(CPPFLAGS) $< > $@
13 ifneq ($(MAKECMDGOALS),clean)
14 ifneq ($(MAKECMDGOALS),distclean)
15 -include $(addprefix .static-dep/,$(SRC:.cpp=.dep))
16 -include $(addprefix .shared-dep/,$(SRC:.cpp=.dep))