Makefile revision 55553f719b521a0bb4deab6efc944cd30c1a56aa
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# CDDL HEADER START
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# The contents of this file are subject to the terms of the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Common Development and Distribution License (the "License").
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# You may not use this file except in compliance with the License.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# or http://www.opensolaris.org/os/licensing.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# See the License for the specific language governing permissions
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# and limitations under the License.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# If applicable, add the following below this CDDL HEADER, with the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# CDDL HEADER END
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Use is subject to license terms.
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# ident "%Z%%M% %I% %E% SMI"
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# This makefile drives the production of the ARCFOUR KEF provider.
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# intel implementation architecture dependent
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync#
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync#
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
04e845ee9ef813501cd2570a4188cb852d170408vboxsyncUTSBASE = ../..
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsyncCOM_DIR = $(COMMONBASE)/crypto/arcfour
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync
9161d9a8318db73b2848c1feaef3880980474e64vboxsync#
04e845ee9ef813501cd2570a4188cb852d170408vboxsync# Define the module and object file sets.
04e845ee9ef813501cd2570a4188cb852d170408vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncMODULE = arcfour
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncLINTS = $(ARCFOURPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncARCFOURPROV_OBJS_32 =
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncARCFOURPROV_OBJS_64 = arcfour-x86_64.o
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncARCFOURPROV_OBJS += $(ARCFOURPROV_OBJS_$(CLASS))
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncOBJECTS = $(ARCFOURPROV_OBJS:%=$(OBJS_DIR)/%)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync# Include common rules.
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync#
22500d40977b2e17949f8598de4f3c6d59ab405avboxsyncinclude $(UTSBASE)/intel/Makefile.intel
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync# set signing mode
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncELFSIGN_MOD = $(ELFSIGN_CRYPTO)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Define targets
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncALL_TARGET = $(BINARY)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncLINT_TARGET = $(MODULE).lint
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Overrides
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncCPPFLAGS += -I$(COM_DIR)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncCLEANFILES += arcfour-x86_64.s
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# For now, disable these lint checks; maintainers should endeavor
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync# to investigate and remove these for maximum lint coverage.
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync# Please do not carry these forward to new Makefiles.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync#
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync# Default build targets.
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync.KEEP_STATE:
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
04e845ee9ef813501cd2570a4188cb852d170408vboxsyncdef: $(DEF_DEPS)
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync
9161d9a8318db73b2848c1feaef3880980474e64vboxsyncall: $(ALL_DEPS)
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsync
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsyncclean: $(CLEAN_DEPS)
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync
04e845ee9ef813501cd2570a4188cb852d170408vboxsyncclobber: $(CLOBBER_DEPS)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsynclint: $(LINT_DEPS)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsyncinstall: $(INSTALL_DEPS)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync# Include common targets.
00c120c036112e6430a84cb41ddc3e847ba1e9e2vboxsync#
0de1998ac52682bb5322df476e45f237265ea9b7vboxsyncinclude $(UTSBASE)/intel/Makefile.targ
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync
6361862f262bb5f90ed82f2a6e926c35bfa9cf18vboxsync$(OBJS_DIR)/arcfour-x86_64.o: arcfour-x86_64.s
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync $(COMPILE.s) -o $@ ${@F:.o=.s}
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync $(POST_PROCESS_O)
08de95260e5829c72e66326016c7e2fc861d9f26vboxsync
e99106e1706f8e87456f34b22c40becae61e1ed0vboxsync$(OBJS_DIR)/arcfour-x86_64.ln: arcfour-x86_64.s
e99106e1706f8e87456f34b22c40becae61e1ed0vboxsync @($(LHEAD) $(LINT.s) ${@F:.ln=.s} $(LTAIL))
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsyncarcfour-x86_64.s: $(COM_DIR)/amd64/arcfour-x86_64.pl
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync $(PERL) $? $@
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync