s/@TDIRS@/tdir_i386coff=go32/
s/@EMUL@/coff-go32-exe/
s/@EMULATION_OFILES@/ei386go32.o/
s/@LDFLAGS@//
s/@HLDFLAGS@//
s/@HDEFINES@//
s!@BFDLIB@!-L../bfd -lbfd!
s/@target_alias@/go32/
/^ldemul-list.h:.*$/,/^$/{
/^	.*$/d
/^$/{
i\
	echo.exe -o ldemul-tmp.h '/* This file is automatically generated. DO NOT EDIT! */'
i\
	redir -oa ldemul-tmp.h echo.exe extern ld_emulation_xfer_type ld_i386go32_emulation;
i\
	redir -oa ldemul-tmp.h echo.exe extern ld_emulation_xfer_type ld_i386go32e_emulation;
i\
	redir -oa ldemul-tmp.h echo.exe #define EMULATION_LIST &ld_i386go32_emulation,&ld_i386go32e_emulation,0
i\
	update ldemul-tmp.h ldemul-list.h
}
}
s/@host@/go32/
s/@target@/go32/
s/@NATIVE_LIB_DIRS@/$(libdir)/
/^ei386go32.*/,/^	.*$/{
/^.*$/d
}
/^configdoc.texi.*$/,/^$/{
/^	.*$/d
/^$/{
i\
	cp $< $@
}
}
