Makefile.32 revision 6134e783013f60fac8ee4a7babb8e63a637d52d8
705N/A#
606N/A# CDDL HEADER START
606N/A#
633N/A# The contents of this file are subject to the terms of the
639N/A# Common Development and Distribution License, Version 1.0 only
705N/A# (the "License"). You may not use this file except in compliance
705N/A# with the License.
705N/A#
606N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
705N/A# or http://www.opensolaris.org/os/licensing.
705N/A# See the License for the specific language governing permissions
705N/A# and limitations under the License.
235N/A#
235N/A# When distributing Covered Code, include this CDDL HEADER in each
235N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
235N/A# If applicable, add the following below this CDDL HEADER, with the
235N/A# fields enclosed by brackets "[]" replaced with your own identifying
660N/A# information: Portions Copyright [yyyy] [name of copyright owner]
705N/A#
606N/A# CDDL HEADER END
235N/A#
235N/A#
235N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
235N/A# Use is subject to license terms.
235N/A#
235N/A#ident "%Z%%M% %I% %E% SMI"
235N/A#
235N/A# Configuration and targets for RSA KEF provider
606N/A# specific to Intel 32-bit architecture, i386.
235N/A#
235N/A# Bignum configuration (BIGNUM_CFG):
235N/A# PSR_MUL:
235N/A# There is a processor-specific implementation bignum multiply functions
235N/A# HWCAP:
235N/A# There are multiple implementations of bignum functions, and the
235N/A# appropriate one must be chosen at run time, based on testing
517N/A# hardware capabilites.
606N/A# MMX_MANAGE:
606N/A# Multimedia registers must be saved and restored.
713N/A# Normally MMX_MANAGE iff _KERNEL, but for testing purposes,
# MMX_MANAGE can be defined in userland.
BIGNUM_CFG = -DPSR_MUL -DHWCAP -DMMX_MANAGE
LDFLAGS += -M $(BIGNUMDIR)/i386/cap_mapfile
$(OBJS_DIR)/bignumimpl.o $(LINTS_DIR)/bignumimpl.ln := \
CPPFLAGS += $(BIGNUM_CFG)
$(OBJS_DIR)/bignum_i386.o $(LINTS_DIR)/bignum_i386.ln := \
CPPFLAGS += $(BIGNUM_CFG)
$(OBJS_DIR)/bignum_i386.o: $(BIGNUMDIR)/i386/bignum_i386.c
$(COMPILE.c) -o $@ $(BIGNUMDIR)/i386/bignum_i386.c
$(CTFCONVERT_O)
$(POST_PROCESS_O)
$(OBJS_DIR)/bignum_i386_asm.o: $(BIGNUMDIR)/i386/bignum_i386_asm.s
$(COMPILE.s) -P -o $@ $(BIGNUM_CFG) $(BIGNUMDIR)/i386/bignum_i386_asm.s
$(POST_PROCESS_O)
$(LINTS_DIR)/bignum_i386.ln: $(BIGNUMDIR)/i386/bignum_i386.c
@($(LHEAD) $(LINT.c) $(BIGNUMDIR)/i386/bignum_i386.c $(LTAIL))
$(LINTS_DIR)/bignum_i386_asm.ln: $(BIGNUMDIR)/i386/bignum_i386_asm.s
@($(LHEAD) $(LINT.s) $(BIGNUMDIR)/i386/bignum_i386_asm.s $(LTAIL))