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