]> git.sesse.net Git - movit/blobdiff - Makefile
Use the -MP switch (make phony) for better dependency generation when files are removed.
[movit] / Makefile
index 8ad8c2d2df1c4efb7d59622c8178fa72642b4ee4..cd1a4b859639a119d79e6d9d768a215faabd5630 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,7 @@ libmovit.a: $(LIB_OBJS)
        $(RANLIB) $@
 
 %.o: %.cpp
        $(RANLIB) $@
 
 %.o: %.cpp
-       $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
+       $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
 
 DEPS=$(OBJS:.o=.d)
 -include $(DEPS)
 
 DEPS=$(OBJS:.o=.d)
 -include $(DEPS)