1991-11-27 15:24:30 -05:00
|
|
|
@echo off
|
1992-08-31 13:30:33 -04:00
|
|
|
echo Configuring GCC for go32
|
1992-05-03 17:31:55 -04:00
|
|
|
rem This batch file assumes a unix-type "sed" program
|
1991-11-27 15:24:30 -05:00
|
|
|
|
1992-12-28 00:25:24 -05:00
|
|
|
update config\i386\xm-dos.h config.h
|
|
|
|
update config\i386\xm-dos.h hconfig.h
|
1993-04-09 17:43:42 -04:00
|
|
|
update config\i386\go32.h tm.h
|
1992-12-28 00:25:24 -05:00
|
|
|
update config\i386\i386.md md
|
|
|
|
update config\i386\i386.c aux-output.c
|
1991-11-27 15:24:30 -05:00
|
|
|
|
1992-05-03 17:31:55 -04:00
|
|
|
echo # Makefile generated by "configure.bat"> Makefile
|
1992-10-05 20:25:36 -04:00
|
|
|
echo all.dos: cccp cc1 cc1plus cc1obj xgcc>> Makefile
|
1992-05-03 17:31:55 -04:00
|
|
|
|
|
|
|
if exist config.sed del config.sed
|
|
|
|
|
1993-04-09 17:43:42 -04:00
|
|
|
echo "/\.o[ ]*:/ s/config.status// ">> config.sed
|
1992-05-03 17:31:55 -04:00
|
|
|
echo "/^target=/ c\ ">> config.sed
|
|
|
|
echo "target=go32 ">> config.sed
|
|
|
|
echo "/^version=/ c\ ">> config.sed
|
1993-04-09 17:43:42 -04:00
|
|
|
sed -e "s/[^\"]*\"/version=/" -e "s/\ .*//" version.c >> config.sed
|
1992-05-03 17:31:55 -04:00
|
|
|
echo "s/CC = cc/CC = gcc/ ">> config.sed
|
|
|
|
echo "s/:\$/: \$/g ">> config.sed
|
1993-04-09 17:43:42 -04:00
|
|
|
echo "s/^ \ *\.\// go32 / ">> config.sed
|
1992-05-03 17:31:55 -04:00
|
|
|
echo "s/^ \$(srcdir)\/move-if-change/ update/ ">> config.sed
|
|
|
|
echo "s/^USE_/# USE_/ ">> config.sed
|
|
|
|
echo "s/`echo \$(srcdir)\///g ">> config.sed
|
|
|
|
echo "s/ | sed 's,\^\\\.\/,,'`//g ">> config.sed
|
|
|
|
echo "s/^ cd \$(srcdir)[ ]*;// ">> config.sed
|
|
|
|
|
1993-04-09 17:43:42 -04:00
|
|
|
echo "/^stamp-attrtab/,/update/ { ">> config.sed
|
|
|
|
echo " /\\/d ">> config.sed
|
|
|
|
echo " /fi/d ">> config.sed
|
|
|
|
echo " /update/ i\ ">> config.sed
|
|
|
|
echo " go32 genattrtab md > t-attrtab.c ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
1992-05-03 17:31:55 -04:00
|
|
|
echo "/^cccp.o[ ]*:/,/-c/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >cccp_o.rf/ ">> config.sed
|
|
|
|
echo " /-c/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @cccp_o.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^gcc.o[ ]*:/,/-c/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >gcc_o.rf/ ">> config.sed
|
|
|
|
echo " /-c/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @gcc_o.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^gcc[ ]*:/,/-o/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >gcc.rf/ ">> config.sed
|
|
|
|
echo " /-o/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @gcc.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^cc1[ ]*:/,/-o/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >cc1.rf/ ">> config.sed
|
|
|
|
echo " /-o/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @cc1.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^cc1plus[ ]*:/,/-o/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >cc1plus.rf/ ">> config.sed
|
|
|
|
echo " /-o/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @cc1plus.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^cc1obj[ ]*:/,/-o/ { ">> config.sed
|
|
|
|
echo " s/ \$(CC)/ >cc1obj.rf/ ">> config.sed
|
|
|
|
echo " /-o/ a\ ">> config.sed
|
|
|
|
echo " $(CC) @cc1obj.rf ">> config.sed
|
|
|
|
echo "} ">> config.sed
|
|
|
|
|
|
|
|
echo "/^enquire[ ]*:/ s/\$(GCC_PARTS)//g ">> config.sed
|
|
|
|
echo "/^enquire.o[ ]*:/ s/\$(GCC_PASSES)//g ">> config.sed
|
|
|
|
echo "/^GCC_FOR_TARGET =/ c\ ">> config.sed
|
|
|
|
echo "GCC_FOR_TARGET = gcc ">> config.sed
|
|
|
|
|
1993-04-09 17:43:42 -04:00
|
|
|
echo "s/; *@true// ">> config.sed
|
|
|
|
echo "s/stamp-/s-/g ">> config.sed
|
|
|
|
echo "s/tmp-/t-/g ">> config.sed
|
|
|
|
|
1992-05-03 17:31:55 -04:00
|
|
|
sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
|
|
|
|
sed -f config2.sed Makefile.in >> Makefile
|
|
|
|
del config.sed
|
|
|
|
del config2.sed
|