aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/Makefile.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
index 45073ab..5180e73 100644
--- a/gdbserver/Makefile.in
+++ b/gdbserver/Makefile.in
@@ -69,9 +69,12 @@ COMPILE.pre = $(CXX) $(CXX_DIALECT)
COMPILE.post = -c -o $@
POSTCOMPILE = @true
+INCLUDE_SERVER_H = -include $(srcdir)/server.h
+
# CXXFLAGS is at the very end on purpose, so that user-supplied flags can
# override internal flags.
-COMPILE = $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) $(CXXFLAGS) $(COMPILE.post)
+COMPILE = $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) $(INCLUDE_SERVER_H) \
+ $(CXXFLAGS) $(COMPILE.post)
# It is also possible that you will need to add -I/usr/include/sys to the
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
@@ -509,7 +512,8 @@ IPAGENT_CFLAGS = \
# CXXFLAGS is at the very end on purpose, so that user-supplied flags can
# override internal flags.
-IPAGENT_COMPILE = $(ECHO_CXX) $(COMPILE.pre) $(IPAGENT_CFLAGS) $(CXXFLAGS) $(COMPILE.post)
+IPAGENT_COMPILE = $(ECHO_CXX) $(COMPILE.pre) $(IPAGENT_CFLAGS) \
+ $(INCLUDE_SERVER_H) $(CXXFLAGS) $(COMPILE.post)
# Rules for special cases.
@@ -589,6 +593,12 @@ target/%.o: ../gdb/target/%.c
%-generated.cc: ../gdb/regformats/rs6000/%.dat $(regdat_sh)
$(ECHO_REGDAT) $(SHELL) $(regdat_sh) $< $@
+# Rule for gdbreplay.o. This is the same as COMPILE, but includes common-defs.h
+# instead of server.h.
+gdbreplay.o: gdbreplay.cc
+ $(ECHO_CXX) $(COMPILE.pre) $(INTERNAL_CFLAGS) $(CXXFLAGS) \
+ -include gdbsupport/common-defs.h $(COMPILE.post) $<
+
#
# Dependency tracking.
#