3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# CDDL HEADER START
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# The contents of this file are subject to the terms of the
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevel# Common Development and Distribution License (the "License").
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevel# 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#
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Use is subject to license terms.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# This makefile drives the production of the socal driver kernel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# module, which is used for the Photon/FC-AL product
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# sparc architecture dependent
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Path to the base of the uts directory tree (usually /usr/src/uts).
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevelUTSBASE = ../..
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define the module and object file sets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelMODULE = socal
3db86aab554edbb4244c8d1a1c90f152eee768afstevelOBJECTS = $(SOCAL_OBJS:%=$(OBJS_DIR)/%)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINTS = $(SOCAL_OBJS:%.o=$(LINTS_DIR)/%.ln)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common rules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevelinclude $(UTSBASE)/sparc/Makefile.sparc
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define targets
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelALL_TARGET = $(BINARY)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINT_TARGET = $(MODULE).lint
3db86aab554edbb4244c8d1a1c90f152eee768afstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Overrides
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCFLAGS += $(CCVERBOSE) -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_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Default build targets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel.KEEP_STATE:
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelall: $(ALL_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afsteveldef: $(DEF_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#
f344f3d40b0d318a7074e8be0d0c58fd44b676f9stevelinclude $(UTSBASE)/sparc/Makefile.targ
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelbrowser: $(BINARY)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelbrowser := CFLAGS += -xsb