xref: /titanic_41/usr/src/uts/intel/ecc/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1f9fbec18Smcpowers#
2f9fbec18Smcpowers# CDDL HEADER START
3f9fbec18Smcpowers#
4f9fbec18Smcpowers# The contents of this file are subject to the terms of the
5f9fbec18Smcpowers# Common Development and Distribution License (the "License").
6f9fbec18Smcpowers# You may not use this file except in compliance with the License.
7f9fbec18Smcpowers#
8f9fbec18Smcpowers# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f9fbec18Smcpowers# or http://www.opensolaris.org/os/licensing.
10f9fbec18Smcpowers# See the License for the specific language governing permissions
11f9fbec18Smcpowers# and limitations under the License.
12f9fbec18Smcpowers#
13f9fbec18Smcpowers# When distributing Covered Code, include this CDDL HEADER in each
14f9fbec18Smcpowers# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f9fbec18Smcpowers# If applicable, add the following below this CDDL HEADER, with the
16f9fbec18Smcpowers# fields enclosed by brackets "[]" replaced with your own identifying
17f9fbec18Smcpowers# information: Portions Copyright [yyyy] [name of copyright owner]
18f9fbec18Smcpowers#
19f9fbec18Smcpowers# CDDL HEADER END
20f9fbec18Smcpowers#
21f9fbec18Smcpowers#
22b5a2d845SHai-May Chao# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23f9fbec18Smcpowers# Use is subject to license terms.
24f9fbec18Smcpowers#
25f9fbec18Smcpowers#
26f9fbec18Smcpowers#	This makefile drives the production of the ECc kef provider.
27f9fbec18Smcpowers#
28f9fbec18Smcpowers#	intel implementation architecture dependent
29f9fbec18Smcpowers#
30f9fbec18Smcpowers
31f9fbec18Smcpowers#
32f9fbec18Smcpowers#	Path to the base of the uts directory tree (usually /usr/src/uts).
33f9fbec18Smcpowers#
34f9fbec18SmcpowersUTSBASE	= ../..
35f9fbec18SmcpowersCOM1_DIR = $(COMMONBASE)/mpi
36b5a2d845SHai-May ChaoCOM2_DIR = $(COMMONBASE)/crypto
37f9fbec18Smcpowers
38f9fbec18Smcpowers#
39f9fbec18Smcpowers#	Define the module and object file sets.
40f9fbec18Smcpowers#
41f9fbec18SmcpowersMODULE		= ecc
42f9fbec18SmcpowersOBJECTS		= $(ECCPROV_OBJS:%=$(OBJS_DIR)/%)
43f9fbec18SmcpowersLINTS		= $(LINTS_DIR)/ecc.ln
44f9fbec18SmcpowersROOTMODULE	= $(ROOT_CRYPTO_DIR)/$(MODULE)
45f9fbec18Smcpowers
46f9fbec18Smcpowers#
47f9fbec18Smcpowers#	Include common rules.
48f9fbec18Smcpowers#
49f9fbec18Smcpowersinclude $(UTSBASE)/intel/Makefile.intel
50f9fbec18Smcpowers
51f9fbec18Smcpowers#	set signing mode
52f9fbec18SmcpowersELFSIGN_MOD	= $(ELFSIGN_CRYPTO)
53f9fbec18Smcpowers
54f9fbec18Smcpowers#
55f9fbec18Smcpowers#	Define targets
56f9fbec18Smcpowers#
57f9fbec18SmcpowersALL_TARGET	= $(BINARY)
58f9fbec18SmcpowersLINT_TARGET	= $(MODULE).lint
59f9fbec18SmcpowersINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
60f9fbec18Smcpowers
61f9fbec18Smcpowers#
62f9fbec18Smcpowers# Linkage dependencies
63f9fbec18Smcpowers#
6423c57df7SmcpowersLDFLAGS += -dy -Nmisc/kcf
65f9fbec18Smcpowers
66b5a2d845SHai-May ChaoCPPFLAGS	+= -I$(COM1_DIR) -I$(COM2_DIR)
67f9fbec18Smcpowers
68f9fbec18SmcpowersCFLAGS		+= -DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B
69f9fbec18Smcpowers
70b5a2d845SHai-May ChaoLINTFLAGS	+= -I$(COM1_DIR) -I$(COM2_DIR)
71f9fbec18Smcpowers
72*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
73*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
74*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
75*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-empty-body
77*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
78*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
79*7014882cSRichard Lowe
80f9fbec18Smcpowers#
81f9fbec18Smcpowers#	Default build targets.
82f9fbec18Smcpowers#
83f9fbec18Smcpowers.KEEP_STATE:
84f9fbec18Smcpowers
85f9fbec18Smcpowersdef:		$(DEF_DEPS)
86f9fbec18Smcpowers
87f9fbec18Smcpowersall:		$(ALL_DEPS)
88f9fbec18Smcpowers
89f9fbec18Smcpowersclean:		$(CLEAN_DEPS)
90f9fbec18Smcpowers
91f9fbec18Smcpowersclobber:	$(CLOBBER_DEPS)
92f9fbec18Smcpowers
93f9fbec18Smcpowerslint:		$(LINT_DEPS)
94f9fbec18Smcpowers
95f9fbec18Smcpowersmodlintlib:	$(MODLINTLIB_DEPS)
96f9fbec18Smcpowers
97f9fbec18Smcpowersclean.lint:	$(CLEAN_LINT_DEPS)
98f9fbec18Smcpowers
99f9fbec18Smcpowersinstall:	$(INSTALL_DEPS)
100f9fbec18Smcpowers
101f9fbec18Smcpowers#
102f9fbec18Smcpowers#	Include common targets.
103f9fbec18Smcpowers#
104f9fbec18Smcpowersinclude $(UTSBASE)/intel/Makefile.targ
105f9fbec18Smcpowers
106f9fbec18Smcpowersinclude Makefile.$(CLASS)
107