xref: /titanic_44/usr/src/uts/intel/bignum/Makefile (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
1b60f2a0bSfr41279#
2b60f2a0bSfr41279# CDDL HEADER START
3b60f2a0bSfr41279#
4b60f2a0bSfr41279# The contents of this file are subject to the terms of the
5b60f2a0bSfr41279# Common Development and Distribution License (the "License").
6b60f2a0bSfr41279# You may not use this file except in compliance with the License.
7b60f2a0bSfr41279#
8b60f2a0bSfr41279# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b60f2a0bSfr41279# or http://www.opensolaris.org/os/licensing.
10b60f2a0bSfr41279# See the License for the specific language governing permissions
11b60f2a0bSfr41279# and limitations under the License.
12b60f2a0bSfr41279#
13b60f2a0bSfr41279# When distributing Covered Code, include this CDDL HEADER in each
14b60f2a0bSfr41279# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b60f2a0bSfr41279# If applicable, add the following below this CDDL HEADER, with the
16b60f2a0bSfr41279# fields enclosed by brackets "[]" replaced with your own identifying
17b60f2a0bSfr41279# information: Portions Copyright [yyyy] [name of copyright owner]
18b60f2a0bSfr41279#
19b60f2a0bSfr41279# CDDL HEADER END
20b60f2a0bSfr41279#
21b60f2a0bSfr41279#
22*32e0ab73SMisaki Miyashita# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23b60f2a0bSfr41279#
24b60f2a0bSfr41279#	This makefile drives the production of the RSA KEF provider.
25b60f2a0bSfr41279#
26b60f2a0bSfr41279#	intel implementation architecture dependent
27b60f2a0bSfr41279#
28b60f2a0bSfr41279
29b60f2a0bSfr41279#
30b60f2a0bSfr41279#	Path to the base of the uts directory tree (usually /usr/src/uts).
31b60f2a0bSfr41279#
32b60f2a0bSfr41279UTSBASE	= ../..
33b60f2a0bSfr41279BIGNUMDIR = $(COMMONBASE)/bignum
34*32e0ab73SMisaki MiyashitaCRYPTODIR = $(COMMONBASE)/crypto
35b60f2a0bSfr41279
36b60f2a0bSfr41279#
37b60f2a0bSfr41279#	Define the module and object file sets.
38b60f2a0bSfr41279#
39b60f2a0bSfr41279MODULE		= bignum
40b60f2a0bSfr41279OBJECTS		= $(BIGNUM_OBJS:%=$(OBJS_DIR)/%)
41b60f2a0bSfr41279LINTS		= $(BIGNUM_OBJS:%.o=$(LINTS_DIR)/%.ln)
42b60f2a0bSfr41279ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
43b60f2a0bSfr41279
44b60f2a0bSfr41279BIGNUM_OBJS_32 = bignum_i386.o bignum_i386_asm.o
45b60f2a0bSfr41279BIGNUM_OBJS_64 = bignum_amd64.o bignum_amd64_asm.o
46b60f2a0bSfr41279BIGNUM_PSR_OBJS = $(BIGNUM_OBJS_$(CLASS))
47b60f2a0bSfr41279
48b60f2a0bSfr41279#
49b60f2a0bSfr41279#	Include common rules.
50b60f2a0bSfr41279#
51b60f2a0bSfr41279include $(UTSBASE)/intel/Makefile.intel
52b60f2a0bSfr41279
53b60f2a0bSfr41279#
54b60f2a0bSfr41279#	Define targets
55b60f2a0bSfr41279#
56b60f2a0bSfr41279ALL_TARGET	= $(BINARY)
57b60f2a0bSfr41279LINT_TARGET	= $(MODULE).lint
58b60f2a0bSfr41279INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
59b60f2a0bSfr41279
60b60f2a0bSfr41279#
61b60f2a0bSfr41279# Linkage dependencies
62b60f2a0bSfr41279#
63*32e0ab73SMisaki MiyashitaLDFLAGS += -dy -Nmisc/kcf
64b60f2a0bSfr41279
65*32e0ab73SMisaki MiyashitaCPPFLAGS	+= -I$(BIGNUMDIR) -I$(CRYPTODIR)
66b60f2a0bSfr41279
67b60f2a0bSfr41279#
68b60f2a0bSfr41279#	Default build targets.
69b60f2a0bSfr41279#
70b60f2a0bSfr41279.KEEP_STATE:
71b60f2a0bSfr41279
72b60f2a0bSfr41279def:		$(DEF_DEPS)
73b60f2a0bSfr41279
74b60f2a0bSfr41279all:		$(ALL_DEPS)
75b60f2a0bSfr41279
76b60f2a0bSfr41279clean:		$(CLEAN_DEPS)
77b60f2a0bSfr41279
78b60f2a0bSfr41279clobber:	$(CLOBBER_DEPS)
79b60f2a0bSfr41279
80b60f2a0bSfr41279lint:		$(LINT_DEPS)
81b60f2a0bSfr41279
82b60f2a0bSfr41279modlintlib:	$(MODLINTLIB_DEPS)
83b60f2a0bSfr41279
84b60f2a0bSfr41279clean.lint:	$(CLEAN_LINT_DEPS)
85b60f2a0bSfr41279
86b60f2a0bSfr41279install:	$(INSTALL_DEPS)
87b60f2a0bSfr41279
88b60f2a0bSfr41279#
89b60f2a0bSfr41279#	Include common targets.
90b60f2a0bSfr41279#
91b60f2a0bSfr41279include $(UTSBASE)/intel/Makefile.targ
92b60f2a0bSfr41279
93b60f2a0bSfr41279
94b60f2a0bSfr41279include Makefile.$(CLASS)
95