Commit | Line | Data |
---|---|---|
76b098d1 PS |
1 | # The mips as doesn't grok #line directives, suppress them via -P during |
2 | # preprocessing. | |
3 | # The sed script removes blanks that mips-tfile doesn't like, | |
4 | # embedds stabs in comments and changes .long to .word | |
5 | # | |
6 | WIERDSTABS_S=wierd-ecoff.S | |
7 | # Only gcc knows about stabs-in-ecoff | |
8 | STABSCC=gcc | |
9 | ||
10 | wierd.o: ${srcdir}/${WIERDSTABS_S} ${srcdir}/wierd.def ${srcdir}/wierd-ecoff.sed | |
11 | cp ${srcdir}/${WIERDSTABS_S} tmp.c | |
12 | $(STABSCC) -I${srcdir} -E -P tmp.c >tmp.s | |
13 | sed -f ${srcdir}/wierd-ecoff.sed <tmp.s >wierd.s | |
14 | $(STABSCC) -c wierd.s |