Makefile revision 23259b79afff8cc5e183c5be57e05120f378fa72
308N/A#
308N/A# CDDL HEADER START
308N/A#
308N/A# The contents of this file are subject to the terms of the
308N/A# Common Development and Distribution License (the "License").
308N/A# You may not use this file except in compliance with the License.
308N/A#
308N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
308N/A# or http://www.opensolaris.org/os/licensing.
308N/A# See the License for the specific language governing permissions
308N/A# and limitations under the License.
308N/A#
308N/A# When distributing Covered Code, include this CDDL HEADER in each
308N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
308N/A# If applicable, add the following below this CDDL HEADER, with the
308N/A# fields enclosed by brackets "[]" replaced with your own identifying
308N/A# information: Portions Copyright [yyyy] [name of copyright owner]
308N/A#
308N/A# CDDL HEADER END
308N/A#
308N/A#
308N/A# uts/intel/des/Makefile
815N/A#
308N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
308N/A# Use is subject to license terms.
308N/A#
308N/A#ident "%Z%%M% %I% %E% SMI"
308N/A#
815N/A# This makefile drives the production of the des crypto kernel module.
618N/A#
308N/A# intel architecture dependent
308N/A#
815N/A
618N/A#
308N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
308N/A#
308N/AUTSBASE = ../..
308N/ACOM_DIR = $(SRC)/common/crypto/des
308N/A
308N/A#
308N/A# Define the module and object file sets.
308N/A#
308N/AMODULE = des
308N/AOBJECTS = $(DES_OBJS:%=$(OBJS_DIR)/%)
308N/ALINTS = $(DES_OBJS:%.o=$(LINTS_DIR)/%.ln)
308N/AROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
308N/AROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
308N/ATARGET_32 = ../../kernel/crypto/$(MODULE)
308N/ATARGET_64 = ../../../kernel/crypto/$(SUBDIR64)/$(MODULE)
308N/ALINK_TARGET = $(TARGET_$(CLASS))
308N/A
308N/A#
308N/A# Include common rules.
#
include $(UTSBASE)/intel/Makefile.intel
# set signing mode
ELFSIGN_MOD = $(ELFSIGN_CRYPTO)
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
CPPFLAGS += -I$(COM_DIR)
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# 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 -s $(LINK_TARGET) $@
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ