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