1554ff184Skais# 2554ff184Skais# CDDL HEADER START 3554ff184Skais# 4554ff184Skais# The contents of this file are subject to the terms of the 5734b6a94Sdarrenm# Common Development and Distribution License (the "License"). 6734b6a94Sdarrenm# You may not use this file except in compliance with the License. 7554ff184Skais# 8554ff184Skais# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9554ff184Skais# or http://www.opensolaris.org/os/licensing. 10554ff184Skais# See the License for the specific language governing permissions 11554ff184Skais# and limitations under the License. 12554ff184Skais# 13554ff184Skais# When distributing Covered Code, include this CDDL HEADER in each 14554ff184Skais# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15554ff184Skais# If applicable, add the following below this CDDL HEADER, with the 16554ff184Skais# fields enclosed by brackets "[]" replaced with your own identifying 17554ff184Skais# information: Portions Copyright [yyyy] [name of copyright owner] 18554ff184Skais# 19554ff184Skais# CDDL HEADER END 20554ff184Skais# 21554ff184Skais# 22554ff184Skais# uts/sun4v/md5/Makefile 23554ff184Skais# 24734b6a94Sdarrenm# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25554ff184Skais# Use is subject to license terms. 26554ff184Skais# 27554ff184Skais#ident "%Z%%M% %I% %E% SMI" 28554ff184Skais# 29554ff184Skais# This makefile drives the production of the MD5 kernel module. 30554ff184Skais# 31554ff184Skais# sun4v implementation architecture dependent 32554ff184Skais# 33554ff184Skais 34554ff184Skais# 35554ff184Skais# Path to the base of the uts directory tree (usually /usr/src/uts). 36554ff184Skais# 37554ff184SkaisUTSBASE = ../.. 38554ff184Skais 39554ff184Skais# 40554ff184Skais# Define the module and object file sets. 41554ff184Skais# 42554ff184SkaisMODULE = md5 43554ff184SkaisOBJECTS = $(MD5_OBJS:%=$(OBJS_DIR)/%) 44554ff184SkaisLINTS = $(MD5_OBJS:%.o=$(LINTS_DIR)/%.ln) 45554ff184SkaisROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) 46554ff184SkaisROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE) 47554ff184Skais 48554ff184Skais# 49554ff184Skais# Include common rules. 50554ff184Skais# 51554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.sun4v 52554ff184Skais 53554ff184Skais# 54554ff184Skais# Define targets 55554ff184Skais# 56554ff184SkaisALL_TARGET = $(BINARY) 57554ff184SkaisLINT_TARGET = $(MODULE).lint 58554ff184SkaisINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 59554ff184Skais 60554ff184Skais# 61554ff184Skais# lint pass one enforcement 62554ff184Skais# 63554ff184SkaisCFLAGS += $(CCVERBOSE) 64554ff184Skais 65554ff184Skais# 66554ff184Skais# Override the default -xspace setting 67554ff184Skais# 68*ac204d0dSpetedesparc_SPACEFLAG = -W0,-Lt 69554ff184Skais 70554ff184Skais# 71554ff184Skais# md5 depends on the kcf framework 72554ff184Skais# 73554ff184SkaisLDFLAGS += -dy -Nmisc/kcf 74554ff184Skais 75554ff184Skais# 76554ff184Skais# need extra inline file for here. 77554ff184Skais# 78554ff184SkaisINLINES += $(SRC)/common/crypto/md5/sparc/sun4v/byteswap.il 79554ff184Skais 80554ff184Skais# 81554ff184Skais# Default build targets. 82554ff184Skais# 83554ff184Skais.KEEP_STATE: 84554ff184Skais 85554ff184Skaisdef: $(DEF_DEPS) 86554ff184Skais 87554ff184Skaisall: $(ALL_DEPS) 88554ff184Skais 89554ff184Skaisclean: $(CLEAN_DEPS) 90554ff184Skais 91554ff184Skaisclobber: $(CLOBBER_DEPS) 92554ff184Skais 93554ff184Skaislint: $(LINT_DEPS) 94554ff184Skais 95554ff184Skaismodlintlib: $(MODLINTLIB_DEPS) 96554ff184Skais 97554ff184Skaisclean.lint: $(CLEAN_LINT_DEPS) 98554ff184Skais 99554ff184Skaisinstall: $(INSTALL_DEPS) 100554ff184Skais 101554ff184Skais$(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE) 102554ff184Skais -$(RM) $@; ln $(ROOTMODULE) $@ 103554ff184Skais 104554ff184Skais# 105554ff184Skais# Include common targets. 106554ff184Skais# 107554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.targ 108