aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/ecoff.mt
blob: f068913ee6f6f5fc0d7ddbe410a15cdc7a86a331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This configuration is for a gcc that uses mips-tfile. If your gcc
# uses gas, you should configure gdb --with-gnu-as.
#
# 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
#
WEIRDSTABS_S=weird-ecoff.S

weird.o: ${srcdir}/${WEIRDSTABS_S} ${srcdir}/weird.def ${srcdir}/weird-ecoff.sed
	cp ${srcdir}/${WEIRDSTABS_S} tmp.c
	$(CC) -I${srcdir} -E -P tmp.c >tmp.s
	sed -f ${srcdir}/weird-ecoff.sed <tmp.s >weird.s
	$(CC) -c weird.s