feat: add header dependency tracking for programs

This commit is contained in:
daniel committed 2026-07-08 10:24:21 +02:00
1 parent 857122c07c
commit 78494cb072
25 files changed
+99 -27

No files matched your search

+4 -1
View File
@@ -84,7 +84,10 @@ $(TARGET): $(OBJDIR)/main.o $(LIBS) $(LINK_LD) Makefile
$(OBJDIR)/main.o: main.cpp Makefile
mkdir -p $(OBJDIR)
$(CXX) $(CXXFLAGS) -c $< -o $@
$(CXX) $(CXXFLAGS) -MMD -MP -c $< -o $@
clean:
rm -rf $(OBJDIR) $(TARGET)
# Auto-generated header dependency tracking (-MMD -MP).
-include $(OBJDIR)/main.d