Fix failing sNaN tests on hppa.
[glibc.git] / nis / Makefile
blob6b6f5ee72c80ec3534ccf913f4ad4a143de0c7c9
1 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
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.
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
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <http://www.gnu.org/licenses/>.
19 # Makefile for NIS/NIS+ part.
21 subdir := nis
23 include ../Makeconfig
25 aux := nis_hash
27 ifeq ($(build-obsolete-nsl),yes)
28 headers := $(wildcard rpcsvc/*.[hx])
30 # These are the databases available for the nis (and perhaps later nisplus)
31 # service. This must be a superset of the services in nss.
32 databases = proto service hosts network grp pwd rpc ethers \
33 spwd netgrp alias publickey
35 # Specify rules for the nss_* modules.
36 services := nis nisplus compat
37 endif
39 extra-libs = libnsl
40 ifeq ($(build-obsolete-nsl),yes)
41 extra-libs += $(services:%=libnss_%)
42 endif
43 # These libraries will be built in the `others' pass rather than
44 # the `lib' pass, because they depend on libc.so being built already.
45 extra-libs-others = $(extra-libs)
47 ifeq ($(build-obsolete-nsl),yes)
48 # The sources are found in the appropriate subdir.
49 subdir-dirs = $(services:%=nss_%)
50 vpath %.c $(subdir-dirs)
51 endif
53 libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
54 nis_subr nis_local_names nis_free nis_file \
55 nis_print nis_error nis_call nis_lookup\
56 nis_table nis_xdr nis_server nis_ping \
57 nis_checkpoint nis_mkdir nis_rmdir nis_getservlist\
58 nis_verifygroup nis_ismember nis_addmember nis_util\
59 nis_removemember nis_creategroup nis_destroygroup\
60 nis_print_group_entry nis_domain_of nis_domain_of_r\
61 nis_modify nis_remove nis_add nis_defaults\
62 nis_findserv nis_callback nis_clone_dir nis_clone_obj\
63 nis_clone_res nss-default
65 ifeq ($(build-obsolete-nsl),yes)
66 libnss_compat-routines := $(addprefix compat-,grp pwd spwd initgroups)
67 libnss_compat-inhibit-o = $(filter-out .os,$(object-suffixes))
69 libnss_nis-routines := $(addprefix nis-,$(databases)) nis-initgroups \
70 nss-nis
71 libnss_nis-inhibit-o = $(filter-out .os,$(object-suffixes))
73 libnss_nisplus-routines := $(addprefix nisplus-,$(databases)) nisplus-parser \
74 nss-nisplus nisplus-initgroups
75 libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
76 endif
78 include ../Rules
81 ifeq ($(build-obsolete-nsl),yes)
82 $(objpfx)libnss_compat.so: $(objpfx)libnsl.so$(libnsl.so-version)
83 $(objpfx)libnss_nis.so: $(objpfx)libnsl.so$(libnsl.so-version) \
84 $(common-objpfx)nss/libnss_files.so
85 $(objpfx)libnss_nisplus.so: $(objpfx)libnsl.so$(libnsl.so-version)
86 endif
88 libnsl-libc = $(common-objpfx)linkobj/libc.so
89 # Target-specific variable setting to link objects using deprecated
90 # RPC interfaces with the version of libc.so that makes them available
91 # for new links:
92 $(services:%=$(objpfx)libnss_%.so) $(objpfx)libnsl.so: \
93 libc-for-link = $(libnsl-libc)
96 ifeq ($(build-shared),yes)
97 $(others:%=$(objpfx)%): $(objpfx)libnsl.so$(libnsl.so-version)
98 else
99 ifeq ($(build-obsolete-nsl),yes)
100 $(others:%=$(objpfx)%): $(objpfx)libnsl.a
101 endif
102 endif