Makefile revision 23c57df72989c916b3e98084eb88d48777999691
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# The contents of this file are subject to the terms of the
222834d5a33b915037094af014905f3683cae78btrawick# Common Development and Distribution License (the "License").
222834d5a33b915037094af014905f3683cae78btrawick# You may not use this file except in compliance with the License.
222834d5a33b915037094af014905f3683cae78btrawick#
2db5d76ac4c75aadecf38e20569bccbfd2360ba7rpluem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2db5d76ac4c75aadecf38e20569bccbfd2360ba7rpluem# or http://www.opensolaris.org/os/licensing.
2db5d76ac4c75aadecf38e20569bccbfd2360ba7rpluem# See the License for the specific language governing permissions
df46ff21c57d00f6addccaaf9b1484f2b56b8577pquerna# and limitations under the License.
7f4ac5a4cd99a9cae866b5908e358bd932736307chrisd#
1c03114a0f0315ed19a05f654021da9f66005897rjung# When distributing Covered Code, include this CDDL HEADER in each
1c03114a0f0315ed19a05f654021da9f66005897rjung# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
89691c9bd17f5f53fa0aa8d3fe2e1faee5a5d984rpluem# If applicable, add the following below this CDDL HEADER, with the
89691c9bd17f5f53fa0aa8d3fe2e1faee5a5d984rpluem# fields enclosed by brackets "[]" replaced with your own identifying
89691c9bd17f5f53fa0aa8d3fe2e1faee5a5d984rpluem# information: Portions Copyright [yyyy] [name of copyright owner]
89691c9bd17f5f53fa0aa8d3fe2e1faee5a5d984rpluem#
3e9c0665b06e44cf776528c6954ed3ca34a77c7fsctemme# CDDL HEADER END
51a475d92e7d68ee6d7b57aa7fd6e73b2712ce31sctemme#
3e9c0665b06e44cf776528c6954ed3ca34a77c7fsctemme#
019f2b58acb34e31ea3a062bdb5e6c863cd82d66trawick# uts/sparc/des/Makefile
873c287c391b0bbc4719b68bb84946515811e1batrawick#
6707208ba4e9a5841ca1ab830830fd286ea5b7c5trawick# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6707208ba4e9a5841ca1ab830830fd286ea5b7c5trawick# Use is subject to license terms.
873c287c391b0bbc4719b68bb84946515811e1batrawick#
832853bb93c1831daf24e4727c5ca0e1b1786e83lars#ident "%Z%%M% %I% %E% SMI"
832853bb93c1831daf24e4727c5ca0e1b1786e83lars#
832853bb93c1831daf24e4727c5ca0e1b1786e83lars# This makefile drives the production of the des crypto kernel module.
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding#
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding# sparc architecture dependent
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding#
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding
1782dcd420de504978945e6b812523eeae6d56a2lars#
1782dcd420de504978945e6b812523eeae6d56a2lars# Path to the base of the uts directory tree (usually /usr/src/uts).
d2696ac6757b3d8bdaa27634a141ac8c8a045e08fielding#
1782dcd420de504978945e6b812523eeae6d56a2larsUTSBASE = ../..
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemCOM_DIR = $(COMMONBASE)/crypto
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
59dc8d935dbf862712683bbc9e267bd08ced0b14fielding#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Define the module and object file sets.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemMODULE = des
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemOBJECTS = $(DES_OBJS:%=$(OBJS_DIR)/%)
cf8d02ea0c91653917b044529f3133c5a1bb9200fieldingLINTS = $(DES_OBJS:%.o=$(LINTS_DIR)/%.ln)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemROOTLINK = $(ROOT_MISC_DIR)/$(MODULE)
17ac330ebaa71b24cb77580411a231ee45996e03pquernaTARGET_32 = ../../kernel/crypto/$(MODULE)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemTARGET_64 = ../../../kernel/crypto/$(SUBDIR64)/$(MODULE)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemLINK_TARGET = $(TARGET_$(CLASS))
9f38f3ec3e8087985d108a24ae796962fef83644takashi
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Include common rules.
d4ee4552489641d35d1195bbbd6021351c4b79aarjung#
abc69b39766c0de3eaf99e9016ea3f35e23c116drplueminclude $(UTSBASE)/sparc/Makefile.sparc
9e152751ed380f87c5ecae4fb0221c956e5fbd24rjung
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# set signing mode
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemELFSIGN_MOD = $(ELFSIGN_CRYPTO)
abb99af8aa7da2cb4c324133a4e10bd7a50f875erpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Define targets
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
382d14411b582d97075a836190d74c778977505fcovenerALL_TARGET = $(BINARY)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemLINT_TARGET = $(MODULE).lint
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
06e6657fd0f376a16db696876f9bff5927cc3cb0trawick#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Override defaults to build a unique, local modstubs.o.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
0e9dae659943679108357054e9aa7657cdc52dc4minfrinMODSTUBS_DIR = $(OBJS_DIR)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem$(MODSTUBS_O) := AS_CPPFLAGS += -DDES_MODULE
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemCLEANFILES += $(MODSTUBS_O)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# Linkage dependencies
d03aa31ada476d8eb97feaec2b1099809e7f3d57niq#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemLDFLAGS += -dy -Nmisc/kcf
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
a7757dd38bb2a1afc93e241b7ea67b3de85ecc8bminfrin#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# lint pass one enforcement
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
df46ff21c57d00f6addccaaf9b1484f2b56b8577pquernaCFLAGS += $(CCVERBOSE) -I$(COM_DIR)
df46ff21c57d00f6addccaaf9b1484f2b56b8577pquernaLINTFLAGS += -I$(COM_DIR)
df46ff21c57d00f6addccaaf9b1484f2b56b8577pquerna
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# For now, disable these lint checks; maintainers should endeavor
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem# to investigate and remove these for maximum lint coverage.
a5cce34e21a5b472f3806b4526043887bcb7e9eajim# Please do not carry these forward to new Makefiles.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
8c3667cd1d0db08647793137c0d1aa7f6526bebfniqLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
8c3667cd1d0db08647793137c0d1aa7f6526bebfniq# Default build targets.
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem#
6824182b3b8e045db97a228d3127bdfcbdfeb0bcniq.KEEP_STATE:
6824182b3b8e045db97a228d3127bdfcbdfeb0bcniq
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemdef: $(DEF_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemall: $(ALL_DEPS)
0c26d213d85bc40fc05963c63bf670b42b352d25niq
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemclean: $(CLEAN_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
92357fb76d3ad043e29ba2ba2041a7bdb8d13390niqclobber: $(CLOBBER_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
9f07b6dc343a4e3eba5f4c47050a77441723ce89ndlint: $(LINT_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluemmodlintlib: $(MODLINTLIB_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
f7cec4a86292b160401472286a17497ae0d4df18covenerclean.lint: $(CLEAN_LINT_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drplueminstall: $(INSTALL_DEPS)
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem
abc69b39766c0de3eaf99e9016ea3f35e23c116drpluem$(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE)
1464434c2c104e0ba224644c42552330f5158537covener -$(RM) $@; ln -s $(LINK_TARGET) $@
8d574b3ac4185e4f71c8b9aae76e7122a78201c4rpluem#
8d574b3ac4185e4f71c8b9aae76e7122a78201c4rpluem# Include common targets.
8d574b3ac4185e4f71c8b9aae76e7122a78201c4rpluem#
7f4ac5a4cd99a9cae866b5908e358bd932736307chrisdinclude $(UTSBASE)/sparc/Makefile.targ
92357fb76d3ad043e29ba2ba2041a7bdb8d13390niq