aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.bat
diff options
context:
space:
mode:
Diffstat (limited to 'gas/configure.bat')
-rw-r--r--gas/configure.bat40
1 files changed, 16 insertions, 24 deletions
diff --git a/gas/configure.bat b/gas/configure.bat
index 784bae7..1fd269f 100644
--- a/gas/configure.bat
+++ b/gas/configure.bat
@@ -2,7 +2,6 @@
if "%1" == "h8/300" goto h8300
echo Configuring gas for go32
-update config/ho-go32.h host.h
update config/tc-i386.c targ-cpu.c
update config/tc-i386.h targ-cpu.h
update config/te-go32.h targ-env.h
@@ -23,32 +22,26 @@ copy config\atof-ieee.c atof-targ.c
:common
-echo # Makefile generated by "configure.bat"> Makefile
-echo all.dos : as.new>>Makefile
+echo # Makefile generated by "configure.bat"> Makefile.2
+echo all.dos : as.new gasp.new>> Makefile.2
if exist config.sed del config.sed
-echo "s/^ \$(srcdir)\/move-if-change/ update/ ">> config.sed
-echo "/\.o[ ]*:/ s/config.status// ">> config.sed
-echo "/^target=/ c\ ">> config.sed
-echo "target=go32 ">> config.sed
-echo "s/CC = cc/CC = gcc/ ">> config.sed
-echo "s/:\$/: \$/g ">> config.sed
-echo "s/^ \ *\.\// go32 / ">> config.sed
-echo "s/`echo \$(srcdir)\///g ">> config.sed
-echo "s/ | sed 's,\^\\\.\/,,'`//g ">> config.sed
-echo "s/^ cd \$(srcdir)[ ]*;// ">> config.sed
-
-echo "/^####/ i\ ">> config.sed
-echo "TDEFINES=-DMANY_SEGMENTS -DI386COFF \ ">> config.sed
-echo "LOCAL_LOADLIBES=../bfd/libbfd.a ">> config.sed
+echo "s/@srcdir@/./g ">> config.sed
+echo "s/@target_alias@/go32/ ">> config.sed
+echo "s/@prefix@// ">> config.sed
+echo "s/@CC@/gcc/g ">> config.sed
+echo "s/@OPCODES_LIB@/..\/opcodes\/libopcodes.a/g ">> config.sed
+echo "s/@BFDLIB@/..\/bfd\/libbfd.a/g ">> config.sed
+echo "s/@ALL_OBJ_DEPS@/..\/bfd\/bfd.h/g ">> config.sed
echo "/^all[ ]*:/ a\ ">> config.sed
echo "dummy: ">> config.sed
-echo "s/\/usr[^ ]*errno.h//g ">> config.sed
+echo "s/\/usr[^ ]*.h//g ">> config.sed
echo "/^config.h[ ]*:/ d ">> config.sed
+echo "s/^Makefile/not-Makefile/ ">> config.sed
sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
sed -f config2.sed Makefile.in >> Makefile.2
@@ -57,9 +50,8 @@ del Makefile.2
del config.sed
del config2.sed
-echo > config-stamp
-echo #define TARGET_CPU "i386">config.h1
-echo #define TARGET_ALIAS "i386">>config.h1
-echo #define TARGET_CANONICAL "i386">>config.h1
-sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.h1
-update config.h1 config.h
+echo #ifndef GAS_VERSION> config.new
+sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.new
+type config\go32.cfg >> config.new
+echo #endif>> config.new
+update config.new config.h