Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #
  15. # Makefile for NIS/NIS+ part.
  16. #
  17. subdir := nis
  18. include ../Makeconfig
  19. ifdef have-GLIBC_2.28
  20. extra-libs = libnsl
  21. # These libraries will be built in the `others' pass rather than
  22. # the `lib' pass, because they depend on libc.so being built already.
  23. extra-libs-others = $(extra-libs)
  24. libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
  25. nis_subr nis_local_names nis_free nis_file \
  26. nis_print nis_error nis_call nis_lookup\
  27. nis_table nis_xdr nis_server nis_ping \
  28. nis_checkpoint nis_mkdir nis_rmdir nis_getservlist\
  29. nis_verifygroup nis_ismember nis_addmember nis_util\
  30. nis_removemember nis_creategroup nis_destroygroup\
  31. nis_print_group_entry nis_domain_of nis_domain_of_r\
  32. nis_modify nis_remove nis_add nis_defaults\
  33. nis_findserv nis_callback nis_clone_dir nis_clone_obj\
  34. nis_clone_res
  35. # Pretend that libnsl.so is a linker script, so that the symbolic link
  36. # is not installed.
  37. install-lib-ldscripts = libnsl.so
  38. $(inst_libdir)/libnsl.so:
  39. # Build only shared libnsl.
  40. libnsl-inhibit-o = $(filter-out .os,$(object-suffixes))
  41. endif # have-GLIBC_2.28
  42. include ../Rules
  43. libnsl-libc = $(common-objpfx)linkobj/libc.so
  44. # Target-specific variable setting to link objects using deprecated
  45. # RPC interfaces with the version of libc.so that makes them available
  46. # for new links:
  47. $(objpfx)libnsl.so: libc-for-link = $(libnsl-libc)
  48. ifeq ($(build-shared),yes)
  49. $(others:%=$(objpfx)%): $(objpfx)libnsl.so$(libnsl.so-version)
  50. endif