Makefile revision 160abee025ef30c34521b981edd40ffcaab560aa
5253N/A#
5253N/A# CDDL HEADER START
5253N/A#
5253N/A# The contents of this file are subject to the terms of the
5253N/A# Common Development and Distribution License (the "License").
5253N/A# You may not use this file except in compliance with the License.
5253N/A#
5253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5253N/A# or http://www.opensolaris.org/os/licensing.
5253N/A# See the License for the specific language governing permissions
5253N/A# and limitations under the License.
5253N/A#
5253N/A# When distributing Covered Code, include this CDDL HEADER in each
5253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5253N/A# If applicable, add the following below this CDDL HEADER, with the
5253N/A# fields enclosed by brackets "[]" replaced with your own identifying
5253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5253N/A#
5253N/A# CDDL HEADER END
5253N/A#
5525N/A#
5253N/A# uts/sparc/des/Makefile
5253N/A#
5253N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5253N/A# Use is subject to license terms.
5253N/A#
5253N/A#ident "%Z%%M% %I% %E% SMI"
5253N/A#
5253N/A# This makefile drives the production of the des crypto kernel module.
5253N/A#
5253N/A# sparc architecture dependent
5253N/A#
5253N/A
5253N/A#
5253N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5253N/A#
5253N/AUTSBASE = ../..
5253N/ACOM_DIR = $(COMMONBASE)/crypto/des
5253N/A
5253N/A#
5253N/A# Define the module and object file sets.
5253N/A#
5253N/AMODULE = des
5253N/AOBJECTS = $(DES_OBJS:%=$(OBJS_DIR)/%)
5253N/ALINTS = $(DES_OBJS:%.o=$(LINTS_DIR)/%.ln)
5253N/AROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
5253N/AROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
5253N/ATARGET_32 = ../../kernel/crypto/$(MODULE)
5253N/ATARGET_64 = ../../../kernel/crypto/$(SUBDIR64)/$(MODULE)
5253N/ALINK_TARGET = $(TARGET_$(CLASS))
5253N/A
5253N/A#
5253N/A# Include common rules.
5253N/A#
5253N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
5253N/A
5253N/A# set signing mode
5253N/AELFSIGN_MOD = $(ELFSIGN_CRYPTO)
5253N/A
5253N/A#
5253N/A# Define targets
5253N/A#
5253N/AALL_TARGET = $(BINARY)
5253N/ALINT_TARGET = $(MODULE).lint
5253N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
5253N/A
5253N/A#
5253N/A# Override defaults to build a unique, local modstubs.o.
5253N/A#
5253N/AMODSTUBS_DIR = $(OBJS_DIR)
5253N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DDES_MODULE
5253N/ACLEANFILES += $(MODSTUBS_O)
5253N/A
5253N/A#
5253N/A# lint pass one enforcement
5253N/A#
5253N/ACFLAGS += $(CCVERBOSE) -I$(COM_DIR)
5253N/ALINTFLAGS += -I$(COM_DIR)
5253N/A
5253N/A#
5253N/A# For now, disable these lint checks; maintainers should endeavor
5253N/A# to investigate and remove these for maximum lint coverage.
5253N/A# Please do not carry these forward to new Makefiles.
5253N/A#
5253N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5253N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5253N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
5253N/A
5253N/A#
5253N/A# Default build targets.
5253N/A#
5253N/A.KEEP_STATE:
5253N/A
5253N/Adef: $(DEF_DEPS)
6917N/A
6917N/Aall: $(ALL_DEPS)
5253N/A
5253N/Aclean: $(CLEAN_DEPS)
5253N/A
5253N/Aclobber: $(CLOBBER_DEPS)
5253N/A
5253N/Alint: $(LINT_DEPS)
5253N/A
5253N/Amodlintlib: $(MODLINTLIB_DEPS)
5525N/A
5525N/Aclean.lint: $(CLEAN_LINT_DEPS)
5525N/A
5253N/Ainstall: $(INSTALL_DEPS)
5253N/A
5253N/A$(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE)
5253N/A -$(RM) $@; ln -s $(LINK_TARGET) $@
5253N/A#
5253N/A# Include common targets.
5253N/A#
5253N/Ainclude $(UTSBASE)/sparc/Makefile.targ
5253N/A