/sysdeps/s390/s390-64/Makefile

https://github.com/nitinkamble/glibc · Makefile · 90 lines · 74 code · 14 blank · 2 comment · 1 complexity · 32874e1f29e5e7dff722783882585f8b MD5 · raw file

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