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# 24*8de5c4f4SDan OpenSolaris Anderson# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25554ff184Skais# Use is subject to license terms. 26554ff184Skais# 27554ff184Skais# This makefile drives the production of the MD5 kernel module. 28554ff184Skais# 29554ff184Skais# sun4v implementation architecture dependent 30554ff184Skais# 31554ff184Skais 32554ff184Skais# 33554ff184Skais# Path to the base of the uts directory tree (usually /usr/src/uts). 34554ff184Skais# 35554ff184SkaisUTSBASE = ../.. 36554ff184Skais 37554ff184Skais# 38554ff184Skais# Define the module and object file sets. 39554ff184Skais# 40554ff184SkaisMODULE = md5 41554ff184SkaisOBJECTS = $(MD5_OBJS:%=$(OBJS_DIR)/%) 42554ff184SkaisLINTS = $(MD5_OBJS:%.o=$(LINTS_DIR)/%.ln) 43554ff184SkaisROOTMODULE = $(ROOT_PSM_CRYPTO_DIR)/$(MODULE) 44554ff184SkaisROOTLINK = $(ROOT_PSM_MISC_DIR)/$(MODULE) 45554ff184Skais 46554ff184Skais# 47554ff184Skais# Include common rules. 48554ff184Skais# 49554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.sun4v 50554ff184Skais 51554ff184Skais# 52554ff184Skais# Define targets 53554ff184Skais# 54554ff184SkaisALL_TARGET = $(BINARY) 55554ff184SkaisLINT_TARGET = $(MODULE).lint 56554ff184SkaisINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 57554ff184Skais 58554ff184Skais# 59554ff184Skais# lint pass one enforcement 60554ff184Skais# 61554ff184SkaisCFLAGS += $(CCVERBOSE) 62554ff184Skais 63554ff184Skais# 64554ff184Skais# Override the default -xspace setting 65554ff184Skais# 66ac204d0dSpetedesparc_SPACEFLAG = -W0,-Lt 67554ff184Skais 68554ff184Skais# 69554ff184Skais# md5 depends on the kcf framework 70554ff184Skais# 71554ff184SkaisLDFLAGS += -dy -Nmisc/kcf 72554ff184Skais 73554ff184Skais# 74554ff184Skais# need extra inline file for here. 75554ff184Skais# 76554ff184SkaisINLINES += $(SRC)/common/crypto/md5/sparc/sun4v/byteswap.il 77554ff184Skais 78554ff184Skais# 79554ff184Skais# Default build targets. 80554ff184Skais# 81554ff184Skais.KEEP_STATE: 82554ff184Skais 83554ff184Skaisdef: $(DEF_DEPS) 84554ff184Skais 85554ff184Skaisall: $(ALL_DEPS) 86554ff184Skais 87554ff184Skaisclean: $(CLEAN_DEPS) 88554ff184Skais 89554ff184Skaisclobber: $(CLOBBER_DEPS) 90554ff184Skais 91554ff184Skaislint: $(LINT_DEPS) 92554ff184Skais 93554ff184Skaismodlintlib: $(MODLINTLIB_DEPS) 94554ff184Skais 95554ff184Skaisclean.lint: $(CLEAN_LINT_DEPS) 96554ff184Skais 97554ff184Skaisinstall: $(INSTALL_DEPS) 98554ff184Skais 99554ff184Skais$(ROOTLINK): $(ROOT_PSM_MISC_DIR) $(ROOTMODULE) 100554ff184Skais -$(RM) $@; ln $(ROOTMODULE) $@ 101554ff184Skais 102554ff184Skais# 103554ff184Skais# Include common targets. 104554ff184Skais# 105554ff184Skaisinclude $(UTSBASE)/sun4v/Makefile.targ 106