Update.
[glibc.git] / stdlib / gen-mpn-copy
blob01656ae54df74c54e691fbb2782ca9d68974c4c1
1 #!/bin/sh
3 translations='
4 sparc64 sparc/sparc64
5 sparc32/v8 sparc/sparc8
6 sparc32 sparc
7 x86/pentium i386/i586
8 x86 i386
9 m68k/mc68000 m68k/m68000
10 m68k/mc68020 m68k/m68020
11 m88k/mc88100 m88k/m88100
12 m88k/mc88110 m88k/m88110
13 mips3 mips/mips3
14 mips2 mips
15 hppa/hppa1_1 hppa/hppa1.1
16 alpha/ev5 alpha/alphaev5
17 power rs6000
18 am29000 a29k
21 set $translations
22 while [ $# -ge 2 ]; do
23 gmp=$1 glibc=$2
24 shift; shift
25 echo 'mpn-found-1 := $(filter $(gmp-srcdir)/mpn/'$gmp'/%,$(mpn-found))
26 mpn-copy-1 := $(patsubst $(gmp-srcdir)/mpn/'$gmp'/%,$(sysdep_dir)/'$glibc\
27 '/%,$(mpn-found-1))
28 mpn-found := $(filter-out $(mpn-found-1),$(mpn-found))
29 mpn-copy-sysdep := $(mpn-copy-sysdep) $(mpn-copy-1)
30 $(mpn-copy-1): $(sysdep_dir)/'$glibc'/%: \
31 $(ignore gmp2glibc.sed) $(gmp-srcdir)/mpn/'$gmp'/%
32 $(gmp2glibc)'
33 done
35 exit 0