Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
306N/A#
306N/A# CDDL HEADER START
306N/A#
306N/A# The contents of this file are subject to the terms of the
306N/A# Common Development and Distribution License (the "License").
306N/A# You may not use this file except in compliance with the License.
306N/A#
306N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
306N/A# or http://www.opensolaris.org/os/licensing.
306N/A# See the License for the specific language governing permissions
306N/A# and limitations under the License.
306N/A#
306N/A# When distributing Covered Code, include this CDDL HEADER in each
306N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
306N/A# If applicable, add the following below this CDDL HEADER, with the
306N/A# fields enclosed by brackets "[]" replaced with your own identifying
306N/A# information: Portions Copyright [yyyy] [name of copyright owner]
306N/A#
306N/A# CDDL HEADER END
306N/A#
306N/A#
306N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3285N/A# Use is subject to license terms.
306N/A#
306N/A#ident "%Z%%M% %I% %E% SMI"
306N/A#
306N/A# This makefile drives the production of the RSA KEF provider.
306N/A#
708N/A# sun4u implementation architecture dependent
306N/A#
306N/A
306N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
306N/AUTSBASE = ../..
1258N/ACOM1_DIR = $(SRC)/common/bignum
306N/ACOM2_DIR = $(SRC)/common/crypto/rsa
3285N/A
3285N/A#
306N/A# Define the module and object file sets.
306N/A#
306N/AMODULE = rsa
306N/AOBJECTS = $(RSAPROV_OBJS:%=$(OBJS_DIR)/%)
306N/ALINTS = $(RSAPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
306N/AROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
306N/A
306N/A#
306N/A# Include common rules.
1542N/A#
306N/Ainclude $(UTSBASE)/sun4u/Makefile.sun4u
306N/A
306N/A# set signing mode
708N/AELFSIGN_MOD = $(ELFSIGN_CRYPTO)
306N/A
1475N/A#
1475N/A# Define targets
306N/A#
1542N/AALL_TARGET = $(BINARY)
306N/ALINT_TARGET = $(MODULE).lint
1542N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
306N/A
1542N/A#
306N/A# Linkage dependencies
306N/A#
306N/ALDFLAGS += -dy -Ncrypto/md5 -Ncrypto/sha2
306N/A
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I$(COM1_DIR) -I$(COM2_DIR)
CFLAGS += -DUSE_FLOATING_POINT
LINTFLAGS += -I$(COM1_DIR) -I$(COM2_DIR)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/Makefile.targ