Re-introduce -MP in the C++ compilation rule

It turns out it is important to avoid having to clean when a header
is deleted.
This commit is contained in:
Maxime Coste 2019-03-05 20:56:44 +11:00
parent 8a0e89f326
commit 21fa4dcb13

View File

@ -98,7 +98,7 @@ kak$(suffix) : $(objects) .version.o
-include $(deps)
.%$(suffix).o: %.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
.version.o: .version.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<