188f8b78aSgm89044# 288f8b78aSgm89044# CDDL HEADER START 388f8b78aSgm89044# 488f8b78aSgm89044# The contents of this file are subject to the terms of the 588f8b78aSgm89044# Common Development and Distribution License (the "License"). 688f8b78aSgm89044# You may not use this file except in compliance with the License. 788f8b78aSgm89044# 888f8b78aSgm89044# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 988f8b78aSgm89044# or http://www.opensolaris.org/os/licensing. 1088f8b78aSgm89044# See the License for the specific language governing permissions 1188f8b78aSgm89044# and limitations under the License. 1288f8b78aSgm89044# 1388f8b78aSgm89044# When distributing Covered Code, include this CDDL HEADER in each 1488f8b78aSgm89044# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1588f8b78aSgm89044# If applicable, add the following below this CDDL HEADER, with the 1688f8b78aSgm89044# fields enclosed by brackets "[]" replaced with your own identifying 1788f8b78aSgm89044# information: Portions Copyright [yyyy] [name of copyright owner] 1888f8b78aSgm89044# 1988f8b78aSgm89044# CDDL HEADER END 2088f8b78aSgm89044# 2188f8b78aSgm89044 2288f8b78aSgm89044# 23bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2488f8b78aSgm89044# Use is subject to license terms. 2588f8b78aSgm89044# 26*7014882cSRichard Lowe 2788f8b78aSgm89044# 2888f8b78aSgm89044# This makefile drives the production of the DCA kCF provider. 2988f8b78aSgm89044# 3088f8b78aSgm89044# intel implementation architecture dependent 3188f8b78aSgm89044# 3288f8b78aSgm89044 3388f8b78aSgm89044# 3488f8b78aSgm89044# Path to the base of the uts directory tree (usually /usr/src/uts). 3588f8b78aSgm89044# 3688f8b78aSgm89044UTSBASE = ../.. 3788f8b78aSgm89044 3888f8b78aSgm89044# 3988f8b78aSgm89044# Define the module and object file sets. 4088f8b78aSgm89044# 4188f8b78aSgm89044MODULE = dca 4288f8b78aSgm89044OBJECTS = $(DCA_OBJS:%=$(OBJS_DIR)/%) 4388f8b78aSgm89044LINTS = $(DCA_OBJS:%.o=$(LINTS_DIR)/%.ln) 4488f8b78aSgm89044ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4588f8b78aSgm89044CONF_SRCDIR = $(UTSBASE)/common/crypto/io 4688f8b78aSgm89044 4788f8b78aSgm89044# 4888f8b78aSgm89044# Include common rules. 4988f8b78aSgm89044# 5088f8b78aSgm89044include $(UTSBASE)/intel/Makefile.intel 5188f8b78aSgm89044 5288f8b78aSgm89044# set signing mode 5388f8b78aSgm89044ELFSIGN_MOD = $(ELFSIGN_CRYPTO) 5488f8b78aSgm89044 5588f8b78aSgm89044# 5688f8b78aSgm89044# Define targets 5788f8b78aSgm89044# 5888f8b78aSgm89044ALL_TARGET = $(BINARY) $(SRC_CONFFILE) 5988f8b78aSgm89044LINT_TARGET = $(MODULE).lint 6088f8b78aSgm89044INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE) 6188f8b78aSgm89044 6288f8b78aSgm89044# C99 mode is needed for dca 6388f8b78aSgm89044CFLAGS += $(C99_ENABLE) 6488f8b78aSgm89044 6588f8b78aSgm89044# 66bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 67bb25c06cSjg# to investigate and remove these for maximum lint coverage. 68bb25c06cSjg# Please do not carry these forward to new Makefiles. 69bb25c06cSjg# 70bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 71bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 72bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 73bb25c06cSjg 74*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 75*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 76*7014882cSRichard Lowe 77bb25c06cSjg# 7888f8b78aSgm89044# Default build targets. 7988f8b78aSgm89044# 8088f8b78aSgm89044.KEEP_STATE: 8188f8b78aSgm89044 8288f8b78aSgm89044def: $(DEF_DEPS) 8388f8b78aSgm89044 8488f8b78aSgm89044all: $(ALL_DEPS) 8588f8b78aSgm89044 8688f8b78aSgm89044clean: $(CLEAN_DEPS) 8788f8b78aSgm89044 8888f8b78aSgm89044clobber: $(CLOBBER_DEPS) 8988f8b78aSgm89044 9088f8b78aSgm89044lint: $(LINT_DEPS) 9188f8b78aSgm89044 9288f8b78aSgm89044modlintlib: $(MODLINTLIB_DEPS) 9388f8b78aSgm89044 9488f8b78aSgm89044clean.lint: $(CLEAN_LINT_DEPS) 9588f8b78aSgm89044 9688f8b78aSgm89044install: $(INSTALL_DEPS) 9788f8b78aSgm89044 9888f8b78aSgm89044$(ROOTLINK): $(ROOT_CRYPTO_DIR) $(ROOTMODULE) 9988f8b78aSgm89044 -$(RM) $@; ln $(ROOTMODULE) $@ 10088f8b78aSgm89044 10188f8b78aSgm89044# 10288f8b78aSgm89044# Include common targets. 10388f8b78aSgm89044# 10488f8b78aSgm89044include $(UTSBASE)/intel/Makefile.targ 105