Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / stdlib / gen-mpn-copy
blobb403f27a55fd9dbfa72b2ca71f3f768b6f5933e2
1 #!/bin/sh
3 translations='
4 pentium i386/i586
5 sparc8 sparc/sparc8
6 sparc9 sparc/sparc9
7 mc68000 m68k/m68000
8 mc68020 m68k/m68020
9 mc88100 m88k/m88100
10 mc88110 m88k/m88110
11 r3000 mips
12 r4000 mips/mips64
13 hppa1_0 hppa/hppa1.0
14 hppa1_1 hppa/hppa1.1
17 set $translations
18 while [ $# -ge 2 ]; do
19 gmp=$1 glibc=$2
20 shift; shift
21 echo 'mpn-found-1 := $(filter $(gmp-srcdir)/mpn/'$gmp'/%,$(mpn-found))
22 mpn-copy-1 := $(patsubst $(gmp-srcdir)/mpn/'$gmp'/%,$(sysdep_dir)/'$glibc\
23 '/%,$(mpn-found-1))
24 mpn-found := $(filter-out $(mpn-found-1),$(mpn-found))
25 mpn-copy-sysdep := $(mpn-copy-sysdep) $(mpn-copy-1)
26 $(mpn-copy-1): $(sysdep_dir)/'$glibc'/%: \
27 $(ignore gmp2glibc.sed) $(gmp-srcdir)/mpn/'$gmp'/%
28 $(gmp2glibc)'
29 done
31 exit 0