aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-04-19 13:26:25 +0000
committerPedro Alves <palves@redhat.com>2012-04-19 13:26:25 +0000
commitfd9bb8b878bd629e228ad51ae1168134e9630b78 (patch)
tree17c512aee50fb37f52bf0ab57812f889d4aa2fbc
parent1c298c667176c0c28ceab413037fd3cbb02e3f2a (diff)
downloadgdb-fd9bb8b878bd629e228ad51ae1168134e9630b78.zip
gdb-fd9bb8b878bd629e228ad51ae1168134e9630b78.tar.gz
gdb-fd9bb8b878bd629e228ad51ae1168134e9630b78.tar.bz2
2012-04-19 Pedro Alves <palves@redhat.com>
* Makefile.in (generated_files): New. (server_h): Remove the explicit dependency on config.h, and depend on $generated_files.
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/Makefile.in10
2 files changed, 14 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 4d31abd..a7aa722 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,11 @@
2012-04-19 Pedro Alves <palves@redhat.com>
+ * Makefile.in (generated_files): New.
+ (server_h): Remove the explicit dependency on config.h, and depend
+ on $generated_files.
+
+2012-04-19 Pedro Alves <palves@redhat.com>
+
* Makefile.in (INCGNU): Add -Ignulib.
2012-04-19 Pedro Alves <palves@redhat.com>
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 1e78f98..4f0ba19 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -207,6 +207,9 @@ FLAGS_TO_PASS = \
"RUNTEST=$(RUNTEST)" \
"RUNTESTFLAGS=$(RUNTESTFLAGS)"
+# All generated files which can be included by another file.
+generated_files = config.h $(GNULIB_H)
+
# Prevent Sun make from putting in the machine type. Setting
# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
.c.o:
@@ -388,7 +391,9 @@ ax_h = $(srcdir)/ax.h
agent_h = $(srcdir)/../common/agent.h
linux_osdata_h = $(srcdir)/../common/linux-osdata.h
vec_h = $(srcdir)/../common/vec.h
-server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \
+# Since everything must include server.h, we make that depend on
+# generated files.
+server_h = $(srcdir)/server.h $(regcache_h) $(srcdir)/target.h \
$(srcdir)/mem-break.h $(srcdir)/../common/gdb_signals.h \
$(srcdir)/../common/common-utils.h \
$(srcdir)/../common/xml-utils.h \
@@ -396,7 +401,8 @@ server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \
$(srcdir)/../common/gdb_assert.h \
$(srcdir)/../common/gdb_locale.h \
$(ptid_h) \
- $(signals_h)
+ $(signals_h) \
+ $(generated_files)
linux_low_h = $(srcdir)/linux-low.h