/^####$/ {
  i\
host_canonical=go32 \
target_canonical=go32 \
TDEPFILES=exec.o i386-tdep.o i386-pinsn.o i387-tdep.o go32targ.o
}
/^BISON *=/ s/yacc/bison -y/

s/\.tab\.c/-tab.c/g
s/\.tab\.o/-tab.o/g

/Makefile.in/ {
  /.*.c:.*-exp.y/ s/Makefile.in.*$//
}

/libmmalloc.a/ s/^M/# M/
/NO_MMALLOC/ s/^#* *//

/^SER_HARDWIRE *=/ d

/echo .*version.c/ {
  s/'//g
}

/^copying/,/awk/ d

s/ config.status//
/@$(MAKE)/ d

s/awk -f/sed -f/
s/copying.awk/copying.sed/
s/< \$(srcdir)\//< $(srcdir)\\/

/	$(CC-LD)/ {
  s/gdb/gdb -Wl,-Ttext,0x900000a8,-N/
  a\
	  init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) \
	$(CC-LD) $(INTERNAL_LDFLAGS) -o gdb-dpmi -Wl,-Ttext,0x000000a8,-N \\
}
s/-ltermcap/-lpc/
