aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/linux/dump_syms/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tools/linux/dump_syms/Makefile b/src/tools/linux/dump_syms/Makefile
index 3629cb46..76cbf2c1 100644
--- a/src/tools/linux/dump_syms/Makefile
+++ b/src/tools/linux/dump_syms/Makefile
@@ -338,16 +338,20 @@ clean::
$(CPP_EXECUTABLES): %: %.o
$(CXX) $(CXXFLAGS) $(COVERAGE_LDFLAGS) $(LDFLAGS) -o $@ $^
-# These flags are required for breakpad sources to compile correctly.
-BREAKPAD_CPPFLAGS = -I$(SRC) -D_REENTRANT
+# Allow #include directives to refer to files below 'src'; generate
+# dependency files automatically; and I doubt _REENTRANT is needed at all.
+BREAKPAD_CPPFLAGS = -I$(SRC) -MMD -D_REENTRANT
+
+# Bring in whatever dependency files we have generated by compiling with -MMD.
+-include *.d
%.o: %.cc
- $(CXX) -c $^ -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CXXFLAGS)
+ $(CXX) -c $< -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CXXFLAGS)
%.o: %.c
- $(CC) -c $^ -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CFLAGS)
+ $(CC) -c $< -o $@ $(CPPFLAGS) $(BREAKPAD_CPPFLAGS) $(CFLAGS)
clean::
- rm -f *.o core
+ rm -f *.o *.d core
### Generic testing rules.