Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: client/site_tests/gl_Bench/src/Makefile

Issue 616005: Use -MMD to generate dependencies. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698