Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
1a5f954324f2584984fc9cee7a7a8ebe8ef39aeajim#
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim# The contents of this file are subject to the terms of the
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# Common Development and Distribution License (the "License").
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# You may not use this file except in compliance with the License.
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin#
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
abe0d0e38b9705f21a13ac8748bce1e3ed35e488minfrin# or http://www.opensolaris.org/os/licensing.
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin# See the License for the specific language governing permissions
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin# and limitations under the License.
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin#
fb8ee8b7a3a2503b95bf47685f9083e0b9834e6fminfrin# When distributing Covered Code, include this CDDL HEADER in each
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# If applicable, add the following below this CDDL HEADER, with the
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# fields enclosed by brackets "[]" replaced with your own identifying
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# information: Portions Copyright [yyyy] [name of copyright owner]
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd# CDDL HEADER END
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
a72211e92bab814bfa28ee086ca9b2a1a6095c92chrisd#
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjim# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjim# Use is subject to license terms.
5c5e7695fc1e44bebba6b339494a2df4e69b86fcjim#
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem#
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem# This makefile drives the production of the SHA1 kernel module.
4228aba3de67f3d9cce68f7a915d5435faa43adarpluem#
78a20a6e7ad3a0229900ee54c7d11a65f647b663niq# sun4u implementation architecture dependent
9582ad6e149d28b118d4e8571101ecb6f85e0191niq#
9582ad6e149d28b118d4e8571101ecb6f85e0191niq
9582ad6e149d28b118d4e8571101ecb6f85e0191niq#
78a20a6e7ad3a0229900ee54c7d11a65f647b663niq# Path to the base of the uts directory tree (usually /usr/src/uts).
d56bacbfefa5aa883ce5162a115747372fc38d13chrisd#
d56bacbfefa5aa883ce5162a115747372fc38d13chrisdUTSBASE = ../..
d56bacbfefa5aa883ce5162a115747372fc38d13chrisdCOM_DIR = $(COMMONBASE)/crypto
d56bacbfefa5aa883ce5162a115747372fc38d13chrisd
d56bacbfefa5aa883ce5162a115747372fc38d13chrisd#
e1a26e8050bf62459a7ef1c5064b714811767417rpluem# Define the module and object file sets.
e1a26e8050bf62459a7ef1c5064b714811767417rpluem#
e1a26e8050bf62459a7ef1c5064b714811767417rpluemMODULE = sha1
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdOBJECTS = $(SHA1_OBJS:%=$(OBJS_DIR)/%)
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdLINTS = $(SHA1_OBJS:%.o=$(LINTS_DIR)/%.ln)
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
fcee7ee83b1e48f2655c79f176d1ea7627e19937chrisdROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE)
53feccc94b923e12db1df6f7069676590097ba2frpluem
53feccc94b923e12db1df6f7069676590097ba2frpluem#
53feccc94b923e12db1df6f7069676590097ba2frpluem# Include common rules.
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim#
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jiminclude $(UTSBASE)/sun4u/Makefile.sun4u
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim#
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covener# Define targets
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covener#
d64dd2fd4516c2b1b664c5e59c0628d9aff26984covenerALL_TARGET = $(BINARY)
ed0d39878e79220baaa50c15b79b1fdf877cb919niqLINT_TARGET = $(MODULE).lint
1e911973bcb9df6701a4c16c037771ecf25ade13niqINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
1e911973bcb9df6701a4c16c037771ecf25ade13niq
1e911973bcb9df6701a4c16c037771ecf25ade13niq#
1e911973bcb9df6701a4c16c037771ecf25ade13niq# Linkage dependencies
1e911973bcb9df6701a4c16c037771ecf25ade13niq#
1e911973bcb9df6701a4c16c037771ecf25ade13niqLDFLAGS += -dy -Nmisc/kcf
a55905a382027bdcc3a29248db4176527d36aa9ajim
a55905a382027bdcc3a29248db4176527d36aa9ajim#
a55905a382027bdcc3a29248db4176527d36aa9ajim# lint pass one enforcement
a55905a382027bdcc3a29248db4176527d36aa9ajim#
5fbd1e97905738791e7359ccbc9b02e913948d2erpluemCFLAGS += $(CCVERBOSE) -I$(COM_DIR)
5fbd1e97905738791e7359ccbc9b02e913948d2erpluemCFLAGS += -DVIS_SHA1
5fbd1e97905738791e7359ccbc9b02e913948d2erpluemLINTFLAGS += -I$(COM_DIR)
5fbd1e97905738791e7359ccbc9b02e913948d2erpluem
ca33b922ae8ad1b24a8235b656b0ac6f82915355jimCERRWARN += -_gcc=-Wno-uninitialized
e74519466f1905e7a1b3d34396fbb82717153c90jim
e74519466f1905e7a1b3d34396fbb82717153c90jim#
e74519466f1905e7a1b3d34396fbb82717153c90jim# Default build targets.
ca33b922ae8ad1b24a8235b656b0ac6f82915355jim#
ca33b922ae8ad1b24a8235b656b0ac6f82915355jim.KEEP_STATE:
b842b65e0618c5535233b197f03dc917d184adb3jim
b842b65e0618c5535233b197f03dc917d184adb3jimdef: $(DEF_DEPS)
b842b65e0618c5535233b197f03dc917d184adb3jim
b842b65e0618c5535233b197f03dc917d184adb3jimall: $(ALL_DEPS)
e47d58d5d983426584c8d16416c50f5c58070746dirkx
e47d58d5d983426584c8d16416c50f5c58070746dirkxclean: $(CLEAN_DEPS)
e47d58d5d983426584c8d16416c50f5c58070746dirkx
e47d58d5d983426584c8d16416c50f5c58070746dirkxclobber: $(CLOBBER_DEPS)
33aad3911b15cb5d523075f7df829274fe298a13dirkx
33aad3911b15cb5d523075f7df829274fe298a13dirkxlint: $(LINT_DEPS)
76f68128bb8fcea0f772d522c05dc7ec872040c2dirkx
33aad3911b15cb5d523075f7df829274fe298a13dirkxmodlintlib: $(MODLINTLIB_DEPS)
433dcb1fbaae82d36634f5120bff71a04296904ddirkx
433dcb1fbaae82d36634f5120bff71a04296904ddirkxclean.lint: $(CLEAN_LINT_DEPS)
433dcb1fbaae82d36634f5120bff71a04296904ddirkx
433dcb1fbaae82d36634f5120bff71a04296904ddirkxinstall: $(INSTALL_DEPS)
433dcb1fbaae82d36634f5120bff71a04296904ddirkx
433dcb1fbaae82d36634f5120bff71a04296904ddirkx$(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE)
46a47c67296c52323632d5ae9d7c86bf87027a5frpluem -$(RM) $@; ln $(ROOTMODULE) $@
46a47c67296c52323632d5ae9d7c86bf87027a5frpluem
46a47c67296c52323632d5ae9d7c86bf87027a5frpluem#
edb2ad8387e30473e5be09714189441ef94d7f29rpluem# Include common targets.
edb2ad8387e30473e5be09714189441ef94d7f29rpluem#
edb2ad8387e30473e5be09714189441ef94d7f29rplueminclude $(UTSBASE)/sun4u/Makefile.targ
edb2ad8387e30473e5be09714189441ef94d7f29rpluem