Makefile revision 23c57df72989c916b3e98084eb88d48777999691
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# CDDL HEADER START
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# The contents of this file are subject to the terms of the
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Common Development and Distribution License (the "License").
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# You may not use this file except in compliance with the License.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# or http://www.opensolaris.org/os/licensing.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# See the License for the specific language governing permissions
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# and limitations under the License.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# When distributing Covered Code, include this CDDL HEADER in each
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# If applicable, add the following below this CDDL HEADER, with the
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# fields enclosed by brackets "[]" replaced with your own identifying
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# information: Portions Copyright [yyyy] [name of copyright owner]
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# CDDL HEADER END
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Use is subject to license terms.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#ident "%Z%%M% %I% %E% SMI"
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# This makefile drives the production of the ECc kef provider.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# intel implementation architecture dependent
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Path to the base of the uts directory tree (usually /usr/src/uts).
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherUTSBASE = ../..
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherCOM1_DIR = $(COMMONBASE)/mpi
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherCOM2_DIR = $(COMMONBASE)/crypto/ecc
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherCOM3_DIR = $(COMMONBASE)/crypto/des
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Define the module and object file sets.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherMODULE = ecc
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherOBJECTS = $(ECCPROV_OBJS:%=$(OBJS_DIR)/%)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherLINTS = $(LINTS_DIR)/ecc.ln
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Include common rules.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude $(UTSBASE)/intel/Makefile.intel
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# set signing mode
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherELFSIGN_MOD = $(ELFSIGN_CRYPTO)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Define targets
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherALL_TARGET = $(BINARY)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherLINT_TARGET = $(MODULE).lint
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Linkage dependencies
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherLDFLAGS += -dy -Nmisc/kcf
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherCPPFLAGS += -I$(COM1_DIR) -I$(COM2_DIR) -I$(COM3_DIR)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherCFLAGS += -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen GallagherLINTFLAGS += -I$(COM1_DIR) -I$(COM2_DIR) -I$(COM3_DIR)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Default build targets.
1dd195b9a3df01a0ef51e9f963201f1f79d1f90bStephen Gallagher#
1dd195b9a3df01a0ef51e9f963201f1f79d1f90bStephen Gallagher.KEEP_STATE:
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherdef: $(DEF_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherall: $(ALL_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherclean: $(CLEAN_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherclobber: $(CLOBBER_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherlint: $(LINT_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallaghermodlintlib: $(MODLINTLIB_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherclean.lint: $(CLEAN_LINT_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinstall: $(INSTALL_DEPS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher# Include common targets.
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher#
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude $(UTSBASE)/intel/Makefile.targ
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagherinclude Makefile.$(CLASS)
e134a6af42102c8d865e82bf89e0b8c5a40fb5faStephen Gallagher