Makefile revision c5c4113dfcabb1eed3d4bdf7609de5170027a794
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER START
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# The contents of this file are subject to the terms of the
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Common Development and Distribution License (the "License").
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# You may not use this file except in compliance with the License.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# or http://www.opensolaris.org/os/licensing.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# See the License for the specific language governing permissions
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# and limitations under the License.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# When distributing Covered Code, include this CDDL HEADER in each
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# If applicable, add the following below this CDDL HEADER, with the
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# CDDL HEADER END
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Use is subject to license terms.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync#pragma ident "%Z%%M% %I% %E% SMI"
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync#
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync# This makefile drives the production of the idmap (Identity mapping between
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync# Solaris and Windows) kernel module.
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync#
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync# Intel implementation architecture dependent
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync#
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync
4237d5a79f48789aacc67dc43378d2d7813a39f4vboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncUTSBASE = ../..
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Define the module and object file sets.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncMODULE = idmap
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncOBJECTS = $(IDMAP_OBJS:%=$(OBJS_DIR)/%)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncLINTS = $(IDMAP_OBJS:%.o=$(LINTS_DIR)/%.ln)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Include common rules.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinclude $(UTSBASE)/intel/Makefile.intel
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Module dependencies
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncLDFLAGS += -dy -N"sys/doorfs" -N"strmod/rpcmod"
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Include dependencies
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncINC_PATH += -I$(SRC)/head/rpcsvc
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Lint warnings turned off (for rpcgen-generated code)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncLINTFLAGS += -erroff=E_FUNC_VAR_UNUSED
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Define targets
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncALL_TARGET = $(BINARY)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncLINT_TARGET = $(MODULE).lint
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncCLEANFILES += $(MODSTUBS_O)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Default build targets.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync.KEEP_STATE:
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncdef: $(DEF_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncall: $(ALL_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclean: $(CLEAN_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclobber: $(CLOBBER_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsynclint: $(LINT_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncmodlintlib: $(MODLINTLIB_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncclean.lint: $(CLEAN_LINT_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinstall: $(INSTALL_DEPS)
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync# Include common targets.
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync#
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsyncinclude $(UTSBASE)/intel/Makefile.targ
058c0c53c37f5cb271aeb3c385c10766f84f4aefvboxsync