1c5c4113dSnw141292# 2c5c4113dSnw141292# CDDL HEADER START 3c5c4113dSnw141292# 4c5c4113dSnw141292# The contents of this file are subject to the terms of the 5c5c4113dSnw141292# Common Development and Distribution License (the "License"). 6c5c4113dSnw141292# You may not use this file except in compliance with the License. 7c5c4113dSnw141292# 8c5c4113dSnw141292# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c5c4113dSnw141292# or http://www.opensolaris.org/os/licensing. 10c5c4113dSnw141292# See the License for the specific language governing permissions 11c5c4113dSnw141292# and limitations under the License. 12c5c4113dSnw141292# 13c5c4113dSnw141292# When distributing Covered Code, include this CDDL HEADER in each 14c5c4113dSnw141292# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c5c4113dSnw141292# If applicable, add the following below this CDDL HEADER, with the 16c5c4113dSnw141292# fields enclosed by brackets "[]" replaced with your own identifying 17c5c4113dSnw141292# information: Portions Copyright [yyyy] [name of copyright owner] 18c5c4113dSnw141292# 19c5c4113dSnw141292# CDDL HEADER END 20c5c4113dSnw141292# 21c5c4113dSnw141292# 22*32ff2b3cSJulian Pullen# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23c5c4113dSnw141292# Use is subject to license terms. 24c5c4113dSnw141292# 25c5c4113dSnw141292# 26c5c4113dSnw141292# This makefile drives the production of the idmap (Identity mapping between 27c5c4113dSnw141292# Solaris and Windows) kernel module. 28c5c4113dSnw141292# 29c5c4113dSnw141292# Intel implementation architecture dependent 30c5c4113dSnw141292# 31c5c4113dSnw141292 32c5c4113dSnw141292# 33c5c4113dSnw141292# Path to the base of the uts directory tree (usually /usr/src/uts). 34c5c4113dSnw141292# 35c5c4113dSnw141292UTSBASE = ../.. 36c5c4113dSnw141292 37c5c4113dSnw141292# 38c5c4113dSnw141292# Define the module and object file sets. 39c5c4113dSnw141292# 40c5c4113dSnw141292MODULE = idmap 41c5c4113dSnw141292OBJECTS = $(IDMAP_OBJS:%=$(OBJS_DIR)/%) 42c5c4113dSnw141292LINTS = $(IDMAP_OBJS:%.o=$(LINTS_DIR)/%.ln) 43c5c4113dSnw141292ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 44c5c4113dSnw141292 45c5c4113dSnw141292# 46c5c4113dSnw141292# Include common rules. 47c5c4113dSnw141292# 48c5c4113dSnw141292include $(UTSBASE)/intel/Makefile.intel 49c5c4113dSnw141292 50c5c4113dSnw141292# 51c5c4113dSnw141292# Module dependencies 52c5c4113dSnw141292# 53c5c4113dSnw141292LDFLAGS += -dy -N"sys/doorfs" -N"strmod/rpcmod" 54c5c4113dSnw141292 55c5c4113dSnw141292# 56c5c4113dSnw141292# Include dependencies 57c5c4113dSnw141292# 58c5c4113dSnw141292INC_PATH += -I$(SRC)/head/rpcsvc 59c5c4113dSnw141292 60c5c4113dSnw141292# 61*32ff2b3cSJulian Pullen# Lint warnings turned off 62c5c4113dSnw141292# 63*32ff2b3cSJulian Pullen# Function variables unused for rpcgen-generated code 64*32ff2b3cSJulian Pullen# Constant conditions for do { } while (0) macros 65*32ff2b3cSJulian Pullen# 66*32ff2b3cSJulian PullenLINTTAGS += -erroff=E_FUNC_VAR_UNUSED -erroff=E_CONSTANT_CONDITION 67c5c4113dSnw141292 68c5c4113dSnw141292# 69c5c4113dSnw141292# Define targets 70c5c4113dSnw141292# 71c5c4113dSnw141292ALL_TARGET = $(BINARY) 72c5c4113dSnw141292LINT_TARGET = $(MODULE).lint 73c5c4113dSnw141292INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 74c5c4113dSnw141292CLEANFILES += $(MODSTUBS_O) 75c5c4113dSnw141292# 76c5c4113dSnw141292# Default build targets. 77c5c4113dSnw141292# 78c5c4113dSnw141292.KEEP_STATE: 79c5c4113dSnw141292 80c5c4113dSnw141292def: $(DEF_DEPS) 81c5c4113dSnw141292 82c5c4113dSnw141292all: $(ALL_DEPS) 83c5c4113dSnw141292 84c5c4113dSnw141292clean: $(CLEAN_DEPS) 85c5c4113dSnw141292 86c5c4113dSnw141292clobber: $(CLOBBER_DEPS) 87c5c4113dSnw141292 88c5c4113dSnw141292lint: $(LINT_DEPS) 89c5c4113dSnw141292 90c5c4113dSnw141292modlintlib: $(MODLINTLIB_DEPS) 91c5c4113dSnw141292 92c5c4113dSnw141292clean.lint: $(CLEAN_LINT_DEPS) 93c5c4113dSnw141292 94c5c4113dSnw141292install: $(INSTALL_DEPS) 95c5c4113dSnw141292 96c5c4113dSnw141292# 97c5c4113dSnw141292# Include common targets. 98c5c4113dSnw141292# 99c5c4113dSnw141292include $(UTSBASE)/intel/Makefile.targ 100