3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# CDDL HEADER START
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# The contents of this file are subject to the terms of the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Common Development and Distribution License (the "License").
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# You may not use this file except in compliance with the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# or http://www.opensolaris.org/os/licensing.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# See the License for the specific language governing permissions
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# and limitations under the License.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# When distributing Covered Code, include this CDDL HEADER in each
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# If applicable, add the following below this CDDL HEADER, with the
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# fields enclosed by brackets "[]" replaced with your own identifying
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# information: Portions Copyright [yyyy] [name of copyright owner]
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# CDDL HEADER END
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Use is subject to license terms.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# This makefile drives the production of the rmclomv driver kernel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# module in the sun4u systems
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Path to the base of the uts directory tree (usually /usr/src/uts).
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelUTSBASE = ../..
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define the module and object file sets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelMODULE = rmclomv
3db86aab554edbb4244c8d1a1c90f152eee768afstevelOBJECTS = $(RMCLOMV_OBJS:%=$(OBJS_DIR)/%)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINTS = $(RMCLOMV_OBJS:%.o=$(LINTS_DIR)/%.ln)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCONF_SRCDIR = $(UTSBASE)/sun4u/io
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common rules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define targets
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelALL_TARGET = $(BINARY) $(SRC_CONFILE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINT_TARGET = $(MODULE).lint
3db86aab554edbb4244c8d1a1c90f152eee768afstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# lint pass one enforcement
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCFLAGS += $(CCVERBOSE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Turn on doubleword alignment for 64 bit registers
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCFLAGS += -dalign
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# For now, disable these lint checks; maintainers should endeavor
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# to investigate and remove these for maximum lint coverage.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# Please do not carry these forward to new Makefiles.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg#
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Default build targets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel.KEEP_STATE:
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afsteveldef: $(DEF_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelall: $(ALL_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelclean: $(CLEAN_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelclobber: $(CLOBBER_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevellint: $(LINT_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelmodlintlib: $(MODLINTLIB_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelclean.lint: $(CLEAN_LINT_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinstall: $(INSTALL_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common targets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sun4u/Makefile.targ