aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-05-04 19:25:24 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-05-04 19:25:24 +0000
commit5b8462fa63bd91e37f5553bac5172976c5d7d26a (patch)
tree928bde1afb54c9afad004fb493fa9c7ff2256f8d
parentd6d49c646d51d7b6069b6f556872b445685d44e6 (diff)
downloadfsf-binutils-gdb-5b8462fa63bd91e37f5553bac5172976c5d7d26a.zip
fsf-binutils-gdb-5b8462fa63bd91e37f5553bac5172976c5d7d26a.tar.gz
fsf-binutils-gdb-5b8462fa63bd91e37f5553bac5172976c5d7d26a.tar.bz2
* Makefile.in (depend): Include $(CC) command in generated output.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/Makefile.in18
2 files changed, 20 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index accb87e..bf908ce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
+
+ * Makefile.in (depend): Include $(CC) command in generated output.
+
Mon May 3 23:34:09 1993 K. Richard Pixley (rich@rtl.cygnus.com)
* nindy-share/Onindy.c, nindy-share/nindy.c: convert malloc calls
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f7ee6fc..83aaf45 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -563,8 +563,22 @@ depend: $(SOURCES) Makefile.in
-e 's; ./xm.h; xm.h config.status;g' \
-e 's; ./tm.h; tm.h config.status;g' \
-e 's; ./nm.h; nm.h config.status;g' \
- >depend
- rm depend.tmp
+ >depend.tm3;
+# OK, get your sed manual out. This script makes all the rules in
+# depend explicitly state the rule, rather than relying on VPATH
+# or a .c.o implicit rule. This is needed for Sun make, and should
+# be portable to any make worthy of the name. I suspect that we no
+# longer need to set VPATH.
+ <depend.tm3 sed \
+ -e '/:/h' \
+ -e '/\\$$/b end' \
+ -e 'p' \
+ -e 'g' \
+ -e 's/.*:\(.*\.c\).*/ $${CC} -c $${INTERNAL_CFLAGS} \1/' \
+ -e ': end' \
+ >depend.tm4;
+ mv depend.tm4 depend
+ rm depend.tm?
config.status:
@echo "You must configure gdb. Look at the README file for details."