Makefile revision 8de5c4f463386063e184a851437d58080c6c626c
309N/A#
309N/A# CDDL HEADER START
309N/A#
309N/A# The contents of this file are subject to the terms of the
1068N/A# Common Development and Distribution License (the "License").
309N/A# You may not use this file except in compliance with the License.
309N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# uts/sun4u/aes/Makefile
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
309N/A# Use is subject to license terms.
309N/A#
309N/A
309N/A#
493N/A# This makefile drives the production of the aes kernel module.
309N/A#
309N/A# sun4u implementation architecture dependent
1068N/A#
309N/A
911N/A#
1068N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1068N/A#
911N/AUTSBASE = ../..
309N/ACOM_DIR = $(COMMONBASE)/crypto
309N/A
309N/A#
970N/A# Define the module and object file sets.
970N/A#
970N/AMODULE = aes
970N/AOBJECTS = $(AES_OBJS:%=$(OBJS_DIR)/%)
970N/ALINTS = $(AES_OBJS:%.o=$(LINTS_DIR)/%.ln)
970N/AROOTMODULE = $(ROOT_US3_CRYPTO_DIR)/$(MODULE)
970N/A
309N/A#
309N/A# Include common rules.
309N/A#
493N/Ainclude $(UTSBASE)/sun4u/Makefile.sun4u
309N/A
1124N/A# set signing mode
1124N/AELFSIGN_MOD = $(ELFSIGN_CRYPTO)
1124N/A
1124N/A#
970N/A# Define targets
970N/A#
970N/AALL_TARGET = $(BINARY)
309N/ALINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Linkage dependencies
#
LDFLAGS += -dy -Nmisc/kcf
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I$(COM_DIR)
CPPFLAGS += -DCRYPTO_PROVIDER_NAME=\"$(MODULE)\"
LINTFLAGS += -I$(COM_DIR)
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# 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)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/Makefile.targ
$(ROOT_US3_DIR): $(ROOT_PLAT_DIR)
-$(INS.dir)
$(ROOT_US3_MOD_DIR): $(ROOT_US3_DIR)
-$(INS.dir)
$(ROOT_US3_CRYPTO_DIR): $(ROOT_US3_MOD_DIR)
-$(INS.dir)
$(ROOT_US3_CRYPTO_DIR)/%: $(OBJS_DIR)/% $(ROOT_US3_CRYPTO_DIR)
-$(INS.file)