Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami# uts/sparc/px_pci/Makefile
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Use is subject to license terms.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#ident "%Z%%M% %I% %E% SMI"
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# This makefile drives the production of the px_pci driver kernel module
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# sparc implementation architecture dependent
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Path to the base of the uts directory tree (usually /usr/src/uts).
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiUTSBASE = ../..
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami# Define the module and object file sets.
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
f808c858fa61e7769218966759510a8b1190dfcfrafMODULE = px_pci
f808c858fa61e7769218966759510a8b1190dfcfrafOBJECTS = $(PX_PCI_OBJS:%=$(OBJS_DIR)/%)
f808c858fa61e7769218966759510a8b1190dfcfrafLINTS = $(PX_PCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
f808c858fa61e7769218966759510a8b1190dfcfrafROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include common rules.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(UTSBASE)/sparc/Makefile.sparc
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Define targets
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafALL_TARGET = $(BINARY)
f808c858fa61e7769218966759510a8b1190dfcfrafLINT_TARGET = $(MODULE).lint
f808c858fa61e7769218966759510a8b1190dfcfrafINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include sun4 specific headers files
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafINC_PATH += -I$(UTSBASE)/sun4
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# lint pass one enforcement
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafCFLAGS += $(CCVERBOSE)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Turn on doubleword alignment for 64 bit registers
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh#
f808c858fa61e7769218966759510a8b1190dfcfrafCFLAGS += -dalign
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Dependency
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafLDFLAGS += -dy -Nmisc/pcie -Nmisc/pcishpc -Nmisc/pcihp -Nmisc/pciehpc
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# For now, disable these lint checks; maintainers should endeavor
f808c858fa61e7769218966759510a8b1190dfcfraf# to investigate and remove these for maximum lint coverage.
f808c858fa61e7769218966759510a8b1190dfcfraf# Please do not carry these forward to new Makefiles.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfrafLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
f808c858fa61e7769218966759510a8b1190dfcfrafLINTTAGS += -erroff=E_STATIC_UNUSED
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Default build targets.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf.KEEP_STATE:
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafdef: $(DEF_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafall: $(ALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean: $(CLEAN_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclobber: $(CLOBBER_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraflint: $(LINT_DEPS)
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh
f808c858fa61e7769218966759510a8b1190dfcfrafmodlintlib: $(MODLINTLIB_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafclean.lint: $(CLEAN_LINT_DEPS)
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintoshinstall: $(INSTALL_DEPS)
1f6eb0216cb17ca5fdff9563329f1dda47c8b801Liane Praza
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include common targets.
cb174861876aea6950a7ab4ce944aff84b1914cdjoyce mcintosh#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude $(UTSBASE)/sparc/Makefile.targ
f808c858fa61e7769218966759510a8b1190dfcfraf