xref: /illumos-gate/usr/src/uts/intel/dca/Makefile (revision 0aaef2f5)
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#
28b6b206fcSJohn 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)/%)
4688f8b78aSgm89044ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4788f8b78aSgm89044CONF_SRCDIR	= $(UTSBASE)/common/crypto/io
4888f8b78aSgm89044
4988f8b78aSgm89044#
5088f8b78aSgm89044#	Include common rules.
5188f8b78aSgm89044#
5288f8b78aSgm89044include $(UTSBASE)/intel/Makefile.intel
5388f8b78aSgm89044
5488f8b78aSgm89044#
5588f8b78aSgm89044#	Define targets
5688f8b78aSgm89044#
5788f8b78aSgm89044ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
5888f8b78aSgm89044INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
5988f8b78aSgm89044
6088f8b78aSgm89044#
61*0aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
62*0aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
63bb25c06cSjg# Please do not carry these forward to new Makefiles.
64bb25c06cSjg#
65bb25c06cSjg
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
677014882cSRichard Lowe
68b6b206fcSJohn Levon# needs work
69b6b206fcSJohn Levon$(OBJS_DIR)/dca_rsa.o := SMOFF += deref_check
70b6b206fcSJohn Levon
71bb25c06cSjg#
7288f8b78aSgm89044#	Default build targets.
7388f8b78aSgm89044#
7488f8b78aSgm89044.KEEP_STATE:
7588f8b78aSgm89044
7688f8b78aSgm89044def:		$(DEF_DEPS)
7788f8b78aSgm89044
7888f8b78aSgm89044all:		$(ALL_DEPS)
7988f8b78aSgm89044
8088f8b78aSgm89044clean:		$(CLEAN_DEPS)
8188f8b78aSgm89044
8288f8b78aSgm89044clobber:	$(CLOBBER_DEPS)
8388f8b78aSgm89044
8488f8b78aSgm89044install:	$(INSTALL_DEPS)
8588f8b78aSgm89044
8688f8b78aSgm89044$(ROOTLINK):	$(ROOT_CRYPTO_DIR) $(ROOTMODULE)
8788f8b78aSgm89044	-$(RM) $@; ln $(ROOTMODULE) $@
8888f8b78aSgm89044
8988f8b78aSgm89044#
9088f8b78aSgm89044#	Include common targets.
9188f8b78aSgm89044#
9288f8b78aSgm89044include $(UTSBASE)/intel/Makefile.targ
93