2 if "%1" == "h8/300" goto h8300
\r
4 echo Configuring gas for go32
\r
5 update config/tc-i386.c targ-cpu.c
\r
6 update config/tc-i386.h targ-cpu.h
\r
7 update config/te-go32.h targ-env.h
\r
8 update config/obj-coff.h obj-format.h
\r
9 update config/obj-coff.c obj-format.c
\r
10 update config/atof-ieee.c atof-targ.c
\r
14 echo Configuring gas for H8/300
\r
15 copy config\ho-go32.h host.h
\r
16 copy config\tc-h8300.c targ-cpu.c
\r
17 copy config\tc-h8300.h targ-cpu.h
\r
18 copy config\te-generic.h targ-env.h
\r
19 copy config\objcoffbfd.h obj-format.h
\r
20 copy config\objcoffbfd.c obj-format.c
\r
21 copy config\atof-ieee.c atof-targ.c
\r
25 echo # Makefile generated by "configure.bat"> Makefile.2
\r
26 echo all.dos : as.new gasp.new>> Makefile.2
\r
28 if exist config.sed del config.sed
\r
30 echo "s/@srcdir@/./g ">> config.sed
\r
31 echo "s/@target_alias@/go32/ ">> config.sed
\r
32 echo "s/@prefix@// ">> config.sed
\r
33 echo "s/@CC@/gcc/g ">> config.sed
\r
34 echo "s/@OPCODES_LIB@/..\/opcodes\/libopcodes.a/g ">> config.sed
\r
35 echo "s/@BFDLIB@/..\/bfd\/libbfd.a/g ">> config.sed
\r
36 echo "s/@ALL_OBJ_DEPS@/..\/bfd\/bfd.h/g ">> config.sed
\r
38 echo "/^all[ ]*:/ a\ ">> config.sed
\r
39 echo "dummy: ">> config.sed
\r
41 echo "s/\/usr[^ ]*.h//g ">> config.sed
\r
43 echo "/^config.h[ ]*:/ d ">> config.sed
\r
44 echo "s/^Makefile/not-Makefile/ ">> config.sed
\r
46 sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
\r
47 sed -f config2.sed Makefile.in >> Makefile.2
\r
48 update Makefile.2 Makefile
\r
53 echo #ifndef GAS_VERSION> config.new
\r
54 sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.new
\r
55 type config\go32.cfg >> config.new
\r
56 echo #endif>> config.new
\r
57 update config.new config.h
\r