2 echo Configuring opcodes for go32
\r
3 rem This batch file assumes a unix-type "sed" program
\r
5 echo # Makefile generated by "configure.bat"> Makefile
\r
7 if exist config.sed del config.sed
\r
9 echo "/\.o[ ]*:/ s/config.status// ">> config.sed
\r
10 echo "s/CC = cc/CC = gcc/ ">> config.sed
\r
11 echo "s/@BFD_MACHINES@/i386-dis.o/ ">> config.sed
\r
12 echo "s/@archdefs@/-DARCH_i386/ ">> config.sed
\r
13 echo "s/@frags@// ">> config.sed
\r
14 echo "s/@srcdir@// ">> config.sed
\r
15 echo "s!@prefix@!/usr/local! ">> config.sed
\r
16 echo "s!@exec_prefix@!/usr/local! ">> config.sed
\r
17 echo "s/@RANLIB@/ranlib/ ">> config.sed
\r
19 echo "s/^[ ]*rm/ -rm/ ">> config.sed
\r
21 sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
\r
22 sed -f config2.sed Makefile.in >> Makefile
\r