Makefile.softtoken.com revision 734b6a94890be549309b21156f8ed6d4561cac51
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
#
LCL_OBJECTS = \
softDH.o \
# Sparc userland uses a floating-point implementation of
# Montgomery multiply. So, USE_FLOATING_POINT is defined here
# for Sparc targets.
#
# x86 does not use floating-point for the kernel or userland.
#
# Sparc has only one integer implementation of big_mul_add_vec()
# and friends, so these functions are called directly.
# So, HWCAP (HardWare CAPabilities) is not defined for Sparc.
#
# x86 has multiple integer implementations to choose from.
# Hardware features are tested at run time, just once,
# on first use. So, big_mul_add_vec() and friends must be
# called through a function pointer.
#
# AMD64 has a 64x64->128 bit multiply instruction, which makes
# things even faster than i386 SSE2 instructions. Since there
# is no run-time testing of features, as there is for SSE2,
# there is no need to call big_mul_add_vec() and friends through
# functions pointers, and so HWCAP is not defined.
#
# For now i386 and amd64 use the C code version of mont_mulf
OBJECTS = \
$(LCL_OBJECTS) \
$(AES_OBJECTS) \
$(BLOWFISH_OBJECTS) \
$(ARCFOUR_OBJECTS) \
$(DES_OBJECTS) \
$(RSA_OBJECTS) \
$(SHA1_OBJECTS) \
$(SHA2_OBJECTS) \
$(BIGNUM_OBJECTS) \
$(BER_OBJECTS)
# set signing mode
POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
SRCS = \
$(COMPILE.c) -o $@ $<
pics/%.o: $(BLOWFISHDIR)/%.c
$(COMPILE.c) -o $@ $<
pics/%.o: $(ARCFOURDIR)/%.c
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $(BIGNUM_CFG) $<