summaryrefslogtreecommitdiff
path: root/ld/dep-in.sed
blob: 4f77b5de5721f0329a13fce0e9bb277cad4e87f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
:loop
/\\$/N
s/\\\n */ /g
t loop

s! \./! !g
s!@INCDIR@!$(INCDIR)!g
s!@TOPDIR@/include!$(INCDIR)!g
s!@BFDDIR@!$(BFDDIR)!g
s!@TOPDIR@/bfd!$(BFDDIR)!g
s!@SRCDIR@/!!g
s! \.\./bfd/hosts/[^ ]*\.h! !g
s! \.\./intl/libintl\.h!!g

s/ *$//
s/  */ /g
s/^ */A/
s/ / \\\
B/g
$s/$/ \\/