Makefile revision ac204d0d8540b5aa1b97cb5de5984f6cb831c517
48c0c81cd6fabac9d3386406d97633780365b839coar#
75f8e1cae5ca3a16a7400cdddf604815ab06b5a8rederpj# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
9a93784d34c322d1996e8a7b794a75230eac81a4wrowe# You may not use this file except in compliance with the License.
c4250200511e2babcf76be6da64a7f101250ab37jwoolley#
4bc630d510cef730e37b9207e145267f473b4471striker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a096f8d13bee05fd6ea8b9b50b6c2e818eace7d1striker# or http://www.opensolaris.org/os/licensing.
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley# See the License for the specific language governing permissions
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley# and limitations under the License.
bf3d1782a29630335a1df535eb395355ab1cd154jwoolley#
07847078a10fe4e9229cc08adda5f421cafc0665jwoolley# When distributing Covered Code, include this CDDL HEADER in each
0bd0176ce9f4321eeb506aa372d0bcc84befbf4cstriker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d8028365066fca602bf35d014530a1802114378crbb# If applicable, add the following below this CDDL HEADER, with the
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# fields enclosed by brackets "[]" replaced with your own identifying
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe#
d89c116f82699294ca744125723651c554bc5925wrowe# CDDL HEADER END
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron#
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz#
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# uts/sun4v/md5/Makefile
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Use is subject to license terms.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb#
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley#ident "%Z%%M% %I% %E% SMI"
571760de5e60c0b459cb11be45507b923cd023eejwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley# This makefile drives the production of the MD5 kernel module.
9180a5933673ffb1af633c255ceee029340f3b1erbb#
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# sun4v implementation architecture dependent
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe#
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# Path to the base of the uts directory tree (usually /usr/src/uts).
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbbUTSBASE = ../..
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick#
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# Define the module and object file sets.
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb#
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawickMODULE = md5
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbbOBJECTS = $(MD5_OBJS:%=$(OBJS_DIR)/%)
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbLINTS = $(MD5_OBJS:%.o=$(LINTS_DIR)/%.ln)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE)
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# Include common rules.
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveinclude $(UTSBASE)/sun4v/Makefile.sun4v
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# Define targets
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweALL_TARGET = $(BINARY)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweLINT_TARGET = $(MODULE).lint
10270f6f94b2069d0d357805c140a9897449b9ccianhINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
4b62424416882687387923b3130b96241503cbe0jerenkrantz
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz#
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz# lint pass one enforcement
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard#
dbec4658981e4f9127e8676457c28d42932be7cdtrawickCFLAGS += $(CCVERBOSE)
1b7e9aeb9867a1c94e24e8ae491d2dfcd0d225e3jerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Override the default -xspace setting
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
5c9a6bc911baa7cef34d64de59af1e8d6e09c13abrianpsparc_SPACEFLAG = -W0,-Lt
5c9a6bc911baa7cef34d64de59af1e8d6e09c13abrianp
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
bb2b4c21329be5f70a7b0b42c59cd8490d2ac43bwrowe# md5 depends on the kcf framework
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpj#
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLDFLAGS += -dy -Nmisc/kcf
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe# need extra inline file for here.
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
4520f2a938626a879b33dac9fd940072b6c2bd42wroweINLINES += $(SRC)/common/crypto/md5/sparc/sun4v/byteswap.il
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpj
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpj#
941cb476bf470040d0a33c397eb85c68d9d82d4djerenkrantz# Default build targets.
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe.KEEP_STATE:
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowedef: $(DEF_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wroweall: $(ALL_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wroweclean: $(CLEAN_DEPS)
53573272227ec7c6a2bb9631934aea6c9dd1469egregames
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpjclobber: $(CLOBBER_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowelint: $(LINT_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowemodlintlib: $(MODLINTLIB_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
53573272227ec7c6a2bb9631934aea6c9dd1469egregamesclean.lint: $(CLEAN_LINT_DEPS)
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpj
4520f2a938626a879b33dac9fd940072b6c2bd42wroweinstall: $(INSTALL_DEPS)
941cb476bf470040d0a33c397eb85c68d9d82d4djerenkrantz
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe$(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe -$(RM) $@; ln $(ROOTMODULE) $@
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick#
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick# Include common targets.
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick#
574c4f095a6e4c5a9b51877c284527aa8bac1a59jwoolleyinclude $(UTSBASE)/sun4v/Makefile.targ
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe