Makefile revision 2605:ec6c9a1440fb
12SN/A#
26SN/A# CDDL HEADER START
32SN/A#
42SN/A# The contents of this file are subject to the terms of the
52SN/A# Common Development and Distribution License (the "License").
62SN/A# You may not use this file except in compliance with the License.
72SN/A#
82SN/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92SN/A# or http://www.opensolaris.org/os/licensing.
102SN/A# See the License for the specific language governing permissions
112SN/A# and limitations under the License.
122SN/A#
132SN/A# When distributing Covered Code, include this CDDL HEADER in each
142SN/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152SN/A# If applicable, add the following below this CDDL HEADER, with the
162SN/A# fields enclosed by brackets "[]" replaced with your own identifying
172SN/A# information: Portions Copyright [yyyy] [name of copyright owner]
182SN/A#
192SN/A# CDDL HEADER END
202SN/A#
212SN/A#
222SN/A# uts/sun4v/arcfour/Makefile
232SN/A#
242SN/A# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
252SN/A# Use is subject to license terms.
262SN/A#
272SN/A#ident	"%Z%%M%	%I%	%E% SMI"
28210SN/A#
292SN/A#	This makefile drives the production of the arcfour kernel module.
302SN/A#
312SN/A#	sun4v implementation architecture dependent
322SN/A#
332SN/A
34210SN/A#
35429SN/A#	Path to the base of the uts directory tree (usually /usr/src/uts).
361068Sattila#
371068SattilaUTSBASE	= ../..
382SN/ACOM_DIR = $(SRC)/common/crypto/arcfour
39429SN/A
402SN/A#
412SN/A#	Define the module and object file sets.
42210SN/A#
432SN/AMODULE		= arcfour
442SN/AOBJECTS		= $(ARCFOUR_OBJS:%=$(OBJS_DIR)/%)
452SN/ALINTS		= $(ARCFOUR_OBJS:%.o=$(LINTS_DIR)/%.ln)
462SN/AROOTMODULE	= $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
471060Slagergren
481060Slagergren#
491060Slagergren#	Include common rules.
501060Slagergren#
511060Slagergreninclude $(UTSBASE)/sun4v/Makefile.sun4v
522SN/A
531060Slagergren#	set signing mode
54252SN/AELFSIGN_MOD	= $(ELFSIGN_CRYPTO)
551060Slagergren
561060Slagergren#
57210SN/A#	Define targets
58210SN/A#
59429SN/AALL_TARGET	= $(BINARY)
60210SN/ALINT_TARGET	= $(MODULE).lint
612SN/AINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
622SN/A
632SN/A#
642SN/A# lint pass one enforcement
652SN/A#
662SN/ACFLAGS		+= $(CCVERBOSE) -I$(COM_DIR)
672SN/ALINTFLAGS	+= -I$(COM_DIR)
682SN/A
692SN/A#
702SN/A# Turn on doubleword alignment for 64 bit registers
71289SN/A#
72210SN/ACFLAGS += -dalign
73210SN/A
74429SN/A#
75210SN/A# For niagara specific optimizations
762SN/A#
77210SN/ACOPTIMIZE	= -xO5 -xbuiltin=%all
78210SN/A
792SN/A#
80210SN/A# Override the default -xspace setting
81210SN/A#
82210SN/Asparc_SPACEFLAG	= -W0,-Lt
832SN/A
842SN/A#
852SN/A#	Default build targets.
86858SN/A#
872SN/A.KEEP_STATE:
88858SN/A
892SN/Adef:		$(DEF_DEPS)
902SN/A
912SN/Aall:		$(ALL_DEPS)
922SN/A
932SN/Aclean:		$(CLEAN_DEPS)
942SN/A
952SN/Aclobber:	$(CLOBBER_DEPS)
962SN/A
972SN/Alint:		$(LINT_DEPS)
982SN/A
992SN/Amodlintlib:	$(MODLINTLIB_DEPS)
1002SN/A
1012SN/Aclean.lint:	$(CLEAN_LINT_DEPS)
102210SN/A
1032SN/Ainstall:	$(INSTALL_DEPS)
104210SN/A
1052SN/A#
106210SN/A#	Include common targets.
107210SN/A#
108210SN/Ainclude $(UTSBASE)/sun4v/Makefile.targ
109210SN/A