From 6c3a366d60469599dd7dd88de89eac1a2c6f38a0 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 27 Nov 2012 00:45:21 +0100 Subject: [PATCH] Use the -MP switch (make phony) for better dependency generation when files are removed. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ad8c2d..cd1a4b8 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ libmovit.a: $(LIB_OBJS) $(RANLIB) $@ %.o: %.cpp - $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< + $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< DEPS=$(OBJS:.o=.d) -include $(DEPS) -- 2.39.2