2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
2N/ALIBRARY= pkcs11_kernel.a
2N/AVERS= .1
2N/A
2N/ACORE_OBJECTS= \
2N/A kernelGeneral.o \
2N/A kernelSlottable.o \
2N/A kernelSlotToken.o \
2N/A kernelObject.o \
2N/A kernelDigest.o \
2N/A kernelSign.o \
2N/A kernelVerify.o \
2N/A kernelDualCrypt.o \
2N/A kernelKeys.o \
2N/A kernelRand.o \
2N/A kernelSession.o \
2N/A kernelSessionUtil.o \
2N/A kernelUtil.o \
2N/A kernelEncrypt.o \
2N/A kernelDecrypt.o \
2N/A kernelObjectUtil.o \
2N/A kernelAttributeUtil.o \
2N/A kernelEmulate.o
2N/A
2N/AOTHER_OBJECTS = kernelSoftCommon.o
2N/AST_OBJECTS = softDigestUtil.o softMAC.o
2N/A
2N/AOBJECTS= \
2N/A $(CORE_OBJECTS) \
2N/A $(OTHER_OBJECTS) \
2N/A $(ST_OBJECTS)
2N/A
2N/ASRC_REL= ../../../..
2N/ACRYPTODIR= $(SRC)/common/crypto/
2N/AAESDIR= $(SRC)/common/crypto/aes
2N/AARCFOURDIR= $(SRC)/common/crypto/arcfour
2N/ABLOWFISHDIR= $(SRC)/common/crypto/blowfish
2N/ADESDIR= $(SRC)/common/crypto/des
2N/AECCDIR= $(SRC)/common/crypto/ecc
2N/AST_DIR= $(SRC_REL)/lib/pkcs11/pkcs11_softtoken/common
2N/A
2N/Alint \
2N/Apics/kernelAttributeUtil.o := \
2N/A CPPFLAGS += -I$(AESDIR) -I$(BLOWFISHDIR) -I$(ARCFOURDIR) -I$(DESDIR) \
2N/A -I$(ECCDIR) -I$(CRYPTODIR)
2N/Apics/kernelKeys.o := \
2N/A CPPFLAGS += -I$(ECCDIR)
2N/Apics/kernelSoftCommon.o := \
2N/A CPPFLAGS = -I$(ST_DIR) $(CPPFLAGS.master)
2N/A
2N/Ainclude $(SRC)/lib/Makefile.lib
2N/A
2N/A# Add FIPS-140 Checksum
2N/APOST_PROCESS_SO += ; $(FIPS140_CHECKSUM)
2N/A
2N/A# set signing mode
2N/APOST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
2N/A
2N/ASRCDIR= ../common
2N/ACORESRCS = \
2N/A $(CORE_OBJECTS:%.o=$(SRCDIR)/%.c)
2N/A
2N/ALIBS = $(DYNLIB)
2N/ALDLIBS += -lc -lcryptoutil -lmd
2N/A
2N/ACFLAGS += $(CCVERBOSE)
2N/A
2N/AINSTALL_LIBDIR= usr/lib/security
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: $(LIBS)
2N/A
2N/A# we don't need to lint ST_OBJECTS since they are linted elsewhere.
2N/Alintcheck := SRCS = $(CORESRCS)
2N/Alintother := OSRCS = ../common/kernelSoftCommon.c
2N/Alintother := CPPFLAGS = -I$(ST_DIR) $(CPPFLAGS.master)
2N/A
2N/Alintother: $$(OSRCS)
2N/A $(LINT.c) $(LINTCHECKFLAGS) $(OSRCS) $(LDLIBS)
2N/A
2N/Alint: lintcheck lintother
2N/A
2N/Apics/%.o: $(ST_DIR)/%.c
2N/A $(COMPILE.c) -o $@ $< -I$(ST_DIR)
2N/A $(POST_PROCESS_O)
2N/A
2N/Ainclude $(SRC)/lib/Makefile.targ