First cut at handling multiple emulation modes for some MIPS targets.
[deliverable/binutils-gdb.git] / gas / configure.bat
CommitLineData
c06e55d9
KR
1@echo off\r
2if "%1" == "h8/300" goto h8300\r
3\r
4echo Configuring gas for go32\r
c06e55d9
KR
5update config/tc-i386.c targ-cpu.c\r
6update config/tc-i386.h targ-cpu.h\r
7update config/te-go32.h targ-env.h\r
8update config/obj-coff.h obj-format.h\r
9update config/obj-coff.c obj-format.c\r
10update config/atof-ieee.c atof-targ.c\r
11goto common\r
12\r
13:h8300\r
14echo Configuring gas for H8/300\r
15copy config\ho-go32.h host.h\r
16copy config\tc-h8300.c targ-cpu.c\r
17copy config\tc-h8300.h targ-cpu.h\r
18copy config\te-generic.h targ-env.h\r
19copy config\objcoffbfd.h obj-format.h\r
20copy config\objcoffbfd.c obj-format.c\r
21copy config\atof-ieee.c atof-targ.c\r
22\r
23:common\r
24\r
f2889110
KR
25echo # Makefile generated by "configure.bat"> Makefile.2\r
26echo all.dos : as.new gasp.new>> Makefile.2\r
c06e55d9
KR
27\r
28if exist config.sed del config.sed\r
29\r
f2889110
KR
30echo "s/@srcdir@/./g ">> config.sed\r
31echo "s/@target_alias@/go32/ ">> config.sed\r
32echo "s/@prefix@// ">> config.sed\r
33echo "s/@CC@/gcc/g ">> config.sed\r
34echo "s/@OPCODES_LIB@/..\/opcodes\/libopcodes.a/g ">> config.sed\r
35echo "s/@BFDLIB@/..\/bfd\/libbfd.a/g ">> config.sed\r
36echo "s/@ALL_OBJ_DEPS@/..\/bfd\/bfd.h/g ">> config.sed\r
c06e55d9
KR
37\r
38echo "/^all[ ]*:/ a\ ">> config.sed\r
39echo "dummy: ">> config.sed\r
40\r
f2889110 41echo "s/\/usr[^ ]*.h//g ">> config.sed\r
c06e55d9
KR
42\r
43echo "/^config.h[ ]*:/ d ">> config.sed\r
f2889110 44echo "s/^Makefile/not-Makefile/ ">> config.sed\r
c06e55d9
KR
45\r
46sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed\r
47sed -f config2.sed Makefile.in >> Makefile.2\r
48update Makefile.2 Makefile\r
49del Makefile.2\r
50del config.sed\r
51del config2.sed\r
52\r
f2889110
KR
53echo #ifndef GAS_VERSION> config.new\r
54sed -n "/^VERSION=/p" Makefile.in | sed -e "s/VERSION=/#define GAS_VERSION \"/" -e "s/$/\"/">> config.new\r
55type config\go32.cfg >> config.new\r
56echo #endif>> config.new\r
57update config.new config.h\r
This page took 0.062036 seconds and 4 git commands to generate.