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:
parent
8a0e89f326
commit
21fa4dcb13
|
@ -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 $@ $<
|
||||
|
|
Loading…
Reference in New Issue
Block a user