]> git.ipfire.org Git - thirdparty/glibc.git/blame - nis/Makefile
nis: Build libnsl with 64 bit time_t
[thirdparty/glibc.git] / nis / Makefile
CommitLineData
581c785b 1# Copyright (C) 1996-2022 Free Software Foundation, Inc.
6259ec0d
UD
2# This file is part of the GNU C Library.
3
4# The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5# modify it under the terms of the GNU Lesser General Public
6# License as published by the Free Software Foundation; either
7# version 2.1 of the License, or (at your option) any later version.
6259ec0d
UD
8
9# The GNU C Library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12# Lesser General Public License for more details.
6259ec0d 13
41bdb6e2 14# You should have received a copy of the GNU Lesser General Public
59ba27a6 15# License along with the GNU C Library; if not, see
5a82c748 16# <https://www.gnu.org/licenses/>.
6259ec0d
UD
17
18#
2d7da676 19# Makefile for NIS/NIS+ part.
6259ec0d
UD
20#
21subdir := nis
22
021db4be
AJ
23include ../Makeconfig
24
ae7a94e5 25ifdef have-GLIBC_2.28
6259ec0d 26
1e4d83f6 27extra-libs = libnsl
6259ec0d
UD
28# These libraries will be built in the `others' pass rather than
29# the `lib' pass, because they depend on libc.so being built already.
30extra-libs-others = $(extra-libs)
31
e61abf83 32libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
7b57bfe5
UD
33 nis_subr nis_local_names nis_free nis_file \
34 nis_print nis_error nis_call nis_lookup\
35 nis_table nis_xdr nis_server nis_ping \
51702635 36 nis_checkpoint nis_mkdir nis_rmdir nis_getservlist\
2d7da676 37 nis_verifygroup nis_ismember nis_addmember nis_util\
51702635
UD
38 nis_removemember nis_creategroup nis_destroygroup\
39 nis_print_group_entry nis_domain_of nis_domain_of_r\
dfd2257a
UD
40 nis_modify nis_remove nis_add nis_defaults\
41 nis_findserv nis_callback nis_clone_dir nis_clone_obj\
cdd14619 42 nis_clone_res
6259ec0d 43
9a08a366
FW
44# Pretend that libnsl.so is a linker script, so that the symbolic link
45# is not installed.
46install-lib-ldscripts = libnsl.so
47$(inst_libdir)/libnsl.so:
5503f413
AS
48# Build only shared libnsl.
49libnsl-inhibit-o = $(filter-out .os,$(object-suffixes))
9a08a366 50
462d348c
AS
51endif # have-GLIBC_2.28
52
6259ec0d
UD
53include ../Rules
54
55
7b57bfe5 56libnsl-libc = $(common-objpfx)linkobj/libc.so
fab7ce3f
JM
57# Target-specific variable setting to link objects using deprecated
58# RPC interfaces with the version of libc.so that makes them available
59# for new links:
ae7a94e5 60$(objpfx)libnsl.so: libc-for-link = $(libnsl-libc)
6259ec0d
UD
61
62
63ifeq ($(build-shared),yes)
64$(others:%=$(objpfx)%): $(objpfx)libnsl.so$(libnsl.so-version)
1e4d83f6 65endif