Print this page
3772 consider raising default descriptor soft limit
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libnsl/Makefile.com
+++ new/usr/src/lib/libnsl/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 25 #
26 26
27 27 LIBRARY= libnsl.a
28 28 VERS= .1
29 29
30 30 # objects are listed by source directory
31 31
32 32 # common utility code used in more than one directory
33 33 COMMON= common.o daemon_utils.o
34 34
35 35 DES= des_crypt.o des_soft.o
36 36
37 37 DIAL= dial.o
38 38
39 39 IPSEC= algs.o
40 40
41 41 NETDIR= netdir.o
42 42
43 43 NSS= \
44 44 gethostbyname_r.o gethostent.o gethostent_r.o gethostent6.o gethostby_door.o \
45 45 getipnodeby_door.o getipnodeby.o getrpcent.o getrpcent_r.o inet_matchaddr.o \
46 46 inet_pton.o inet_ntop.o netdir_inet.o netdir_inet_sundry.o \
47 47 parse.o getauthattr.o getprofattr.o getexecattr.o getuserattr.o getauuser.o
48 48
49 49 NETSELECT= netselect.o
50 50
51 51 NSL= \
52 52 _conn_util.o _data2.o _errlst.o \
53 53 _utility.o t_accept.o t_alloc.o t_bind.o t_close.o \
54 54 t_connect.o t_error.o t_free.o t_getinfo.o t_getname.o \
55 55 t_getstate.o t_listen.o t_look.o t_open.o t_optmgmt.o \
56 56 t_rcv.o t_rcvconnect.o t_rcvdis.o t_rcvrel.o t_rcvudata.o \
57 57 t_rcvuderr.o t_snd.o t_snddis.o t_sndrel.o t_sndudata.o \
58 58 t_sndv.o t_sndreldata.o t_rcvv.o t_rcvreldata.o t_sysconf.o \
59 59 t_sndvudata.o t_rcvvudata.o t_sync.o t_unbind.o t_strerror.o \
60 60 xti_wrappers.o
61 61
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
62 62 WRAPPERS= \
63 63 tli_wrappers.o
64 64
65 65 RPC= \
66 66 auth_des.o auth_none.o auth_sys.o auth_time.o authdes_prot.o \
67 67 authsys_prot.o can_use_af.o \
68 68 clnt_bcast.o clnt_dg.o clnt_door.o clnt_generic.o clnt_perror.o \
69 69 clnt_raw.o clnt_simple.o clnt_vc.o fdsync.o getdname.o \
70 70 inet_ntoa.o key_call.o key_prot.o mt_misc.o \
71 71 netname.o netnamer.o pmap_clnt.o pmap_prot.o \
72 -rpc_callmsg.o rpc_comdata.o rpc_comdata1.o rpc_generic.o rpc_prot.o \
73 -rpc_sel2poll.o \
72 +rpc_callmsg.o rpc_comdata.o rpc_generic.o rpc_prot.o rpc_sel2poll.o \
74 73 rpc_soc.o rpc_td.o rpcb_clnt.o rpcb_prot.o \
75 74 rpcb_st_xdr.o rpcdname.o rpcsec_gss_if.o rtime_tli.o svc.o \
76 75 svc_auth.o svc_auth_loopb.o svc_auth_sys.o svc_dg.o \
77 76 svc_door.o svc_generic.o svc_raw.o svc_run.o svc_simple.o \
78 77 svc_vc.o svcauth_des.o svid_funcs.o ti_opts.o xdr.o \
79 78 xdr_array.o xdr_float.o xdr_mem.o xdr_rec.o xdr_refer.o \
80 79 xdr_sizeof.o xdr_stdio.o
81 80
82 81 SAF= checkver.o doconfig.o
83 82
84 83 YP= \
85 84 dbm.o yp_all.o yp_b_clnt.o yp_b_xdr.o yp_bind.o \
86 85 yp_enum.o yp_master.o yp_match.o yp_order.o yp_update.o \
87 86 yperr_string.o yp_xdr.o ypprot_err.o ypupd.o \
88 87 yp_rsvd.o \
89 88 yppasswd_xdr.o
90 89
91 90 NIS_GEN= \
92 91 nis_xdr.o nis_subr.o nis_misc.o \
93 92 nis_misc_proc.o nis_sec_mechs.o
94 93
95 94
96 95 NIS= $(NIS_GEN)
97 96
98 97 KEY= publickey.o xcrypt.o gen_dhkeys.o
99 98
100 99 OBJECTS= $(COMMON) $(DES) $(DIAL) $(IPSEC) $(NETDIR) $(NSS) $(NETSELECT) \
101 100 $(NSL) $(WRAPPERS) $(RPC) $(SAF) $(YP) $(NIS) $(KEY)
102 101
103 102 # libnsl build rules
104 103 pics/%.o: ../common/%.c
105 104 $(COMPILE.c) -o $@ $<
106 105 $(POST_PROCESS_O)
107 106
108 107 pics/%.o: ../des/%.c
109 108 $(COMPILE.c) -o $@ $<
110 109 $(POST_PROCESS_O)
111 110
112 111 pics/%.o: ../dial/%.c
113 112 $(COMPILE.c) -o $@ $<
114 113 $(POST_PROCESS_O)
115 114
116 115 pics/%.o: ../ipsec/%.c
117 116 $(COMPILE.c) -o $@ $<
118 117 $(POST_PROCESS_O)
119 118
120 119 pics/%.o: ../netdir/%.c
121 120 $(COMPILE.c) -o $@ $<
122 121 $(POST_PROCESS_O)
123 122
124 123 pics/%.o: ../nss/%.c
125 124 $(COMPILE.c) -o $@ $<
126 125 $(POST_PROCESS_O)
127 126
128 127 pics/%.o: ../netselect/%.c
129 128 $(COMPILE.c) -o $@ $<
130 129 $(POST_PROCESS_O)
131 130
132 131 pics/%.o: ../nsl/%.c
133 132 $(COMPILE.c) -o $@ $<
134 133 $(POST_PROCESS_O)
135 134
136 135 pics/%.o: ../rpc/%.c
137 136 $(COMPILE.c) -DPORTMAP -DNIS -o $@ $<
138 137 $(POST_PROCESS_O)
139 138
140 139 pics/%.o: ../saf/%.c
141 140 $(COMPILE.c) -o $@ $<
142 141 $(POST_PROCESS_O)
143 142
144 143 pics/%.o: ../yp/%.c
145 144 $(COMPILE.c) -o $@ $<
146 145 $(POST_PROCESS_O)
147 146
148 147 pics/%.o: ../key/%.c
149 148 $(COMPILE.c) -o $@ $<
150 149 $(POST_PROCESS_O)
151 150
152 151 pics/%.o: ../nis/gen/%.c ../nis/gen/nis_clnt.h
153 152 $(COMPILE.c) -o $@ $<
154 153 $(POST_PROCESS_O)
155 154
156 155
157 156 pics/%.o: ../nis/gen/nis_clnt.h
158 157 $(COMPILE.cc) -o $@ $<
159 158 $(POST_PROCESS_O)
160 159
161 160 # include library definitions
162 161 include ../../Makefile.lib
163 162
164 163 # install this library in the root filesystem
165 164 include ../../Makefile.rootfs
166 165
167 166 LIBS = $(DYNLIB) $(LINTLIB)
168 167
169 168 SRCDIR= ../common
170 169
171 170 # Override the position-independent code generation flags.
172 171 #
173 172 # These files are particularly rich with references to global things.
174 173 # Ordering is by number of got references per file of files that have
175 174 # non-performance sensitive code in them.
176 175 #
177 176 # If you need to add more files and the GOT overflows with "pic" items,
178 177 # then use the environment variable LD_OPTIONS=-Dgot,detail to have the
179 178 # linker print out the list of GOT hogs..
180 179
181 180 GOTHOGS = dial.o print_obj.o clnt_perror.o nsl_stdio_prv.o netdir.o \
182 181 algs.o netselect.o
183 182 BIGPICS = $(GOTHOGS:%=pics/%)
184 183 $(BIGPICS) := sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
185 184 $(BIGPICS) := i386_C_PICFLAGS = $(C_BIGPICFLAGS)
186 185
187 186 # Compile C++ code without exceptions to avoid a dependence on libC.
188 187 NOEXCEPTIONS= -noex
189 188 CCFLAGS += $(NOEXCEPTIONS)
190 189 CCFLAGS64 += $(NOEXCEPTIONS)
191 190
192 191 CPPFLAGS += -I$(SRC)/lib/common/inc -I$(SRC)/lib/libnsl/include -D_REENTRANT
193 192 CPPFLAGS += -I$(SRC)/lib/libnsl/dial
194 193
195 194 CFLAGS += $(CCVERBOSE)
196 195
197 196 # Make string literals read-only to save memory.
198 197 CFLAGS += $(XSTRCONST)
199 198 CFLAGS64 += $(XSTRCONST)
200 199 CCFLAGS += -_CC=-features=conststrings
201 200 CCFLAGS64 += -_CC=-features=conststrings
202 201
203 202 CERRWARN += -_gcc=-Wno-char-subscripts
204 203 CERRWARN += -_gcc=-Wno-parentheses
205 204 CERRWARN += -_gcc=-Wno-uninitialized
206 205 CERRWARN += -_gcc=-Wno-switch
207 206 CERRWARN += -_gcc=-Wno-char-subscripts
208 207 CERRWARN += -_gcc=-Wno-empty-body
209 208 CERRWARN += -_gcc=-Wno-unused-variable
210 209 CERRWARN += -_gcc=-Wno-clobbered
211 210
212 211 LIBMP = -lmp
213 212 lint := LIBMP =
214 213 LDLIBS += $(LIBMP) -lmd -lc
215 214 DYNFLAGS += $(ZNODELETE)
216 215
217 216 $(LINTLIB):= SRCS=$(SRCDIR)/$(LINTSRC)
218 217 LINTFLAGS += -m -DPORTMAP
219 218 LINTFLAGS64 += -m -DPORTMAP
220 219
221 220 .KEEP_STATE:
222 221
223 222 all: $(LIBS)
224 223
225 224 # Don't lint WRAPPERS as they are explicitly unclean
226 225 SRCS= $(DES:%.o=../des/%.c) \
227 226 $(DIAL:%.o=../dial/%.c) \
228 227 $(IPSEC:%.o=../ipsec/%.c) \
229 228 $(NETDIR:%.o=../netdir/%.c) \
230 229 $(NSS:%.o=../nss/%.c) \
231 230 $(NETSELECT:%.o=../netselect/%.c) \
232 231 $(NSL:%.o=../nsl/%.c) \
233 232 $(RPC:%.o=../rpc/%.c) \
234 233 $(SAF:%.o=../saf/%.c) \
235 234 $(YP:%.o=../yp/%.c) \
236 235 $(NIS_GEN:%.o=../nis/gen/%.c) \
237 236 $(COMMON:%.o=../common/%.c)
238 237
239 238 lint:
240 239 @$(LINT.c) $(SRCS) $(LDLIBS)
241 240
242 241 # include library targets
243 242 include ../../Makefile.targ
↓ open down ↓ |
160 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX