* configure.in: Make sure that CC is undefined (as opposed to
[deliverable/binutils-gdb.git] / gas / configure.bat
1 @echo off
2 if "%1" == "h8/300" goto h8300
3
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
11 goto common
12
13 :h8300
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
22
23 :common
24
25 echo # Makefile generated by "configure.bat"> Makefile.2
26 echo all.dos : as.new gasp.new>> Makefile.2
27
28 if exist config.sed del config.sed
29
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
37
38 echo "/^all[ ]*:/ a\ ">> config.sed
39 echo "dummy: ">> config.sed
40
41 echo "s/\/usr[^ ]*.h//g ">> config.sed
42
43 echo "/^config.h[ ]*:/ d ">> config.sed
44 echo "s/^Makefile/not-Makefile/ ">> config.sed
45
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
49 del Makefile.2
50 del config.sed
51 del config2.sed
52
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
This page took 0.030298 seconds and 4 git commands to generate.