Print this page
1427 import libssl

@@ -16,10 +16,11 @@
 # fields enclosed by brackets "[]" replaced with your own identifying
 # information: Portions Copyright [yyyy] [name of copyright owner]
 #
 # CDDL HEADER END
 #
+# Copyright 2015 Gary Mills
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 LIBRARY =       pkcs11_tpm.a
 VERS =          .1

@@ -71,13 +72,19 @@
 TSPIINCDIR=$(TSSROOT)/usr/include
 TSSLIB=-L$(TSPILIBDIR)
 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
 TSSINC=-I$(TSPIINCDIR)
 
-LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lcrypto
-CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC)
-CPPFLAGS64 += $(CPPFLAGS)
+# Use libraries and include files from the build host
+LDLIBS=         $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi \
+                -lcrypto
+CPPFLAGS=       $(DTEXTDOM) $(DTS_ERRNO)
+CPPFLAGS +=     -xCC -D_POSIX_PTHREAD_SEMANTICS
+COMPILE.c=      $(CC) $(CFLAGS) $(TSSINC) $(CPPFLAGS) -c
+LINT.c=         $(LINT) $(ONLY_LINT_DEFS) $(LINTFLAGS) $(TSSINC) $(CPPFLAGS) \
+                $(ALWAYS_LINT_DEFS)
+
 C99MODE=        $(C99_ENABLE)
 
 CERRWARN +=     -_gcc=-Wno-parentheses
 CERRWARN +=     -_gcc=-Wno-unused-label
 CERRWARN +=     -_gcc=-Wno-uninitialized