3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# CDDL HEADER START
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# The contents of this file are subject to the terms of the
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Common Development and Distribution License (the "License").
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# You may not use this file except in compliance with the License.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# or http://www.opensolaris.org/os/licensing.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# See the License for the specific language governing permissions
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# and limitations under the License.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# When distributing Covered Code, include this CDDL HEADER in each
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# If applicable, add the following below this CDDL HEADER, with the
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# fields enclosed by brackets "[]" replaced with your own identifying
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# information: Portions Copyright [yyyy] [name of copyright owner]
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# CDDL HEADER END
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# uts/sun4u/sf/Makefile
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Use is subject to license terms.
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# This makefile drives the production of the sf driver kernel module.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# sun4u architecture dependent
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Path to the base of the uts directory tree (usually /usr/src/uts).
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelUTSBASE = ../..
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Define the module and object file sets.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelMODULE = sf
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelOBJECTS = $(SF_OBJS:%=$(OBJS_DIR)/%)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelLINTS = $(SF_OBJS:%.o=$(LINTS_DIR)/%.ln)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelCONF_SRCDIR = $(UTSBASE)/sun/io/scsi/adapters
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Include common rules.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelinclude $(UTSBASE)/sun4u/Makefile.sun4u
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Define targets
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelALL_TARGET = $(BINARY) $(SRC_CONFFILE)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelLINT_TARGET = $(MODULE).lint
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Overrides
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelCFLAGS += $(CCVERBOSE)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# Define dependency on scsi
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard BellLDFLAGS += -dy -N misc/scsi
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell
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_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-value
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Default build targets.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel.KEEP_STATE:
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8steveldef: $(DEF_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelall: $(ALL_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelclean: $(CLEAN_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelclobber: $(CLOBBER_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevellint: $(LINT_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelmodlintlib: $(MODLINTLIB_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelclean.lint: $(CLEAN_LINT_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelinstall: $(INSTALL_DEPS)
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel# Include common targets.
3d19cdae966d9ac4218dd9859640463bd7da19d8stevel#
3d19cdae966d9ac4218dd9859640463bd7da19d8stevelinclude $(UTSBASE)/sun4u/Makefile.targ