Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User# CDDL HEADER START
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# The contents of this file are subject to the terms of the
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Common Development and Distribution License (the "License").
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# You may not use this file except in compliance with the License.
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# or http://www.opensolaris.org/os/licensing.
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User# See the License for the specific language governing permissions
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# and limitations under the License.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
d2bdd5b314d3ee2250c740fe5fff8b91ab3731b2Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# CDDL HEADER END
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# uts/sparc/eri/Makefile
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#ident "%Z%%M% %I% %E% SMI"
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Use is subject to license terms.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# This makefile drives the production of the eri driver
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# kernel module.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserUTSBASE = ../..
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Define the module and object file sets.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserMODULE = eri
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserOBJECTS = $(ERI_OBJS:%=$(OBJS_DIR)/%)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserLINTS = $(ERI_OBJS:%.o=$(LINTS_DIR)/%.ln)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Include common rules.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinclude $(UTSBASE)/sparc/Makefile.sparc
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Define targets
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsALL_TARGET = $(BINARY)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserLINT_TARGET = $(MODULE).lint
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Overrides
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserALL_BUILDS = $(ALL_BUILDSONLY64)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserDEF_BUILDS = $(DEF_BUILDSONLY64)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCLEANLINTFILES += $(LINT32_FILES)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Overrides.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCFLAGS += $(CCVERBOSE)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# For now, disable these lint checks; maintainers should endeavor
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# to investigate and remove these for maximum lint coverage.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Please do not carry these forward to new Makefiles.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTTAGS += -erroff=E_STATIC_UNUSED
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Default build targets.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews.KEEP_STATE:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsdef: $(DEF_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsall: $(ALL_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsclean: $(CLEAN_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsclobber: $(CLOBBER_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userlint: $(LINT_DEPS)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS) lint32
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsinstall: $(INSTALL_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Include common targets.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinclude $(UTSBASE)/sparc/Makefile.targ
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews