Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
246N/A#
246N/A# CDDL HEADER START
246N/A#
246N/A# The contents of this file are subject to the terms of the
246N/A# Common Development and Distribution License (the "License").
246N/A# You may not use this file except in compliance with the License.
246N/A#
246N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246N/A# or http://www.opensolaris.org/os/licensing.
246N/A# See the License for the specific language governing permissions
246N/A# and limitations under the License.
246N/A#
246N/A# When distributing Covered Code, include this CDDL HEADER in each
246N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
246N/A# If applicable, add the following below this CDDL HEADER, with the
246N/A# fields enclosed by brackets "[]" replaced with your own identifying
246N/A# information: Portions Copyright [yyyy] [name of copyright owner]
246N/A#
246N/A# CDDL HEADER END
246N/A#
246N/A#
246N/A# uts/intel/rpcmod/Makefile
246N/A#
246N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
246N/A# Use is subject to license terms.
649N/A#
618N/A
246N/A#
246N/A# This makefile drives the production of the rpcmod streams kernel
246N/A# module.
649N/A#
246N/A# intel architecture dependent
246N/A#
246N/A
246N/A#
246N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
246N/A#
246N/AUTSBASE = ../..
246N/A
246N/A#
246N/A# Define the module and object file sets.
246N/A#
246N/AMODULE = rpcmod
246N/AOBJECTS = $(RPCMOD_OBJS:%=$(OBJS_DIR)/%)
246N/ALINTS = $(RPCMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
246N/AROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
246N/AROOTLINK = $(ROOT_SYS_DIR)/$(MODULE)
246N/A
246N/A#
246N/A# Include common rules.
246N/A#
246N/Ainclude $(UTSBASE)/intel/Makefile.intel
246N/A
246N/A#
246N/A# Define targets
246N/A#
246N/AALL_TARGET = $(BINARY)
246N/ALINT_TARGET = $(MODULE).lint
246N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
#
# Overrides.
#
MODSTUBS_DIR = $(OBJS_DIR)
$(MODSTUBS_O) := AS_CPPFLAGS += -DRPCMOD_MODULE
CLEANFILES += $(MODSTUBS_O)
#
# depends_on
#
LDFLAGS += -dy -Nmisc/tlimod
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-unused-label
CERRWARN += -_gcc=-Wno-unused-function
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
$(ROOTLINK): $(ROOT_SYS_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ