Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
94N/A#
94N/A# CDDL HEADER START
94N/A#
94N/A# The contents of this file are subject to the terms of the
94N/A# Common Development and Distribution License (the "License").
94N/A# You may not use this file except in compliance with the License.
94N/A#
94N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94N/A# or http://www.opensolaris.org/os/licensing.
94N/A# See the License for the specific language governing permissions
94N/A# and limitations under the License.
94N/A#
94N/A# When distributing Covered Code, include this CDDL HEADER in each
94N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
94N/A# If applicable, add the following below this CDDL HEADER, with the
94N/A# fields enclosed by brackets "[]" replaced with your own identifying
94N/A# information: Portions Copyright [yyyy] [name of copyright owner]
94N/A#
94N/A# CDDL HEADER END
94N/A#
94N/A#
94N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5269N/A# Use is subject to license terms.
94N/A#
5680N/A#ident "%Z%%M% %I% %E% SMI"
94N/A#
94N/A# This makefile drives the production of the RSA KEF provider.
94N/A#
5269N/A# sun4u implementation architecture dependent
5269N/A#
618N/A
844N/A#
5269N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
94N/A#
94N/AUTSBASE = ../..
5269N/ACOM1_DIR = $(SRC)/common/bignum
2899N/ACOM2_DIR = $(SRC)/common/crypto/rsa
5680N/A
5680N/A#
5680N/A# Define the module and object file sets.
94N/A#
94N/AMODULE = rsa
94N/AOBJECTS = $(RSAPROV_OBJS:%=$(OBJS_DIR)/%)
94N/ALINTS = $(RSAPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
3993N/AROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
3993N/A
3993N/A#
3993N/A# Include common rules.
94N/A#
94N/Ainclude $(UTSBASE)/sun4u/Makefile.sun4u
94N/A
94N/A# set signing mode
94N/AELFSIGN_MOD = $(ELFSIGN_CRYPTO)
5680N/A
1591N/A#
5680N/A# Define targets
4339N/A#
3440N/AALL_TARGET = $(BINARY)
5269N/ALINT_TARGET = $(MODULE).lint
5269N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
5269N/A
5269N/A#
5269N/A# Linkage dependencies
5269N/A#
5269N/ALDFLAGS += -dy -Ncrypto/md5 -Ncrypto/sha2
5269N/A
3817N/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