aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-03-02 00:45:13 +0000
committerDoug Evans <dje@google.com>2009-03-02 00:45:13 +0000
commit2aecd87f56afd1168356ad2d2efbbc7bd1bc31db (patch)
treef111694f5d2c4c11c934c86561bb0bdd10d9a588 /gdb/Makefile.in
parent04e2c417f9d55d3a9abf23a78a36a863886b8059 (diff)
downloadgdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.zip
gdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.tar.gz
gdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.tar.bz2
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
(init.c): signals/ -> common/. (signals.o): Update. * target.h (target_signal_to_string,target_signal_to_string) (target_signal_from_name,target_signal_to_host_p) (target_signal_from_host,target_signal_to_host): Move to ... * common/gdb_signals.h: ... here. New file. * common/signals.c: Moved here from signals/signals.c. #include gdb_signals.h, remove #include of target.h in gdb case. (target_signal_from_command,default_target_signal_to_host) (default_target_signal_from_host): Move inside #ifndef GDBSERVER. * gdbserver/Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. (server_h): Add gdb_signals.h. (signals.o): Update. * server.h (target_signal_from_host,target_signal_to_host_p) (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index af3f534..e82f542 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -365,7 +365,8 @@ CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
# your system doesn't have fcntl.h in /usr/include (which is where it
# should be according to Posix).
DEFS = @DEFS@
-GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config -DLOCALEDIR="\"$(localedir)\"" $(DEFS)
+GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/common -I$(srcdir)/config \
+ -DLOCALEDIR="\"$(localedir)\"" $(DEFS)
# MH_CFLAGS, if defined, has host-dependent CFLAGS from the config directory.
GLOBAL_CFLAGS = $(MH_CFLAGS)
@@ -1033,7 +1034,7 @@ init.c: $(INIT_FILES)
-e '/^[a-z0-9A-Z_]*_[SU].[co]$$/d' \
-e '/[a-z0-9A-Z_]*-exp.tab.[co]$$/d' \
-e 's/\.[co]$$/.c/' \
- -e 's,signals\.c,signals/signals\.c,' \
+ -e 's,signals\.c,common/signals\.c,' \
-e 's|^\([^ /][^ ]*\)|$(srcdir)/\1|g' | \
while read f; do \
sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/\1/p' $$f 2>/dev/null; \
@@ -1743,13 +1744,13 @@ mi-common.o: $(srcdir)/mi/mi-common.c
$(POSTCOMPILE)
#
-# gdb/signals/ dependencies
+# gdb/common/ dependencies
#
# Need to explicitly specify the compile rule as make will do nothing
# or try to compile the object file into the sub-directory.
-signals.o: $(srcdir)/signals/signals.c
- $(COMPILE) $(srcdir)/signals/signals.c
+signals.o: $(srcdir)/common/signals.c
+ $(COMPILE) $(srcdir)/common/signals.c
$(POSTCOMPILE)
#