Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You may not use this file except in compliance with the License.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
de20d36feff056be5fad86aad10eff6e3d7fb73cJames Brister# or http://www.opensolaris.org/os/licensing.
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# See the License for the specific language governing permissions
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# and limitations under the License.
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# When distributing Covered Code, include this CDDL HEADER in each
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# If applicable, add the following below this CDDL HEADER, with the
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# fields enclosed by brackets "[]" replaced with your own identifying
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# information: Portions Copyright [yyyy] [name of copyright owner]
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
de20d36feff056be5fad86aad10eff6e3d7fb73cJames Brister# CDDL HEADER END
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# uts/sparc/eri/Makefile
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#ident "%Z%%M% %I% %E% SMI"
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# Use is subject to license terms.
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister#
e03329a3878634cc75d94e5a69661fcbc4981e52James Brister# This makefile drives the production of the eri driver
# kernel module.
#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
MODULE = eri
OBJECTS = $(ERI_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(ERI_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides
#
ALL_BUILDS = $(ALL_BUILDSONLY64)
DEF_BUILDS = $(DEF_BUILDSONLY64)
CLEANLINTFILES += $(LINT32_FILES)
#
# Overrides.
#
CFLAGS += $(CCVERBOSE)
#
# 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_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_STATIC_UNUSED
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ