about summary refs log tree commit diff
path: root/stdlib/gen-mpn-copy
blob: 8fffcb2394fb78b8cfa701e80ce06a204b334a14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

translations='
pentium i386/i586
sparc8 sparc/sparc8
sparc9 sparc/sparc9
mc68000 m68k/m68000
mc68020 m68k/m68020
mc88100 m88k/m88100
mc88110 m88k/m88110
mips2 mips
mips3 mips/mips3
hppa1_0 hppa
hppa1_1 hppa/hppa1.1
ev4 alpha
ev5 alpha/alphaev5
power rs6000
am29000 a29k
'

set $translations
while [ $# -ge 2 ]; do
  gmp=$1 glibc=$2
  shift; shift
  echo 'mpn-found-1 := $(filter $(gmp-srcdir)/mpn/'$gmp'/%,$(mpn-found))
mpn-copy-1 := $(patsubst $(gmp-srcdir)/mpn/'$gmp'/%,$(sysdep_dir)/'$glibc\
'/%,$(mpn-found-1))
mpn-found := $(filter-out $(mpn-found-1),$(mpn-found))
mpn-copy-sysdep := $(mpn-copy-sysdep) $(mpn-copy-1)
$(mpn-copy-1): $(sysdep_dir)/'$glibc'/%: \
	       $(ignore gmp2glibc.sed) $(gmp-srcdir)/mpn/'$gmp'/%
	$(gmp2glibc)'
done

exit 0