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# 229b214d32SJordan Brown# Copyright 2009 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# 5632ff2b3cSJulian Pullen# Lint warnings turned off 57c5c4113dSnw141292# 5832ff2b3cSJulian Pullen# Function variables unused for rpcgen-generated code 5932ff2b3cSJulian Pullen# Constant conditions for do { } while (0) macros 6032ff2b3cSJulian Pullen# 6132ff2b3cSJulian PullenLINTTAGS += -erroff=E_FUNC_VAR_UNUSED -erroff=E_CONSTANT_CONDITION 62c5c4113dSnw141292 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 64*7014882cSRichard Lowe 65c5c4113dSnw141292# 66c5c4113dSnw141292# Define targets 67c5c4113dSnw141292# 68c5c4113dSnw141292ALL_TARGET = $(BINARY) 69c5c4113dSnw141292LINT_TARGET = $(MODULE).lint 70c5c4113dSnw141292INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 71c5c4113dSnw141292CLEANFILES += $(MODSTUBS_O) 72c5c4113dSnw141292# 73c5c4113dSnw141292# Default build targets. 74c5c4113dSnw141292# 75c5c4113dSnw141292.KEEP_STATE: 76c5c4113dSnw141292 77c5c4113dSnw141292def: $(DEF_DEPS) 78c5c4113dSnw141292 79c5c4113dSnw141292all: $(ALL_DEPS) 80c5c4113dSnw141292 81c5c4113dSnw141292clean: $(CLEAN_DEPS) 82c5c4113dSnw141292 83c5c4113dSnw141292clobber: $(CLOBBER_DEPS) 84c5c4113dSnw141292 85c5c4113dSnw141292lint: $(LINT_DEPS) 86c5c4113dSnw141292 87c5c4113dSnw141292modlintlib: $(MODLINTLIB_DEPS) 88c5c4113dSnw141292 89c5c4113dSnw141292clean.lint: $(CLEAN_LINT_DEPS) 90c5c4113dSnw141292 91c5c4113dSnw141292install: $(INSTALL_DEPS) 92c5c4113dSnw141292 93c5c4113dSnw141292# 94c5c4113dSnw141292# Include common targets. 95c5c4113dSnw141292# 96c5c4113dSnw141292include $(UTSBASE)/intel/Makefile.targ 97