* Makefile.in (depend): Include $(CC) command in generated output.
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 4 May 1993 19:25:24 +0000 (19:25 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 4 May 1993 19:25:24 +0000 (19:25 +0000)
gdb/ChangeLog
gdb/Makefile.in

index accb87eb65aa6e02d5cb94f48d34161b41dd8308..bf908ce7f4e4818e88eb33483af76f8278f7a643 100644 (file)
@@ -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
index f7ee6fc7b019a7b7b1f0a7eccec1a3aac1bc0cac..83aaf454dd1ecbe327a14b8d62cb7d3d54b90fa1 100644 (file)
@@ -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."
This page took 0.029978 seconds and 4 git commands to generate.