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# 23cd277642SGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org> 24cd277642SGarrett D'Amore# 25bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2688f8b78aSgm89044# Use is subject to license terms. 2788f8b78aSgm89044# 28*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 297014882cSRichard Lowe 3088f8b78aSgm89044# 3188f8b78aSgm89044# This makefile drives the production of the DCA kCF provider. 3288f8b78aSgm89044# 3388f8b78aSgm89044# intel implementation architecture dependent 3488f8b78aSgm89044# 3588f8b78aSgm89044 3688f8b78aSgm89044# 3788f8b78aSgm89044# Path to the base of the uts directory tree (usually /usr/src/uts). 3888f8b78aSgm89044# 3988f8b78aSgm89044UTSBASE = ../.. 4088f8b78aSgm89044 4188f8b78aSgm89044# 4288f8b78aSgm89044# Define the module and object file sets. 4388f8b78aSgm89044# 4488f8b78aSgm89044MODULE = dca 4588f8b78aSgm89044OBJECTS = $(DCA_OBJS:%=$(OBJS_DIR)/%) 4688f8b78aSgm89044LINTS = $(DCA_OBJS:%.o=$(LINTS_DIR)/%.ln) 4788f8b78aSgm89044ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4888f8b78aSgm89044CONF_SRCDIR = $(UTSBASE)/common/crypto/io 4988f8b78aSgm89044 5088f8b78aSgm89044# 5188f8b78aSgm89044# Include common rules. 5288f8b78aSgm89044# 5388f8b78aSgm89044include $(UTSBASE)/intel/Makefile.intel 5488f8b78aSgm89044 5588f8b78aSgm89044# 5688f8b78aSgm89044# Define targets 5788f8b78aSgm89044# 5888f8b78aSgm89044ALL_TARGET = $(BINARY) $(SRC_CONFFILE) 5988f8b78aSgm89044LINT_TARGET = $(MODULE).lint 6088f8b78aSgm89044INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE) 6188f8b78aSgm89044 6288f8b78aSgm89044# 63bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 64bb25c06cSjg# to investigate and remove these for maximum lint coverage. 65bb25c06cSjg# Please do not carry these forward to new Makefiles. 66bb25c06cSjg# 67bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 68bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 69bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 70bb25c06cSjg 717014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 727014882cSRichard Lowe 73*b6b206fcSJohn Levon# needs work 74*b6b206fcSJohn Levon$(OBJS_DIR)/dca_rsa.o := SMOFF += deref_check 75*b6b206fcSJohn Levon 76bb25c06cSjg# 7788f8b78aSgm89044# Default build targets. 7888f8b78aSgm89044# 7988f8b78aSgm89044.KEEP_STATE: 8088f8b78aSgm89044 8188f8b78aSgm89044def: $(DEF_DEPS) 8288f8b78aSgm89044 8388f8b78aSgm89044all: $(ALL_DEPS) 8488f8b78aSgm89044 8588f8b78aSgm89044clean: $(CLEAN_DEPS) 8688f8b78aSgm89044 8788f8b78aSgm89044clobber: $(CLOBBER_DEPS) 8888f8b78aSgm89044 8988f8b78aSgm89044lint: $(LINT_DEPS) 9088f8b78aSgm89044 9188f8b78aSgm89044modlintlib: $(MODLINTLIB_DEPS) 9288f8b78aSgm89044 9388f8b78aSgm89044clean.lint: $(CLEAN_LINT_DEPS) 9488f8b78aSgm89044 9588f8b78aSgm89044install: $(INSTALL_DEPS) 9688f8b78aSgm89044 9788f8b78aSgm89044$(ROOTLINK): $(ROOT_CRYPTO_DIR) $(ROOTMODULE) 9888f8b78aSgm89044 -$(RM) $@; ln $(ROOTMODULE) $@ 9988f8b78aSgm89044 10088f8b78aSgm89044# 10188f8b78aSgm89044# Include common targets. 10288f8b78aSgm89044# 10388f8b78aSgm89044include $(UTSBASE)/intel/Makefile.targ 104