Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
148N/A#
148N/A# CDDL HEADER START
148N/A#
148N/A# The contents of this file are subject to the terms of the
148N/A# Common Development and Distribution License (the "License").
148N/A# You may not use this file except in compliance with the License.
148N/A#
148N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
148N/A# or http://www.opensolaris.org/os/licensing.
148N/A# See the License for the specific language governing permissions
148N/A# and limitations under the License.
148N/A#
148N/A# When distributing Covered Code, include this CDDL HEADER in each
148N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
148N/A# If applicable, add the following below this CDDL HEADER, with the
148N/A# fields enclosed by brackets "[]" replaced with your own identifying
148N/A# information: Portions Copyright [yyyy] [name of copyright owner]
148N/A#
148N/A# CDDL HEADER END
148N/A#
148N/A#
148N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
690N/A# Use is subject to license terms.
148N/A#
148N/A#
148N/A# This makefile drives the production of the sha2 crypto kernel module.
148N/A#
148N/A# intel architecture dependent
148N/A#
618N/A
148N/A#
148N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
844N/AUTSBASE = ../..
148N/ACOMDIR = $(COMMONBASE)/crypto
1273N/A
148N/A#
1002N/A# Define the module and object file sets.
1002N/A#
1002N/AMODULE = sha2
1002N/ASHA2_OBJS_32 =
1002N/ASHA2_OBJS_64 = sha512-x86_64.o sha256-x86_64.o
1002N/ASHA2_OBJS += $(SHA2_OBJS_$(CLASS))
148N/AOBJECTS = $(SHA2_OBJS:%=$(OBJS_DIR)/%)
148N/ALINTS = $(SHA2_OBJS:%.o=$(LINTS_DIR)/%.ln)
148N/AROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
181N/AROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
148N/A
148N/A#
148N/A# Include common rules.
148N/A#
148N/Ainclude $(UTSBASE)/intel/Makefile.intel
148N/A
148N/A#
148N/A# Override defaults
148N/A#
148N/ACLEANFILES += sha512-x86_64.s sha256-x86_64.s
148N/A
148N/A#
1002N/A# Define targets
690N/A#
148N/AALL_TARGET = $(BINARY)
1002N/ALINT_TARGET = $(MODULE).lint
1002N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
148N/A
727N/A#
727N/A# Linkage dependencies
822N/A#
822N/ALDFLAGS += -dy -Nmisc/kcf
727N/A
727N/ACFLAGS += -I$(COMDIR)
727N/ALINTFLAGS += -I$(COMDIR)
727N/A
822N/ACERRWARN += -_gcc=-Wno-switch
727N/ACERRWARN += -_gcc=-Wno-uninitialized
727N/A
148N/A#
148N/A# Default build targets.
148N/A#
148N/A.KEEP_STATE:
560N/A
727N/Adef: $(DEF_DEPS)
148N/A
181N/Aall: $(ALL_DEPS)
148N/A
148N/Aclean: $(CLEAN_DEPS)
148N/A
148N/Aclobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
$(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
$(OBJS_DIR)/%.o: %.s
$(COMPILE.s) -o $@ ${@F:.o=.s}
$(POST_PROCESS_O)
$(OBJS_DIR)/%.ln: %.s
@($(LHEAD) $(LINT.c) ${@F:.ln=.s} $(LTAIL))
sha512-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
$(PERL) $? $@
sha256-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
$(PERL) $? $@