]> Git Repo - binutils.git/blobdiff - gas/configure.bat
* mpw-config.in: Add sh and i386 configs, remove sparc config.
[binutils.git] / gas / configure.bat
index 784bae75c4f8824477bf1c23d55b21e368efa24e..1fd269fd6711e57c727e43721028a95fe5dee773 100644 (file)
@@ -2,7 +2,6 @@
 if "%1" == "h8/300" goto h8300\r
 \r
 echo Configuring gas for go32\r
-update config/ho-go32.h host.h\r
 update config/tc-i386.c targ-cpu.c\r
 update config/tc-i386.h targ-cpu.h\r
 update config/te-go32.h targ-env.h\r
@@ -23,32 +22,26 @@ copy config\atof-ieee.c atof-targ.c
 \r
 :common\r
 \r
-echo # Makefile generated by "configure.bat"> Makefile\r
-echo all.dos : as.new>>Makefile\r
+echo # Makefile generated by "configure.bat"> Makefile.2\r
+echo all.dos : as.new gasp.new>> Makefile.2\r
 \r
 if exist config.sed del config.sed\r
 \r
-echo "s/^      \$(srcdir)\/move-if-change/     update/ ">> config.sed\r
-echo "/\.o[    ]*:/ s/config.status//                  ">> config.sed\r
-echo "/^target=/ c\                                    ">> config.sed\r
-echo "target=go32                                      ">> config.sed\r
-echo "s/CC = cc/CC = gcc/                              ">> config.sed\r
-echo "s/:\$/: \$/g                                     ">> config.sed\r
-echo "s/^      \ *\.\//        go32 /                  ">> config.sed\r
-echo "s/`echo \$(srcdir)\///g                          ">> config.sed\r
-echo "s/ | sed 's,\^\\\.\/,,'`//g                      ">> config.sed\r
-echo "s/^      cd \$(srcdir)[  ]*;//                   ">> config.sed\r
-\r
-echo "/^####/ i\                                       ">> config.sed\r
-echo "TDEFINES=-DMANY_SEGMENTS -DI386COFF \            ">> config.sed\r
-echo "LOCAL_LOADLIBES=../bfd/libbfd.a                  ">> config.sed\r
+echo "s/@srcdir@/./g                                   ">> config.sed\r
+echo "s/@target_alias@/go32/                           ">> config.sed\r
+echo "s/@prefix@//                                     ">> config.sed\r
+echo "s/@CC@/gcc/g                                     ">> config.sed\r
+echo "s/@OPCODES_LIB@/..\/opcodes\/libopcodes.a/g      ">> config.sed\r
+echo "s/@BFDLIB@/..\/bfd\/libbfd.a/g                   ">> config.sed\r
+echo "s/@ALL_OBJ_DEPS@/..\/bfd\/bfd.h/g                        ">> config.sed\r
 \r
 echo "/^all[   ]*:/ a\                                 ">> config.sed\r
 echo "dummy:                                           ">> config.sed\r
 \r
-echo "s/\/usr[^ ]*errno.h//g                           ">> config.sed\r
+echo "s/\/usr[^ ]*.h//g                                        ">> config.sed\r
 \r
 echo "/^config.h[      ]*:/ d                          ">> config.sed\r
+echo "s/^Makefile/not-Makefile/                                ">> config.sed\r
 \r
 sed -e "s/^\"//" -e "s/\"$//" -e "s/[  ]*$//" config.sed > config2.sed\r
 sed -f config2.sed Makefile.in >> Makefile.2\r
@@ -57,9 +50,8 @@ del Makefile.2
 del config.sed\r
 del config2.sed\r
 \r
-echo > config-stamp\r
-echo #define TARGET_CPU "i386">config.h1\r
-echo #define TARGET_ALIAS "i386">>config.h1\r
-echo #define TARGET_CANONICAL "i386">>config.h1\r
-sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.h1\r
-update config.h1 config.h\r
+echo #ifndef GAS_VERSION> config.new\r
+sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.new\r
+type config\go32.cfg >> config.new\r
+echo #endif>> config.new\r
+update config.new config.h\r
This page took 0.021417 seconds and 4 git commands to generate.