Index: client/site_tests/gl_Bench/src/Makefile |
diff --git a/client/site_tests/gl_Bench/src/Makefile b/client/site_tests/gl_Bench/src/Makefile |
index 13d0c714db3585d623cd4da27e1183cd8eda8f73..77064a63dc8c2359fbf864027ceab7adf4e3e2d5 100644 |
--- a/client/site_tests/gl_Bench/src/Makefile |
+++ b/client/site_tests/gl_Bench/src/Makefile |
@@ -17,6 +17,7 @@ SOURCES += glx_stuff.cc |
endif |
OBJS = $(SOURCES:.cc=.o) |
+DEPS = $(SOURCES:.cc=.d) |
.PHONY: all clean |
@@ -24,14 +25,13 @@ all: $(TARGET) |
$(TARGET): $(OBJS) |
-main.o: main.h |
-bench.o: main.h |
- |
clean: |
- $(RM) $(TARGET) $(OBJS) |
+ $(RM) $(TARGET) $(OBJS) $(DEPS) |
$(TARGET): |
$(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) |
$(OBJS): %.o: %.cc |
- $(CXX) $(CXXFLAGS) -c $< -o $@ |
+ $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD |
+ |
+-include $(DEPS) |