Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# CDDL HEADER START
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# The contents of this file are subject to the terms of the
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Common Development and Distribution License (the "License").
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# You may not use this file except in compliance with the License.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# or http://www.opensolaris.org/os/licensing.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# See the License for the specific language governing permissions
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# and limitations under the License.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# When distributing Covered Code, include this CDDL HEADER in each
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# If applicable, add the following below this CDDL HEADER, with the
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# CDDL HEADER END
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# uts/intel/pcicfg/Makefile
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Use is subject to license terms.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#ident "%Z%%M% %I% %E% SMI"
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# This makefile drives the production of the kernel/misc/pcicfg module
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# (PCI configurator module) for PCI hotplug support in PCI nexus
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# drivers.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# intel implementation architecture dependent
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncUTSBASE = ../..
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Define the module and object file sets.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncMODULE = pcicfg
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncOBJECTS = $(PCICFG_OBJS:%=$(OBJS_DIR)/%)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINTS = $(PCICFG_OBJS:%.o=$(LINTS_DIR)/%.ln)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Include common rules.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncinclude $(UTSBASE)/intel/Makefile.intel
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Define targets
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncALL_TARGET = $(BINARY)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINT_TARGET = $(MODULE).lint
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Override defaults to build a unique, local modstubs.o.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncMODSTUBS_DIR = $(OBJS_DIR)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync$(MODSTUBS_O) := AS_CPPFLAGS += -DPCICFG_MODULE
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncCLEANFILES += $(MODSTUBS_O)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Dependency
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLDFLAGS += -dy -Nmisc/busra
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# For now, disable these lint checks; maintainers should endeavor
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# to investigate and remove these for maximum lint coverage.
c04472d7ec89d8a8806f367048d5e3d451508e61vboxsync# Please do not carry these forward to new Makefiles.
c04472d7ec89d8a8806f367048d5e3d451508e61vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINTTAGS += -erroff=E_STATIC_UNUSED
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Default build targets.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync.KEEP_STATE:
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncdef: $(DEF_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncall: $(ALL_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncclean: $(CLEAN_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncclobber: $(CLOBBER_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsynclint: $(LINT_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncmodlintlib: $(MODLINTLIB_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncinstall: $(INSTALL_DEPS)
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync# Include common targets.
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync#
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsyncinclude $(UTSBASE)/intel/Makefile.targ
f0b06b8e4de2a0d9ddb10ac0a30d68fafd73d8c1vboxsync