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 # lib/openssl/Makefile
  27 #
  28 
  29 include $(SRC)/lib/Makefile.lib
  30 
  31 SUBDIRS = libsunw_crypto .WAIT libsunw_ssl
  32 
  33 # conditional assignments
  34 all :=          TARGET= all
  35 install :=      TARGET= install
  36 clean :=        TARGET= clean
  37 clobber :=      TARGET= clobber
  38 lint :=         TARGET= lint
  39 _msg :=         TARGET= _msg
  40 
  41 .KEEP_STATE:
  42 
  43 HDRS=    aes.h \
  44          asn1.h \
  45          asn1_mac.h \
  46          asn1t.h \
  47          bio.h \
  48          blowfish.h \
  49          bn.h \
  50          buffer.h \
  51          camellia.h \
  52          cast.h \
  53          cmac.h \
  54          cms.h \
  55          comp.h \
  56          conf.h \
  57          conf_api.h \
  58          crypto.h \
  59          des.h \
  60          des_old.h \
  61          dh.h \
  62          dsa.h \
  63          dso.h \
  64          dtls1.h \
  65          e_os2.h \
  66          ebcdic.h \
  67          engine.h \
  68          err.h \
  69          evp.h \
  70          hmac.h \
  71          krb5_asn.h \
  72          kssl.h \
  73          lhash.h \
  74          md2.h \
  75          md4.h \
  76          md5.h \
  77          modes.h \
  78          obj_mac.h \
  79          objects.h \
  80          ocsp.h \
  81          opensslconf.h \
  82          opensslv.h \
  83          ossl_typ.h \
  84          pem.h \
  85          pem2.h \
  86          pkcs12.h \
  87          pkcs7.h \
  88          pqueue.h \
  89          rand.h \
  90          rc2.h \
  91          rc4.h \
  92          ripemd.h \
  93          rsa.h \
  94          safestack.h \
  95          sha.h \
  96          srp.h \
  97          srtp.h \
  98          ssl.h \
  99          ssl2.h \
 100          ssl23.h \
 101          ssl3.h \
 102          stack.h \
 103          sunw_prefix.h \
 104          symhacks.h \
 105          tls1.h \
 106          ts.h \
 107          txt_db.h \
 108          ui.h \
 109          ui_compat.h \
 110          x509.h \
 111          x509_vfy.h \
 112          x509v3.h
 113 
 114 HDRDIR=         include/openssl
 115 ROOTHDRDIR=     $(ROOT)/usr/include/openssl
 116 ROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
 117 
 118 
 119 all install clean clobber lint _msg: $(SUBDIRS)
 120 
 121 $(ROOTHDRS):    $(ROOTHDRDIR)
 122 
 123 $(ROOTHDRDIR):
 124         $(INS.dir)
 125 
 126 $(ROOTHDRDIR)/%: $(HDRDIR)/%
 127         $(INS.file)
 128 
 129 install install_h:      $(ROOTHDRS)
 130 
 131 $(SUBDIRS): FRC
 132         @cd $@; pwd; $(MAKE) $(TARGET)
 133 
 134 check:
 135         @cd libsunw_ssl; pwd; $(MAKE) $@
 136         @cd libsunw_crypto; pwd; $(MAKE) $@
 137 
 138 FRC: