xref: /illumos-gate/usr/src/uts/intel/dca/Makefile (revision 0aaef2f5)
188f8b78aSgm#
288f8b78aSgm# CDDL HEADER START
388f8b78aSgm#
488f8b78aSgm# The contents of this file are subject to the terms of the
588f8b78aSgm# Common Development and Distribution License (the "License").
688f8b78aSgm# You may not use this file except in compliance with the License.
788f8b78aSgm#
888f8b78aSgm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
988f8b78aSgm# or http://www.opensolaris.org/os/licensing.
1088f8b78aSgm# See the License for the specific language governing permissions
1188f8b78aSgm# and limitations under the License.
1288f8b78aSgm#
1388f8b78aSgm# When distributing Covered Code, include this CDDL HEADER in each
1488f8b78aSgm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1588f8b78aSgm# If applicable, add the following below this CDDL HEADER, with the
1688f8b78aSgm# fields enclosed by brackets "[]" replaced with your own identifying
1788f8b78aSgm# information: Portions Copyright [yyyy] [name of copyright owner]
1888f8b78aSgm#
1988f8b78aSgm# CDDL HEADER END
2088f8b78aSgm#
2188f8b78aSgm
22cd277642SGarrett D'Amore#
23cd277642SGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
2488f8b78aSgm#
25bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2688f8b78aSgm# Use is subject to license terms.
2788f8b78aSgm#
28b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
297014882cSRichard Lowe
3088f8b78aSgm#
3188f8b78aSgm#	This makefile drives the production of the DCA kCF provider.
3288f8b78aSgm#
3388f8b78aSgm#	intel implementation architecture dependent
3488f8b78aSgm#
3588f8b78aSgm
3688f8b78aSgm#
3788f8b78aSgm#	Path to the base of the uts directory tree (usually /usr/src/uts).
3888f8b78aSgm#
3988f8b78aSgmUTSBASE	= ../..
4088f8b78aSgm
4188f8b78aSgm#
4288f8b78aSgm#	Define the module and object file sets.
4388f8b78aSgm#
44b6b206fcSJohn LevonMODULE		= dca
4588f8b78aSgmOBJECTS		= $(DCA_OBJS:%=$(OBJS_DIR)/%)
4688f8b78aSgmROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4788f8b78aSgmCONF_SRCDIR	= $(UTSBASE)/common/crypto/io
4888f8b78aSgm
4988f8b78aSgm#
5088f8b78aSgm#	Include common rules.
5188f8b78aSgm#
5288f8b78aSgminclude $(UTSBASE)/intel/Makefile.intel
5388f8b78aSgm
5488f8b78aSgm#
5588f8b78aSgm#	Define targets
5688f8b78aSgm#
5788f8b78aSgmALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
5888f8b78aSgmINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
5988f8b78aSgm
60bb25c06cSjg#
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
7188f8b78aSgm#
7288f8b78aSgm#	Default build targets.
7388f8b78aSgm#
7488f8b78aSgm.KEEP_STATE:
7588f8b78aSgm
7688f8b78aSgmdef:		$(DEF_DEPS)
7788f8b78aSgm
7888f8b78aSgmall:		$(ALL_DEPS)
7988f8b78aSgm
8088f8b78aSgmclean:		$(CLEAN_DEPS)
8188f8b78aSgm
8288f8b78aSgmclobber:	$(CLOBBER_DEPS)
8388f8b78aSgm
8488f8b78aSgminstall:	$(INSTALL_DEPS)
8588f8b78aSgm
8688f8b78aSgm$(ROOTLINK):	$(ROOT_CRYPTO_DIR) $(ROOTMODULE)
8788f8b78aSgm	-$(RM) $@; ln $(ROOTMODULE) $@
8888f8b78aSgm
8988f8b78aSgm#
9088f8b78aSgm#	Include common targets.
9188f8b78aSgm#
9288f8b78aSgminclude $(UTSBASE)/intel/Makefile.targ
93