2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 #
26
27 LIBRARY= libnisdb.a
28 VERS= .2
29 PROTOCOL_DIR= $(ROOT)/include/rpcsvc
30 YPTOL_DIR= ./yptol
31
32 SED= sed
33
34 OBJECTS = \
35 db_entry.o db_entry_c_xdr.o \
36 db_item.o db_item_c_xdr.o \
37 db_vers.o db_vers_c_xdr.o \
38 db_pickle.o \
39 db_table.o db_table_c_xdr.o \
40 db_index_entry.o db_index_entry_c.o \
41 db_index.o db_index_c_xdr.o \
117 LARGESYMS= nis_parse_ldap_conf.o \
118 nis_parse_ldap_attr.o \
119 nis_parse_ldap_yp_util.o \
120 nis_parse_ldap_map.o \
121 ldap_parse.o \
122 dit_access.o \
123 dit_access_utilis.o \
124 map_conv.o \
125 map_ctrl.o \
126 shim.o \
127 shim_ancil.o \
128 shim_changepasswd.o \
129 update.o \
130 stubs.o \
131 yptol_utils.o \
132 nis_parse_ldap_util.o
133 LARGEPICS= $(LARGESYMS:%=pics/%)
134 $(LARGEPICS) := sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
135 $(LARGEPICS) := i386_C_PICFLAGS = $(C_BIGPICFLAGS)
136
137 CPPFLAGS += -D_REENTRANT
138
139 CERRWARN += -_gcc=-Wno-unused-variable
140 CERRWARN += -_gcc=-Wno-unused-value
141 CERRWARN += -_gcc=-Wno-uninitialized
142 CERRWARN += -_gcc=-Wno-implicit-function-declaration
143 CERRWARN += -_gcc=-Wno-switch
144 CERRWARN += -_gcc=-Wno-parentheses
145
146 # Extra includes, from yp, for yptol files.
147 CPPFLAGS += -I$(SRC)/cmd/ypcmd
148
149 LIBS = $(DYNLIB)
150 ZDEFS=
151 LDLIBS += -lnsl -lldap -lc
152
153 # A number of interfaces are interposed by numerous applications, therefore
154 # prevent direct binding to anything in libnisdb. Disable libnisdb from
155 # directly binding to itself, but allow libnisdb to directly bind to its
156 # dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is
157 # established (which is enabled automatically with -Bdirect). In addition,
158 # libnisdb interposes on socket(), so tag this library as an interposer.
159 # dependencies (lazyload).
160 BDIRECT =
161 DYNFLAGS += $(BNODIRECT) $(ZINTERPOSE) $(ZDIRECT) $(ZLAZYLOAD)
162
163 all := TARGET= all
164 clean := TARGET= clean
165 clobber := TARGET= clobber
166 install := TARGET= install
167 lint := TARGET= lint
168
|
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2015 Gary Mills
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26 #
27
28 LIBRARY= libnisdb.a
29 VERS= .2
30 PROTOCOL_DIR= $(ROOT)/include/rpcsvc
31 YPTOL_DIR= ./yptol
32
33 SED= sed
34
35 OBJECTS = \
36 db_entry.o db_entry_c_xdr.o \
37 db_item.o db_item_c_xdr.o \
38 db_vers.o db_vers_c_xdr.o \
39 db_pickle.o \
40 db_table.o db_table_c_xdr.o \
41 db_index_entry.o db_index_entry_c.o \
42 db_index.o db_index_c_xdr.o \
118 LARGESYMS= nis_parse_ldap_conf.o \
119 nis_parse_ldap_attr.o \
120 nis_parse_ldap_yp_util.o \
121 nis_parse_ldap_map.o \
122 ldap_parse.o \
123 dit_access.o \
124 dit_access_utilis.o \
125 map_conv.o \
126 map_ctrl.o \
127 shim.o \
128 shim_ancil.o \
129 shim_changepasswd.o \
130 update.o \
131 stubs.o \
132 yptol_utils.o \
133 nis_parse_ldap_util.o
134 LARGEPICS= $(LARGESYMS:%=pics/%)
135 $(LARGEPICS) := sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
136 $(LARGEPICS) := i386_C_PICFLAGS = $(C_BIGPICFLAGS)
137
138 # More and stricter semantic checks and lint-like checks
139 CFLAGS += $(CCVERBOSE)
140
141 CPPFLAGS += -D_REENTRANT
142
143 # Have an unused variable that can't be removed
144 UVAR_PICS = \
145 pics/db_dictionary_c_xdr.o \
146 pics/db_dictlog_c_xdr.o \
147 pics/db_entry_c_xdr.o \
148 pics/db_index_c_xdr.o \
149 pics/db_item_c_xdr.o \
150 pics/db_log_entry_c_xdr.o \
151 pics/db_mindex_c_xdr.o \
152 pics/db_query_c_xdr.o \
153 pics/db_scheme_c_xdr.o \
154 pics/db_table_c_xdr.o \
155 pics/db_vers_c_xdr.o \
156 pics/ldap_xdr.o \
157 pics/dit_access.o \
158 pics/update.o \
159 pics/yptol_utils.o \
160 pics/map_ctrl.o
161
162 $(UVAR_PICS) := CERRWARN += -_gcc=-Wno-unused-variable
163
164 # Correcting these might alter logic
165 CERRWARN += -_gcc=-Wno-uninitialized
166 CERRWARN += -_gcc=-Wno-switch
167
168 # Extra includes, from yp, for yptol files.
169 CPPFLAGS += -I$(SRC)/cmd/ypcmd
170
171 # Need the path to nis_clnt.h
172 CLNT_PICS = pics/db_entry_c_xdr.o pics/ldap_xdr.o pics/db_mindex_c_xdr.o
173
174 $(CLNT_PICS) := CPPFLAGS += -I../libnsl/nis/gen
175
176 LIBS = $(DYNLIB)
177 ZDEFS=
178 LDLIBS += -lnsl -lldap -lc
179
180 # A number of interfaces are interposed by numerous applications, therefore
181 # prevent direct binding to anything in libnisdb. Disable libnisdb from
182 # directly binding to itself, but allow libnisdb to directly bind to its
183 # dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is
184 # established (which is enabled automatically with -Bdirect). In addition,
185 # libnisdb interposes on socket(), so tag this library as an interposer.
186 # dependencies (lazyload).
187 BDIRECT =
188 DYNFLAGS += $(BNODIRECT) $(ZINTERPOSE) $(ZDIRECT) $(ZLAZYLOAD)
189
190 all := TARGET= all
191 clean := TARGET= clean
192 clobber := TARGET= clobber
193 install := TARGET= install
194 lint := TARGET= lint
195
|