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#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# This makefile drives the production of the PCIC driver kernel module.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# sparc architecture dependent
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 = pcic
3db86aab554edbb4244c8d1a1c90f152eee768afstevelOBJECTS = $(PCIC_OBJS:%=$(OBJS_DIR)/%)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINTS = $(PCIC_OBJS:%.o=$(LINTS_DIR)/%.ln)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCONF_SRCDIR = $(UTSBASE)/common/io
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common rules.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sparc/Makefile.sparc
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Define targets
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelALL_TARGET = $(BINARY) $(SRC_CONFILE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLINT_TARGET = $(MODULE).lint
3db86aab554edbb4244c8d1a1c90f152eee768afstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include sun4u specific header files
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelINC_PATH += -I$(UTSBASE)/sun4u
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Overrides
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelDEF_BUILDS = $(DEF_BUILDS64)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelALL_BUILDS = $(ALL_BUILDS64)
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCLEANLINTFILES += $(LINT64_FILES)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# lint pass one enforcement
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelCFLAGS += $(CCVERBOSE)
0d282d1376eb7ba06504448622a6d65726e4bd3erwCPPFLAGS += -DCARDBUS -DHOTPLUG
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# dependency
3db86aab554edbb4244c8d1a1c90f152eee768afstevelLDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
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_ASSIGN_NARROW_CONV
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_STATIC_UNUSED
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg
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) lint64
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelclean.lint: $(CLEAN_LINT_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinstall: $(INSTALL_DEPS)
3db86aab554edbb4244c8d1a1c90f152eee768afstevel
3db86aab554edbb4244c8d1a1c90f152eee768afstevel# Include common targets.
3db86aab554edbb4244c8d1a1c90f152eee768afstevel#
3db86aab554edbb4244c8d1a1c90f152eee768afstevelinclude $(UTSBASE)/sparc/Makefile.targ