aboutsummaryrefslogtreecommitdiff
path: root/opcodes/dep-in.sed
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-21 19:39:26 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-21 19:39:26 +0000
commitf76db60bbb5ba8c32148bb99df20a18280b5fd6b (patch)
tree967ba6ee9c4753502db28ff6bedd4b66b68f7c7f /opcodes/dep-in.sed
parent0727fe1023717c80d65af7942315db6a61b93197 (diff)
downloadgdb-f76db60bbb5ba8c32148bb99df20a18280b5fd6b.zip
gdb-f76db60bbb5ba8c32148bb99df20a18280b5fd6b.tar.gz
gdb-f76db60bbb5ba8c32148bb99df20a18280b5fd6b.tar.bz2
* Makefile.in (BFD_H): New variable.
(HFILES): New variable. (CFILES): Add all C files. (.dep, .dep1, dep.sed, dep, dep-in): New targets. Delete old dependencies, and build new ones. * dep-in.sed: New file.
Diffstat (limited to 'opcodes/dep-in.sed')
-rw-r--r--opcodes/dep-in.sed19
1 files changed, 19 insertions, 0 deletions
diff --git a/opcodes/dep-in.sed b/opcodes/dep-in.sed
new file mode 100644
index 0000000..ebf69eb
--- /dev/null
+++ b/opcodes/dep-in.sed
@@ -0,0 +1,19 @@
+:loop
+/\\$/N
+s/\\\n */ /g
+t loop
+
+s! @BFD_H@! $(BFD_H)!g
+s!@INCDIR@!$(INCDIR)!g
+s!@BFDDIR@!$(BFDDIR)!g
+s!@SRCDIR@/!!g
+
+s/\\\n */ /g
+
+s/ *$//
+s/ */ /g
+s/ *:/:/g
+/:$/d
+
+s/\(.\{50\}[^ ]*\) /\1 \\\
+ /g