Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
119N/A#
119N/A# CDDL HEADER START
119N/A#
119N/A# The contents of this file are subject to the terms of the
119N/A# Common Development and Distribution License (the "License").
119N/A# You may not use this file except in compliance with the License.
119N/A#
119N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
119N/A# or http://www.opensolaris.org/os/licensing.
119N/A# See the License for the specific language governing permissions
119N/A# and limitations under the License.
119N/A#
119N/A# When distributing Covered Code, include this CDDL HEADER in each
119N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
119N/A# If applicable, add the following below this CDDL HEADER, with the
119N/A# fields enclosed by brackets "[]" replaced with your own identifying
119N/A# information: Portions Copyright [yyyy] [name of copyright owner]
119N/A#
119N/A# CDDL HEADER END
119N/A#
119N/A#
119N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
119N/A# Use is subject to license terms.
119N/A#
119N/A#
119N/A# This makefile drives the production of the sha2 crypto kernel module.
119N/A#
119N/A# sparc architecture dependent
119N/A#
119N/A
119N/A#
119N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
119N/A#
119N/AUTSBASE = ../..
119N/ACOM_DIR = $(COMMONBASE)/crypto
119N/A
119N/A#
119N/A# Define the module and object file sets.
119N/A#
119N/AMODULE = sha2
119N/AOBJECTS = $(SHA2_OBJS:%=$(OBJS_DIR)/%)
119N/ALINTS = $(SHA2_OBJS:%.o=$(LINTS_DIR)/%.ln)
119N/AROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
119N/AROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
119N/A
119N/A#
119N/A# Include common rules.
119N/A#
119N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
119N/A
119N/A#
119N/A# Override defaults
119N/A#
119N/A
119N/A
119N/A#
119N/A# Define targets
119N/A#
119N/AALL_TARGET = $(BINARY)
119N/ALINT_TARGET = $(MODULE).lint
119N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
119N/A
119N/A#
119N/A# Linkage dependencies
119N/A#
119N/ALDFLAGS += -dy -Nmisc/kcf
119N/A
119N/A#
119N/A# lint pass one enforcement
119N/A#
CFLAGS += $(CCVERBOSE) -I$(COM_DIR)
LINTFLAGS += -I$(COM_DIR)
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(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)/sparc/Makefile.targ