Makefile revision 3ba944265c4ae1fcf23ef758537c2e4f4feec16e
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# CDDL HEADER START
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# The contents of this file are subject to the terms of the
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Common Development and Distribution License (the "License").
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# You may not use this file except in compliance with the License.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# or http://www.opensolaris.org/os/licensing.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# See the License for the specific language governing permissions
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# and limitations under the License.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# When distributing Covered Code, include this CDDL HEADER in each
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# If applicable, add the following below this CDDL HEADER, with the
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# fields enclosed by brackets "[]" replaced with your own identifying
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# information: Portions Copyright [yyyy] [name of copyright owner]
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# CDDL HEADER END
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# Use is subject to license terms.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'Amore#
e2c88f0c2610f16de7b639746b40dea5f3e2256eGarrett D'Amore# This makefile drives the production of the DCA kCF provider.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# intel implementation architecture dependent
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Path to the base of the uts directory tree (usually /usr/src/uts).
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcUTSBASE = ../..
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Define the module and object file sets.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcMODULE = dca
d73ae94e59c019f5cc3221ee0a0012d02091b40egcOBJECTS = $(DCA_OBJS:%=$(OBJS_DIR)/%)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINTS = $(DCA_OBJS:%.o=$(LINTS_DIR)/%.ln)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcCONF_SRCDIR = $(UTSBASE)/common/crypto/io
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Include common rules.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinclude $(UTSBASE)/intel/Makefile.intel
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# set signing mode
d73ae94e59c019f5cc3221ee0a0012d02091b40egcELFSIGN_MOD = $(ELFSIGN_CRYPTO)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Define targets
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcALL_TARGET = $(BINARY) $(SRC_CONFFILE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINT_TARGET = $(MODULE).lint
d73ae94e59c019f5cc3221ee0a0012d02091b40egcINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# C99 mode is needed for dca
d73ae94e59c019f5cc3221ee0a0012d02091b40egcCFLAGS += $(C99_ENABLE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# For now, disable these lint checks; maintainers should endeavor
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# to investigate and remove these for maximum lint coverage.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Please do not carry these forward to new Makefiles.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
d73ae94e59c019f5cc3221ee0a0012d02091b40egcLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcCERRWARN += -_gcc=-Wno-parentheses
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Default build targets.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc.KEEP_STATE:
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcdef: $(DEF_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcall: $(ALL_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclean: $(CLEAN_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclobber: $(CLOBBER_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egclint: $(LINT_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcmodlintlib: $(MODLINTLIB_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcclean.lint: $(CLEAN_LINT_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinstall: $(INSTALL_DEPS)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc$(ROOTLINK): $(ROOT_CRYPTO_DIR) $(ROOTMODULE)
d73ae94e59c019f5cc3221ee0a0012d02091b40egc -$(RM) $@; ln $(ROOTMODULE) $@
d73ae94e59c019f5cc3221ee0a0012d02091b40egc
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egc# Include common targets.
d73ae94e59c019f5cc3221ee0a0012d02091b40egc#
d73ae94e59c019f5cc3221ee0a0012d02091b40egcinclude $(UTSBASE)/intel/Makefile.targ
d73ae94e59c019f5cc3221ee0a0012d02091b40egc