xref: /titanic_41/usr/src/uts/sun4v/arcfour/Makefile (revision 8de5c4f463386063e184a851437d58080c6c626c)
1554ff184Skais#
2554ff184Skais# CDDL HEADER START
3554ff184Skais#
4554ff184Skais# The contents of this file are subject to the terms of the
5ac204d0dSpetede# Common Development and Distribution License (the "License").
6ac204d0dSpetede# You may not use this file except in compliance with the License.
7554ff184Skais#
8554ff184Skais# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9554ff184Skais# or http://www.opensolaris.org/os/licensing.
10554ff184Skais# See the License for the specific language governing permissions
11554ff184Skais# and limitations under the License.
12554ff184Skais#
13554ff184Skais# When distributing Covered Code, include this CDDL HEADER in each
14554ff184Skais# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15554ff184Skais# If applicable, add the following below this CDDL HEADER, with the
16554ff184Skais# fields enclosed by brackets "[]" replaced with your own identifying
17554ff184Skais# information: Portions Copyright [yyyy] [name of copyright owner]
18554ff184Skais#
19554ff184Skais# CDDL HEADER END
20554ff184Skais#
21554ff184Skais#
22554ff184Skais# uts/sun4v/arcfour/Makefile
23554ff184Skais#
24*8de5c4f4SDan OpenSolaris Anderson# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25554ff184Skais# Use is subject to license terms.
26554ff184Skais#
27554ff184Skais#	This makefile drives the production of the arcfour kernel module.
28554ff184Skais#
29554ff184Skais#	sun4v implementation architecture dependent
30554ff184Skais#
31554ff184Skais
32554ff184Skais#
33554ff184Skais#	Path to the base of the uts directory tree (usually /usr/src/uts).
34554ff184Skais#
35554ff184SkaisUTSBASE	= ../..
36160abee0Sda73024COM_DIR = $(COMMONBASE)/crypto/arcfour
37554ff184Skais
38554ff184Skais#
39554ff184Skais#	Define the module and object file sets.
40554ff184Skais#
41554ff184SkaisMODULE		= arcfour
42554ff184SkaisOBJECTS		= $(ARCFOUR_OBJS:%=$(OBJS_DIR)/%)
43554ff184SkaisLINTS		= $(ARCFOUR_OBJS:%.o=$(LINTS_DIR)/%.ln)
44554ff184SkaisROOTMODULE	= $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
45554ff184Skais
46554ff184Skais#
47554ff184Skais#	Include common rules.
48554ff184Skais#
49554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.sun4v
50554ff184Skais
51554ff184Skais#	set signing mode
52554ff184SkaisELFSIGN_MOD	= $(ELFSIGN_CRYPTO)
53554ff184Skais
54554ff184Skais#
55554ff184Skais#	Define targets
56554ff184Skais#
57554ff184SkaisALL_TARGET	= $(BINARY)
58554ff184SkaisLINT_TARGET	= $(MODULE).lint
59554ff184SkaisINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
60554ff184Skais
61554ff184Skais#
62554ff184Skais# lint pass one enforcement
63554ff184Skais#
64554ff184SkaisCFLAGS		+= $(CCVERBOSE) -I$(COM_DIR)
65554ff184SkaisLINTFLAGS	+= -I$(COM_DIR)
66554ff184Skais
67554ff184Skais#
68554ff184Skais# Turn on doubleword alignment for 64 bit registers
69554ff184Skais#
70554ff184SkaisCFLAGS += -dalign
71554ff184Skais
72554ff184Skais#
73554ff184Skais# For niagara specific optimizations
74554ff184Skais#
75d26f52cbSkaisCOPTIMIZE	= -xO5 -xbuiltin=%all
76d26f52cbSkais
77554ff184Skais#
78554ff184Skais# Override the default -xspace setting
79554ff184Skais#
80ac204d0dSpetedesparc_SPACEFLAG	= -W0,-Lt
81554ff184Skais
82554ff184Skais#
83554ff184Skais#	Default build targets.
84554ff184Skais#
85554ff184Skais.KEEP_STATE:
86554ff184Skais
87554ff184Skaisdef:		$(DEF_DEPS)
88554ff184Skais
89554ff184Skaisall:		$(ALL_DEPS)
90554ff184Skais
91554ff184Skaisclean:		$(CLEAN_DEPS)
92554ff184Skais
93554ff184Skaisclobber:	$(CLOBBER_DEPS)
94554ff184Skais
95554ff184Skaislint:		$(LINT_DEPS)
96554ff184Skais
97554ff184Skaismodlintlib:	$(MODLINTLIB_DEPS)
98554ff184Skais
99554ff184Skaisclean.lint:	$(CLEAN_LINT_DEPS)
100554ff184Skais
101554ff184Skaisinstall:	$(INSTALL_DEPS)
102554ff184Skais
103554ff184Skais#
104554ff184Skais#	Include common targets.
105554ff184Skais#
106554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.targ
107