Print this page
10079 smatch Makefile changes for usr/src/lib


   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 \
  43         db_scheme.o db_scheme_c_xdr.o \
  44         db_query.o db_query_c_xdr.o \
  45         db_mindex.o db_mindex2.o db_mindex3.o db_mindex_c_xdr.o \
  46         db_log_entry.o db_log_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 =




   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 # Copyright (c) 2018, Joyent, Inc.
  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 \
  43         db_scheme.o db_scheme_c_xdr.o \
  44         db_query.o db_query_c_xdr.o \
  45         db_mindex.o db_mindex2.o db_mindex3.o db_mindex_c_xdr.o \
  46         db_log_entry.o db_log_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 # not linted
 169 SMATCH=off
 170 
 171 # Extra includes, from yp, for yptol files.
 172 CPPFLAGS += -I$(SRC)/cmd/ypcmd
 173 
 174 # Need the path to nis_clnt.h
 175 CLNT_PICS = pics/db_entry_c_xdr.o pics/ldap_xdr.o pics/db_mindex_c_xdr.o
 176 
 177 $(CLNT_PICS) := CPPFLAGS += -I../libnsl/nis/gen
 178 
 179 LIBS = $(DYNLIB)
 180 ZDEFS=
 181 LDLIBS += -lnsl -lldap -lc
 182 
 183 # A number of interfaces are interposed by numerous applications, therefore
 184 # prevent direct binding to anything in libnisdb.  Disable libnisdb from
 185 # directly binding to itself, but allow libnisdb to directly bind to its
 186 # dependencies (ie. map -Bdirect -> -zdirect).  Ensure lazy loading is
 187 # established (which is enabled automatically with -Bdirect).  In addition,
 188 # libnisdb interposes on socket(), so tag this library as an interposer.
 189 # dependencies (lazyload).
 190 BDIRECT =