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

  25 
  26 LIBRARY= libkdb.a
  27 VERS= .1
  28 
  29 # kdb
  30 KDBOBJS= \
  31         keytab.o \
  32         encrypt_key.o \
  33         decrypt_key.o \
  34         kdb_convert.o \
  35         kdb_cpw.o \
  36         kdb_default.o \
  37         kdb_log.o \
  38         kdb5.o
  39 
  40 DERIVED_OBJS= \
  41         iprop_xdr.o
  42 
  43 # Definitions needed to rpcgen iprop-related files
  44 ISRCHDR= ../iprop.h


  70 # override liblink
  71 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  72 
  73 CPPFLAGS +=     -DHAVE_CONFIG_H -DHAVE_BT_RSEQ \
  74                 -I$(KRB5IPROPDIR) \
  75                 -I$(SRC)/lib/krb5 \
  76                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  77                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  78                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  79                 -I$(SRC)/uts/common/gssapi/include/ \
  80                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  81 
  82 CFLAGS +=       $(CCVERBOSE) -I..
  83 
  84 CERRWARN +=     -_gcc=-Wno-unused-variable
  85 CERRWARN +=     -_gcc=-Wno-unused-function
  86 CERRWARN +=     -_gcc=-Wno-type-limits
  87 CERRWARN +=     -_gcc=-Wno-uninitialized
  88 CERRWARN +=     -_gcc=-Wno-parentheses
  89 


  90 DYNFLAGS +=     $(KRUNPATH) $(KMECHLIB)
  91 LDLIBS +=       -lc -lnsl
  92 
  93 .KEEP_STATE:
  94 
  95 all:    $(LIBS)
  96 
  97 # Rules to rpcgen-erate derived files from the iprop.x spec file
  98 $(ISRCHDR):     $(KRB5IPROPDIR)/iprop.x
  99         $(RM)   $@
 100         $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
 101 
 102 $(ISRCXDR):     $(ISRCHDR) $(KRB5IPROPDIR)/iprop.x
 103         $(RM) $@
 104         $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
 105 
 106 CLEANFILES +=   $(ISRCHDR) $(ISRCXDR)
 107 
 108 # Explicitly state the dependancy on iprop.h
 109 $(LIBS): $(ISRCHDR)


   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 2007 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libkdb.a
  28 VERS= .1
  29 
  30 # kdb
  31 KDBOBJS= \
  32         keytab.o \
  33         encrypt_key.o \
  34         decrypt_key.o \
  35         kdb_convert.o \
  36         kdb_cpw.o \
  37         kdb_default.o \
  38         kdb_log.o \
  39         kdb5.o
  40 
  41 DERIVED_OBJS= \
  42         iprop_xdr.o
  43 
  44 # Definitions needed to rpcgen iprop-related files
  45 ISRCHDR= ../iprop.h


  71 # override liblink
  72 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  73 
  74 CPPFLAGS +=     -DHAVE_CONFIG_H -DHAVE_BT_RSEQ \
  75                 -I$(KRB5IPROPDIR) \
  76                 -I$(SRC)/lib/krb5 \
  77                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  78                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  79                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
  80                 -I$(SRC)/uts/common/gssapi/include/ \
  81                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  82 
  83 CFLAGS +=       $(CCVERBOSE) -I..
  84 
  85 CERRWARN +=     -_gcc=-Wno-unused-variable
  86 CERRWARN +=     -_gcc=-Wno-unused-function
  87 CERRWARN +=     -_gcc=-Wno-type-limits
  88 CERRWARN +=     -_gcc=-Wno-uninitialized
  89 CERRWARN +=     -_gcc=-Wno-parentheses
  90 
  91 SMOFF += indenting,all_func_returns,deref_check,signed
  92 
  93 DYNFLAGS +=     $(KRUNPATH) $(KMECHLIB)
  94 LDLIBS +=       -lc -lnsl
  95 
  96 .KEEP_STATE:
  97 
  98 all:    $(LIBS)
  99 
 100 # Rules to rpcgen-erate derived files from the iprop.x spec file
 101 $(ISRCHDR):     $(KRB5IPROPDIR)/iprop.x
 102         $(RM)   $@
 103         $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
 104 
 105 $(ISRCXDR):     $(ISRCHDR) $(KRB5IPROPDIR)/iprop.x
 106         $(RM) $@
 107         $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
 108 
 109 CLEANFILES +=   $(ISRCHDR) $(ISRCXDR)
 110 
 111 # Explicitly state the dependancy on iprop.h
 112 $(LIBS): $(ISRCHDR)