old-cross-binutils/gdb/testsuite/gdb.stabs/ecoff.mt
Peter Schauer 76b098d175 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
to make the stabs test work on ecoff systems using gcc and -with-stabs.
	* gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}:  Modify to
	enable ecoff configuration.
1993-07-18 15:47:51 +00:00

14 lines
520 B
Mathematica

# The mips as doesn't grok #line directives, suppress them via -P during
# preprocessing.
# The sed script removes blanks that mips-tfile doesn't like,
# embedds stabs in comments and changes .long to .word
#
WIERDSTABS_S=wierd-ecoff.S
# Only gcc knows about stabs-in-ecoff
STABSCC=gcc
wierd.o: ${srcdir}/${WIERDSTABS_S} ${srcdir}/wierd.def ${srcdir}/wierd-ecoff.sed
cp ${srcdir}/${WIERDSTABS_S} tmp.c
$(STABSCC) -I${srcdir} -E -P tmp.c >tmp.s
sed -f ${srcdir}/wierd-ecoff.sed <tmp.s >wierd.s
$(STABSCC) -c wierd.s