]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/s390/s390-64/Makefile
Consistently use $(elf-objpfx).
[thirdparty/glibc.git] / sysdeps / s390 / s390-64 / Makefile
CommitLineData
d5b6c817 1pic-ccflag = -fpic
847b055c
AJ
2
3ifeq ($(subdir),gmon)
ffeac417 4sysdep_routines += s390x-mcount
847b055c
AJ
5endif
6
7ifeq ($(subdir),elf)
8CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
9CFLAGS-dl-load.c += -Wno-unused
10CFLAGS-dl-reloc.c += -Wno-unused
11endif
f957edde
AK
12
13ifeq ($(subdir),iconvdata)
14ISO-8859-1_CP037_Z900-routines := iso-8859-1_cp037_z900
15ISO-8859-1_CP037_Z900-map := gconv.map
16
17UTF8_UTF32_Z9-routines := utf8-utf32-z9
18UTF8_UTF32_Z9-map := gconv.map
19
20UTF16_UTF32_Z9-routines := utf16-utf32-z9
21UTF16_UTF32_Z9-map := gconv.map
22
23UTF8_UTF16_Z9-routines := utf8-utf16-z9
24UTF8_UTF16_Z9-map := gconv.map
25
26s390x-iconv-modules = ISO-8859-1_CP037_Z900 UTF8_UTF16_Z9 UTF16_UTF32_Z9 UTF8_UTF32_Z9
27
28extra-modules-left += $(s390x-iconv-modules)
29include extra-module.mk
30
31extra-objs += $(addsuffix .so, $(s390x-iconv-modules))
32install-others += $(patsubst %, $(inst_gconvdir)/%.so, $(s390x-iconv-modules))
33
f957edde
AK
34$(patsubst %, $(inst_gconvdir)/%.so, $(s390x-iconv-modules)) : \
35$(inst_gconvdir)/%.so: $(objpfx)%.so $(+force)
36 $(do-install-program)
37
38$(objpfx)gconv-modules-s390: gconv-modules $(+force)
39 cp $< $@
40 echo >> $@
41 echo "# S/390 hardware accelerated modules" >> $@
42 echo -n "module ISO-8859-1// IBM037// " >> $@
43 echo " ISO-8859-1_CP037_Z900 1" >> $@
44 echo -n "module IBM037// ISO-8859-1// " >> $@
45 echo " ISO-8859-1_CP037_Z900 1" >> $@
46 echo -n "module ISO-10646/UTF8/ UTF-32// " >> $@
47 echo " UTF8_UTF32_Z9 1" >> $@
48 echo -n "module UTF-32BE// ISO-10646/UTF8/ " >> $@
49 echo " UTF8_UTF32_Z9 1" >> $@
50 echo -n "module ISO-10646/UTF8/ UTF-32BE// " >> $@
51 echo " UTF8_UTF32_Z9 1" >> $@
52 echo -n "module UTF-16BE// UTF-32// " >> $@
53 echo " UTF16_UTF32_Z9 1" >> $@
54 echo -n "module UTF-32BE// UTF-16// " >> $@
55 echo " UTF16_UTF32_Z9 1" >> $@
56 echo -n "module INTERNAL UTF-16// " >> $@
57 echo " UTF16_UTF32_Z9 1" >> $@
58 echo -n "module UTF-32BE// UTF-16BE// " >> $@
59 echo " UTF16_UTF32_Z9 1" >> $@
60 echo -n "module INTERNAL UTF-16BE// " >> $@
61 echo " UTF16_UTF32_Z9 1" >> $@
62 echo -n "module UTF-16BE// UTF-32BE// " >> $@
63 echo " UTF16_UTF32_Z9 1" >> $@
64 echo -n "module UTF-16BE// INTERNAL " >> $@
65 echo " UTF16_UTF32_Z9 1" >> $@
66 echo -n "module UTF-16BE// ISO-10646/UTF8/ " >> $@
67 echo " UTF8_UTF16_Z9 1" >> $@
68 echo -n "module ISO-10646/UTF8/ UTF-16// " >> $@
69 echo " UTF8_UTF16_Z9 1" >> $@
70 echo -n "module ISO-10646/UTF8/ UTF-16BE// " >> $@
71 echo " UTF8_UTF16_Z9 1" >> $@
72
73$(inst_gconvdir)/gconv-modules: $(objpfx)gconv-modules-s390 $(+force)
74 $(do-install)
c0cfb5eb
UD
75ifeq (no,$(cross-compiling))
76# Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary
77# if this libc has more gconv modules than the previously installed one.
78 if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \
79 LC_ALL=C LANGUAGE=C \
4134b50d 80 $(elf-objpfx)ld.so --library-path $(rpath-link) \
c0cfb5eb
UD
81 $(common-objpfx)iconv/iconvconfig \
82 $(addprefix --prefix=,$(install_root)); \
83 fi
84else
85 @echo '*@*@*@ You should recreate $(inst_gconvdir)/gconv-modules.cache'
86endif
f957edde
AK
87
88endif