19990502 sourceware import
[deliverable/binutils-gdb.git] / binutils / configure.bat
1 @echo off
2 if "%1" == "h8/300" goto h8300
3
4 echo Configuring binutils for go32
5 update ../bfd/hosts/go32.h sysdep.h
6 goto common
7
8 :h8300
9 echo Configuring binutils for H8/300
10 update ..\bfd\hosts\h-go32.h sysdep.h
11
12 :common
13
14 echo # Makefile generated by "configure.bat"> Makefile
15
16 if exist config.sed del config.sed
17
18 sed -n "/^VERSION=/ p" Makefile.in | sed -e "s/^/s^/" -e "s/=/^\"/" -e "s/$/\"^/" > config.sed
19 sed -f config.sed version.c > version2.c
20
21 if exist config.sed del config.sed
22
23 echo "s/version\./version2\./g ">> config.sed
24 echo "s/-DVERSION=[^ ]* // ">> config.sed
25
26 echo "s/^ \$(srcdir)\/move-if-change/ update/ ">> config.sed
27 echo "/^###$/ i\ ">> config.sed
28 echo "CC = gcc ">> config.sed
29 echo "s/:\([^ ]\)/: \1/g ">> config.sed
30 echo "s/^ \ *\.\// go32 / ">> config.sed
31 echo "s/`echo \$(srcdir)\///g ">> config.sed
32 echo "s/ | sed 's,\^\\\.\/,,'`//g ">> config.sed
33 echo "s/^ cd \$(srcdir)[ ]*;// ">> config.sed
34
35 echo "/^arparse\.c/ i\ ">> config.sed
36 echo "arparse.o: arparse.c\ ">> config.sed
37 echo " $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) arparse.c ">> config.sed
38 echo "/\$(BISON)/ c\ ">> config.sed
39 echo " bison $(BISONFLAGS) -o $@ arparse.y ">> config.sed
40 echo "/y\.tab\./ d ">> config.sed
41
42 echo "/^arlex.c/ { ">> config.sed
43 echo " i\ ">> config.sed
44 echo "arlex.o: arlex.c ">> config.sed
45 echo " i\ ">> config.sed
46 echo " $(CC) -c $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) arlex.c ">> config.sed
47 echo "} ">> config.sed
48 echo "/\$(LEX)/ c\ ">> config.sed
49 echo " flex $(LEX_OPTIONS) arlex.l ">> config.sed
50 echo "s/lex\.yy\./lexyy./g ">> config.sed
51
52 echo "s/'"/\\"/g ">> config.sed
53 echo "s/"'/\\"/g ">> config.sed
54
55 echo "s/c++filt/cxxfilt/g ">> config.sed
56
57 sed -e "s/^\"//" -e "s/\"$//" -e "s/[ ]*$//" config.sed > config2.sed
58 sed -f config2.sed Makefile.in >> Makefile
59 del config.sed
60 del config2.sed
61
62 echo int prepends_underscore = 1; > underscore.c
63
This page took 0.03851 seconds and 4 git commands to generate.