From b8a366c0a2c3a1bf4f5173df53b6468f32f195bc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 7 Oct 2012 14:01:15 +0200 Subject: [PATCH 1/1] Add simple dependency generation to the Makefile. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 51aebc5..93a1166 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,10 @@ OBJS += sandbox_effect.o test: $(OBJS) $(CXX) -o test $(OBJS) $(LDFLAGS) -.o: .cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< +%.o: %.cpp + $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< + +-include $(OBJS:.o=.d) clean: $(RM) test $(OBJS) -- 2.39.2