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


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 LIBRARY= libldap.a
  27 VERS= .5
  28 
  29 # Definition of all the objects macros
  30 # The LDAP specific objects
  31 
  32 BEROBJS=        bprint.o        decode.o        encode.o       io.o
  33 
  34 LDAPOBJS=  abandon.o add.o bind.o cache.o charray.o \
  35         charset.o compare.o compat.o control.o countvalues.o \
  36         delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \
  37         friendly.o getattr.o getdn.o getdxbyname.o getentry.o \
  38         getfilter.o getoption.o getvalues.o memcache.o message.o \
  39         modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
  40         rename.o request.o reslist.o result.o saslbind.o sasl.o \
  41         sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \
  42         tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \
  43         cram_md5.o secutil.o spagectrl.o digest_md5.o
  44 


 103 # Local Libldap definitions
 104 LOCFLAGS +=      $(XSTRCONST) -D_REENTRANT
 105 
 106 # Following values defined in Makefile.master are overwritten here.
 107 #sparc_C_PICFLAGS =     $(sparc_C_BIGPICFLAGS)
 108 sparcv9_C_PICFLAGS =    $(sparcv9_C_BIGPICFLAGS)
 109 #i386_C_PICFLAGS =      $(i386_C_BIGPICFLAGS)
 110 #amd64_C_PICFLAGS =     $(amd64_C_BIGPICFLAGS)
 111 
 112 CFLAGS +=       $(CCVERBOSE) $(LOCFLAGS)
 113 CFLAGS64 +=     $(LOCFLAGS)
 114 
 115 CERRWARN +=     -_gcc=-Wno-parentheses
 116 CERRWARN +=     -_gcc=-Wno-uninitialized
 117 CERRWARN +=     -_gcc=-Wno-type-limits
 118 CERRWARN +=     -_gcc=-Wno-unused-function
 119 CERRWARN +=     -_gcc=-Wno-unused-variable
 120 CERRWARN +=     -_gcc=-Wno-unused-value
 121 CERRWARN +=     -_gcc=-Wno-address
 122 



 123 LDLIBS +=       -lsasl -lsocket -lnsl -lmd -lc
 124 
 125 .KEEP_STATE:
 126 
 127 # include library targets
 128 include ../../Makefile.targ
 129 
 130 pics/%.o: ../sources/ldap/ber/%.c
 131         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
 132         $(POST_PROCESS_O)
 133 
 134 pics/%.o: ../sources/ldap/common/%.c
 135         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
 136         $(POST_PROCESS_O)
 137 
 138 pics/%.o: ../sources/ldap/ssldap/%.c
 139         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
 140         $(POST_PROCESS_O)
 141 
 142 pics/%.o: ../sources/ldap/prldap/%.c


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libldap.a
  28 VERS= .5
  29 
  30 # Definition of all the objects macros
  31 # The LDAP specific objects
  32 
  33 BEROBJS=        bprint.o        decode.o        encode.o       io.o
  34 
  35 LDAPOBJS=  abandon.o add.o bind.o cache.o charray.o \
  36         charset.o compare.o compat.o control.o countvalues.o \
  37         delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \
  38         friendly.o getattr.o getdn.o getdxbyname.o getentry.o \
  39         getfilter.o getoption.o getvalues.o memcache.o message.o \
  40         modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
  41         rename.o request.o reslist.o result.o saslbind.o sasl.o \
  42         sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \
  43         tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \
  44         cram_md5.o secutil.o spagectrl.o digest_md5.o
  45 


 104 # Local Libldap definitions
 105 LOCFLAGS +=      $(XSTRCONST) -D_REENTRANT
 106 
 107 # Following values defined in Makefile.master are overwritten here.
 108 #sparc_C_PICFLAGS =     $(sparc_C_BIGPICFLAGS)
 109 sparcv9_C_PICFLAGS =    $(sparcv9_C_BIGPICFLAGS)
 110 #i386_C_PICFLAGS =      $(i386_C_BIGPICFLAGS)
 111 #amd64_C_PICFLAGS =     $(amd64_C_BIGPICFLAGS)
 112 
 113 CFLAGS +=       $(CCVERBOSE) $(LOCFLAGS)
 114 CFLAGS64 +=     $(LOCFLAGS)
 115 
 116 CERRWARN +=     -_gcc=-Wno-parentheses
 117 CERRWARN +=     -_gcc=-Wno-uninitialized
 118 CERRWARN +=     -_gcc=-Wno-type-limits
 119 CERRWARN +=     -_gcc=-Wno-unused-function
 120 CERRWARN +=     -_gcc=-Wno-unused-variable
 121 CERRWARN +=     -_gcc=-Wno-unused-value
 122 CERRWARN +=     -_gcc=-Wno-address
 123 
 124 # not linted
 125 SMATCH=off
 126 
 127 LDLIBS +=       -lsasl -lsocket -lnsl -lmd -lc
 128 
 129 .KEEP_STATE:
 130 
 131 # include library targets
 132 include ../../Makefile.targ
 133 
 134 pics/%.o: ../sources/ldap/ber/%.c
 135         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
 136         $(POST_PROCESS_O)
 137 
 138 pics/%.o: ../sources/ldap/common/%.c
 139         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
 140         $(POST_PROCESS_O)
 141 
 142 pics/%.o: ../sources/ldap/ssldap/%.c
 143         $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
 144         $(POST_PROCESS_O)
 145 
 146 pics/%.o: ../sources/ldap/prldap/%.c