1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Copyright 2014 Alexander Pyhalov
  24 # Use is subject to license terms.
  25 #
  26 
  27 # aes/*.s
  28 ASM_SOURCES =   x86cpuid.s \
  29                 aes-586.s \
  30                 aesni-x86.s \
  31                 vpaes-x86.s \
  32                 bf-586.s \
  33                 bn-586.s \
  34                 co-586.s \
  35                 x86-gf2m.s \
  36                 x86-mont.s \
  37                 cmll-x86.s \
  38                 crypt586.s \
  39                 des-586.s \
  40                 md5-586.s \
  41                 ghash-x86.s \
  42                 rc4-586.s \
  43                 rmd-586.s \
  44                 sha1-586.s \
  45                 sha256-586.s \
  46                 sha512-586.s
  47 
  48 OBJECTS +=      $(ASM_SOURCES:%.s=%.o)
  49 
  50 CLEANFILES +=   $(ASM_SOURCES)
  51 
  52 include ../Makefile.com
  53 
  54 CPPFLAGS += -DL_ENDIAN
  55 CPPFLAGS += -DOPENSSL_NO_INLINE_ASM
  56 CPPFLAGS += -DOPENSSL_BN_ASM_PART_WORDS
  57 CPPFLAGS += -DOPENSSL_IA32_SSE2
  58 CPPFLAGS += -DRMD160_ASM
  59 CPPFLAGS += -DAES_ASM
  60 CPPFLAGS += -DPK11_LIB_LOCATION=\"/usr/lib/libpkcs11.so.1\"
  61 
  62 PERL_CPPFLAGS += -DOPENSSL_IA32_SSE2
  63 PERL_CPPFLAGS += -fPIC
  64 
  65 .KEEP_STATE:
  66 
  67 all:  $(ROOTLIBDIR) $(LIBS) $(LIBLINKS)
  68 
  69 $(LIBLINKS):    FRC
  70         $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  71 
  72 $(ROOTLIBDIR):
  73         $(INS.dir)
  74 
  75 install: all $(ROOTLIBS) $(ROOTLINKS)
  76 
  77 FRC: