Makefile revision 55553f719b521a0bb4deab6efc944cd30c1a56aa
203N/A#
203N/A# CDDL HEADER START
203N/A#
203N/A# The contents of this file are subject to the terms of the
203N/A# Common Development and Distribution License (the "License").
203N/A# You may not use this file except in compliance with the License.
203N/A#
203N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
203N/A# or http://www.opensolaris.org/os/licensing.
203N/A# See the License for the specific language governing permissions
203N/A# and limitations under the License.
203N/A#
203N/A# When distributing Covered Code, include this CDDL HEADER in each
203N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
203N/A# If applicable, add the following below this CDDL HEADER, with the
203N/A# fields enclosed by brackets "[]" replaced with your own identifying
203N/A# information: Portions Copyright [yyyy] [name of copyright owner]
203N/A#
203N/A# CDDL HEADER END
203N/A#
203N/A#
203N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
203N/A# Use is subject to license terms.
203N/A#
203N/A# ident "%Z%%M% %I% %E% SMI"
203N/A#
203N/A# This makefile drives the production of the ARCFOUR KEF provider.
203N/A#
203N/A# intel implementation architecture dependent
203N/A#
203N/A
203N/A#
203N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
203N/A#
203N/AUTSBASE = ../..
203N/ACOM_DIR = $(COMMONBASE)/crypto/arcfour
203N/A
203N/A#
203N/A# Define the module and object file sets.
203N/A#
203N/AMODULE = arcfour
203N/ALINTS = $(ARCFOURPROV_OBJS:%.o=$(LINTS_DIR)/%.ln)
203N/AARCFOURPROV_OBJS_32 =
203N/AARCFOURPROV_OBJS_64 = arcfour-x86_64.o
203N/AARCFOURPROV_OBJS += $(ARCFOURPROV_OBJS_$(CLASS))
203N/AOBJECTS = $(ARCFOURPROV_OBJS:%=$(OBJS_DIR)/%)
203N/AROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
203N/A
203N/A#
203N/A# Include common rules.
203N/A#
203N/Ainclude $(UTSBASE)/intel/Makefile.intel
203N/A
203N/A# set signing mode
203N/AELFSIGN_MOD = $(ELFSIGN_CRYPTO)
203N/A
203N/A#
203N/A# Define targets
203N/A#
203N/AALL_TARGET = $(BINARY)
203N/ALINT_TARGET = $(MODULE).lint
203N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
203N/A
203N/A#
203N/A# Overrides
203N/A#
203N/ACPPFLAGS += -I$(COM_DIR)
203N/ACLEANFILES += arcfour-x86_64.s
203N/A
203N/A#
203N/A# For now, disable these lint checks; maintainers should endeavor
203N/A# to investigate and remove these for maximum lint coverage.
203N/A# Please do not carry these forward to new Makefiles.
203N/A#
203N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
203N/A
203N/A#
203N/A# Default build targets.
203N/A#
203N/A.KEEP_STATE:
203N/A
203N/Adef: $(DEF_DEPS)
203N/A
203N/Aall: $(ALL_DEPS)
203N/A
203N/Aclean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
$(OBJS_DIR)/arcfour-x86_64.o: arcfour-x86_64.s
$(COMPILE.s) -o $@ ${@F:.o=.s}
$(POST_PROCESS_O)
$(OBJS_DIR)/arcfour-x86_64.ln: arcfour-x86_64.s
@($(LHEAD) $(LINT.s) ${@F:.ln=.s} $(LTAIL))
arcfour-x86_64.s: $(COM_DIR)/amd64/arcfour-x86_64.pl
$(PERL) $? $@