Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Copyright (C) 1996-2026 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3. # The GNU C Library is free software; you can redistribute it and/or
  4. # modify it under the terms of the GNU Lesser General Public
  5. # License as published by the Free Software Foundation; either
  6. # version 2.1 of the License, or (at your option) any later version.
  7. # The GNU C Library is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. # Lesser General Public License for more details.
  11. # You should have received a copy of the GNU Lesser General Public
  12. # License along with the GNU C Library; if not, see
  13. # <https://www.gnu.org/licenses/>.
  14. ifeq ($(subdir),login)
  15. sysdep_routines += \
  16. endutxent \
  17. getutmp \
  18. getutmpx \
  19. getutxent \
  20. getutxid \
  21. getutxline \
  22. pututxline \
  23. setutxent \
  24. updwtmpx \
  25. utmpxname \
  26. # sysdep_routines
  27. sysdep_headers += \
  28. bits/utmpx.h \
  29. utmpx.h \
  30. # sysdep_headers
  31. endif
  32. ifeq ($(subdir),inet)
  33. sysdep_headers += \
  34. netinet/ip_icmp.h \
  35. netinet/udp.h \
  36. # sysdep_headers
  37. endif
  38. ifeq ($(subdir),misc)
  39. sysdep_headers += \
  40. sys/mtio.h \
  41. # sysdep_headers
  42. endif
  43. ifeq ($(subdir),csu)
  44. routines += \
  45. unwind-resume \
  46. # routines
  47. shared-only-routines += \
  48. unwind-resume \
  49. # shared-only-routines
  50. CFLAGS-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
  51. endif
  52. ifeq ($(subdir),rt)
  53. librt-sysdep_routines += \
  54. rt-unwind-resume \
  55. # librt-sysdep_routines
  56. librt-shared-only-routines += \
  57. rt-unwind-resume \
  58. # librt-shared-only-routines
  59. CFLAGS-rt-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
  60. endif
  61. ifeq ($(subdir),sysvipc)
  62. sysdep_headers += \
  63. bits/ipc-perm.h \
  64. bits/types/struct_msqid_ds.h \
  65. bits/types/struct_shmid_ds.h
  66. # sysdep_headers
  67. endif