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

  27 
  28 LIBRARY =       libsoftcrypto.a
  29 VERS =          .1
  30 
  31 include         ../Makefile.com
  32 
  33 AES_PSM_OBJS =  aes_amd64.o aes_intel.o aeskey.o
  34 ARCFOUR_PSM_OBJS = arcfour-x86_64.o
  35 BIGNUM_PSM_OBJS = bignum_amd64.o bignum_amd64_asm.o
  36 MODES_PSM_OBJS = gcm_intel.o
  37 
  38 include         $(SRC)/lib/Makefile.lib
  39 include         $(SRC)/lib/Makefile.lib.64
  40 
  41 CERRWARN +=     -_gcc=-Wno-type-limits
  42 CERRWARN +=     -_gcc=-Wno-parentheses
  43 CERRWARN +=     -_gcc=-Wno-uninitialized
  44 



  45 AES_PSM_SRC =   $(AES_DIR)/$(MACH64)/aes_amd64.s \
  46                 $(AES_DIR)/$(MACH64)/aes_intel.s \
  47                 $(AES_DIR)/$(MACH64)/aeskey.c
  48 ARCFOUR_PSM_SRC = arcfour-x86_64.s
  49 BIGNUM_PSM_SRC = $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
  50                 $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
  51 
  52 MODES_PSM_SRC = $(MODES_DIR)/$(MACH64)/gcm_intel.s
  53 
  54 # Sources need to be redefined after Makefile.lib inclusion.
  55 SRCS =          $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
  56                 $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
  57                 $(PAD_SRC)
  58 
  59 SRCDIR =        $(SRC)/lib/pkcs11/libsoftcrypto/common
  60 
  61 LIBS =          $(DYNLIB) $(LINTLIB)
  62 MAPFILEDIR =    ../common
  63 
  64 CFLAGS +=       -xO4 -xcrossfile




   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 #
  23 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2017 Jason King
  25 # Copyright (c) 2018, Joyent, Inc.
  26 #
  27 # Copyright (c) 2018, Joyent, Inc.
  28 
  29 LIBRARY =       libsoftcrypto.a
  30 VERS =          .1
  31 
  32 include         ../Makefile.com
  33 
  34 AES_PSM_OBJS =  aes_amd64.o aes_intel.o aeskey.o
  35 ARCFOUR_PSM_OBJS = arcfour-x86_64.o
  36 BIGNUM_PSM_OBJS = bignum_amd64.o bignum_amd64_asm.o
  37 MODES_PSM_OBJS = gcm_intel.o
  38 
  39 include         $(SRC)/lib/Makefile.lib
  40 include         $(SRC)/lib/Makefile.lib.64
  41 
  42 CERRWARN +=     -_gcc=-Wno-type-limits
  43 CERRWARN +=     -_gcc=-Wno-parentheses
  44 CERRWARN +=     -_gcc=-Wno-uninitialized
  45 
  46 # not linted
  47 SMATCH=off
  48 
  49 AES_PSM_SRC =   $(AES_DIR)/$(MACH64)/aes_amd64.s \
  50                 $(AES_DIR)/$(MACH64)/aes_intel.s \
  51                 $(AES_DIR)/$(MACH64)/aeskey.c
  52 ARCFOUR_PSM_SRC = arcfour-x86_64.s
  53 BIGNUM_PSM_SRC = $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
  54                 $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
  55 
  56 MODES_PSM_SRC = $(MODES_DIR)/$(MACH64)/gcm_intel.s
  57 
  58 # Sources need to be redefined after Makefile.lib inclusion.
  59 SRCS =          $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
  60                 $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
  61                 $(PAD_SRC)
  62 
  63 SRCDIR =        $(SRC)/lib/pkcs11/libsoftcrypto/common
  64 
  65 LIBS =          $(DYNLIB) $(LINTLIB)
  66 MAPFILEDIR =    ../common
  67 
  68 CFLAGS +=       -xO4 -xcrossfile