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


   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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  25 # Copyright 2018, Joyent, Inc.
  26 #
  27 # lib/pkcs11/pkcs11_softtoken/Makefile.com
  28 #
  29 
  30 LIBRARY = pkcs11_softtoken.a
  31 VERS= .1
  32 
  33 LCL_OBJECTS = \
  34         softGeneral.o           \
  35         softSlotToken.o \
  36         softSession.o           \
  37         softObject.o            \
  38         softDigest.o            \
  39         softSign.o              \
  40         softVerify.o            \
  41         softDualCrypt.o \
  42         softKeys.o              \
  43         softRand.o              \
  44         softSessionUtil.o       \
  45         softDigestUtil.o        \
  46         softAttributeUtil.o     \
  47         softObjectUtil.o        \
  48         softDESCrypt.o          \


 119         $(MPI_COBJECTS:%.o=$(MPIDIR)/%.c) \
 120         $(ECC_COBJECTS:%.o=$(ECCDIR)/%.c) \
 121         $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
 122 
 123 # libelfsign needs a static pkcs11_softtoken
 124 LIBS    =       $(DYNLIB)
 125 LDLIBS  +=      -lc -lmd -lcryptoutil -lsoftcrypto -lgen
 126 
 127 CSTD =  $(CSTD_GNU99)
 128 C99LMODE = -Xc99=%all
 129 
 130 CFLAGS  +=      $(CCVERBOSE)
 131 
 132 CERRWARN +=     -_gcc=-Wno-unused-label
 133 CERRWARN +=     -_gcc=-Wno-parentheses
 134 CERRWARN +=     -_gcc=-Wno-uninitialized
 135 CERRWARN +=     -_gcc=-Wno-type-limits
 136 CERRWARN +=     -_gcc=-Wno-unused-variable
 137 CERRWARN +=     -_gcc=-Wno-empty-body
 138 



 139 CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
 140             -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \
 141             -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \
 142             -I$(SHA1DIR) -I$(SHA2DIR) -I$(SRCDIR) \
 143             -I$(BIGNUMDIR) -I$(PADDIR) -D_POSIX_PTHREAD_SEMANTICS \
 144             -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
 145 
 146 LINTFLAGS64 += -errchk=longptr64
 147 
 148 ROOTLIBDIR=     $(ROOT)/usr/lib/security
 149 ROOTLIBDIR64=   $(ROOT)/usr/lib/security/$(MACH64)
 150 
 151 LINTSRC = \
 152         $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
 153         $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
 154 
 155 .KEEP_STATE:
 156 
 157 all:    $(LIBS)
 158 




   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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  25 # Copyright 2018, Joyent, Inc.
  26 #
  27 # Copyright (c) 2018, Joyent, Inc.

  28 
  29 LIBRARY = pkcs11_softtoken.a
  30 VERS= .1
  31 
  32 LCL_OBJECTS = \
  33         softGeneral.o           \
  34         softSlotToken.o \
  35         softSession.o           \
  36         softObject.o            \
  37         softDigest.o            \
  38         softSign.o              \
  39         softVerify.o            \
  40         softDualCrypt.o \
  41         softKeys.o              \
  42         softRand.o              \
  43         softSessionUtil.o       \
  44         softDigestUtil.o        \
  45         softAttributeUtil.o     \
  46         softObjectUtil.o        \
  47         softDESCrypt.o          \


 118         $(MPI_COBJECTS:%.o=$(MPIDIR)/%.c) \
 119         $(ECC_COBJECTS:%.o=$(ECCDIR)/%.c) \
 120         $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
 121 
 122 # libelfsign needs a static pkcs11_softtoken
 123 LIBS    =       $(DYNLIB)
 124 LDLIBS  +=      -lc -lmd -lcryptoutil -lsoftcrypto -lgen
 125 
 126 CSTD =  $(CSTD_GNU99)
 127 C99LMODE = -Xc99=%all
 128 
 129 CFLAGS  +=      $(CCVERBOSE)
 130 
 131 CERRWARN +=     -_gcc=-Wno-unused-label
 132 CERRWARN +=     -_gcc=-Wno-parentheses
 133 CERRWARN +=     -_gcc=-Wno-uninitialized
 134 CERRWARN +=     -_gcc=-Wno-type-limits
 135 CERRWARN +=     -_gcc=-Wno-unused-variable
 136 CERRWARN +=     -_gcc=-Wno-empty-body
 137 
 138 # not linted
 139 SMATCH=off
 140 
 141 CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
 142             -I$(DHDIR) -I$(DSADIR) -I$(ECCDIR) -I$(SRC)/common/crypto \
 143             -I$(MPIDIR) -I$(RSADIR) -I$(RNGDIR) \
 144             -I$(SHA1DIR) -I$(SHA2DIR) -I$(SRCDIR) \
 145             -I$(BIGNUMDIR) -I$(PADDIR) -D_POSIX_PTHREAD_SEMANTICS \
 146             -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
 147 
 148 LINTFLAGS64 += -errchk=longptr64
 149 
 150 ROOTLIBDIR=     $(ROOT)/usr/lib/security
 151 ROOTLIBDIR64=   $(ROOT)/usr/lib/security/$(MACH64)
 152 
 153 LINTSRC = \
 154         $(LCL_OBJECTS:%.o=$(SRCDIR)/%.c) \
 155         $(RNG_COBJECTS:%.o=$(RNGDIR)/%.c)
 156 
 157 .KEEP_STATE:
 158 
 159 all:    $(LIBS)
 160