Print this page
1427 import libssl

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
          +++ new/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
       21 +# Copyright 2015 Gary Mills
  21   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   23  # Use is subject to license terms.
  23   24  #
  24   25  LIBRARY =       pkcs11_tpm.a
  25   26  VERS =          .1
  26   27  
  27   28  OBJECTS= api_interface.o \
  28   29          apiutil.o \
  29   30          asn1.o \
  30   31          cert.o \
↓ open down ↓ 35 lines elided ↑ open up ↑
  66   67  
  67   68  LIBS=$(DYNLIB) $(DYNLIB64)
  68   69  
  69   70  TSSROOT=$(ADJUNCT_PROTO)
  70   71  TSPILIBDIR=$(TSSROOT)/usr/lib
  71   72  TSPIINCDIR=$(TSSROOT)/usr/include
  72   73  TSSLIB=-L$(TSPILIBDIR)
  73   74  TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
  74   75  TSSINC=-I$(TSPIINCDIR)
  75   76  
  76      -LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lcrypto
  77      -CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC)
  78      -CPPFLAGS64 += $(CPPFLAGS)
       77 +# Use libraries and include files from the build host
       78 +LDLIBS=         $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi \
       79 +                -lcrypto
       80 +CPPFLAGS=       $(DTEXTDOM) $(DTS_ERRNO)
       81 +CPPFLAGS +=     -xCC -D_POSIX_PTHREAD_SEMANTICS
       82 +COMPILE.c=      $(CC) $(CFLAGS) $(TSSINC) $(CPPFLAGS) -c
       83 +LINT.c=         $(LINT) $(ONLY_LINT_DEFS) $(LINTFLAGS) $(TSSINC) $(CPPFLAGS) \
       84 +                $(ALWAYS_LINT_DEFS)
       85 +
  79   86  C99MODE=        $(C99_ENABLE)
  80   87  
  81   88  CERRWARN +=     -_gcc=-Wno-parentheses
  82   89  CERRWARN +=     -_gcc=-Wno-unused-label
  83   90  CERRWARN +=     -_gcc=-Wno-uninitialized
  84   91  
  85   92  LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
  86   93  
  87   94  $(LINTLIB):=    SRCS    =       $(SRCDIR)/$(LINTSRC)
  88   95  LINTSRC= $(SRCS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX