Makefile revision 269473047d747f7815af570197e4ef7322d3632c
1494N/A#
1494N/A# CDDL HEADER START
1494N/A#
1494N/A# The contents of this file are subject to the terms of the
1494N/A# Common Development and Distribution License (the "License").
1494N/A# You may not use this file except in compliance with the License.
1494N/A#
1494N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1494N/A# or http://www.opensolaris.org/os/licensing.
1494N/A# See the License for the specific language governing permissions
1494N/A# and limitations under the License.
1494N/A#
1494N/A# When distributing Covered Code, include this CDDL HEADER in each
1494N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1494N/A# If applicable, add the following below this CDDL HEADER, with the
1494N/A# fields enclosed by brackets "[]" replaced with your own identifying
1494N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1494N/A#
1494N/A# CDDL HEADER END
1494N/A#
1494N/A#
1494N/A# uts/intel/pcicfg/Makefile
1494N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1494N/A# Use is subject to license terms.
1494N/A#
1494N/A# This makefile drives the production of the kernel/misc/pcicfg module
1494N/A# (PCI configurator module) for PCI hotplug support in PCI nexus
1494N/A# drivers.
1494N/A#
1494N/A# intel implementation architecture dependent
1494N/A#
1494N/A
1494N/A#
1494N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1494N/A#
1494N/AUTSBASE = ../..
1494N/A
1494N/A#
1494N/A# Define the module and object file sets.
1494N/A#
1494N/AMODULE = pcicfg
1494N/AOBJECTS = $(PCICFG_OBJS:%=$(OBJS_DIR)/%)
1494N/ALINTS = $(PCICFG_OBJS:%.o=$(LINTS_DIR)/%.ln)
1494N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
1494N/A
1494N/A#
1494N/A# Include common rules.
1494N/A#
1494N/Ainclude $(UTSBASE)/intel/Makefile.intel
1494N/A
1494N/A#
1494N/A# Define targets
1494N/A#
1494N/AALL_TARGET = $(BINARY)
1494N/ALINT_TARGET = $(MODULE).lint
1494N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1494N/A
1494N/A#
1494N/A# Override defaults to build a unique, local modstubs.o.
1494N/A#
1494N/AMODSTUBS_DIR = $(OBJS_DIR)
1494N/A$(MODSTUBS_O) := AS_CPPFLAGS += -DPCICFG_MODULE
1494N/ACLEANFILES += $(MODSTUBS_O)
1494N/A
1494N/A#
1494N/A# Dependency
1494N/A#
1494N/ALDFLAGS += -dy -Nmisc/busra -Nmisc/pcie
1494N/A
1494N/A#
1494N/A# For now, disable these lint checks; maintainers should endeavor
1494N/A# to investigate and remove these for maximum lint coverage.
1494N/A# Please do not carry these forward to new Makefiles.
1494N/A#
1494N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
1494N/ALINTTAGS += -erroff=E_STATIC_UNUSED
1494N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
1494N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
1494N/A
1494N/A#
1494N/A# Default build targets.
1494N/A#
1494N/A.KEEP_STATE:
1494N/A
1494N/Adef: $(DEF_DEPS)
1494N/A
1494N/Aall: $(ALL_DEPS)
1494N/A
1494N/Aclean: $(CLEAN_DEPS)
1494N/A
1494N/Aclobber: $(CLOBBER_DEPS)
1494N/A
1494N/Alint: $(LINT_DEPS)
1494N/A
1494N/Amodlintlib: $(MODLINTLIB_DEPS)
1494N/A
1494N/Aclean.lint: $(CLEAN_LINT_DEPS)
1494N/A
1494N/Ainstall: $(INSTALL_DEPS)
1494N/A
1494N/A#
1494N/A# Include common targets.
1494N/A#
1494N/Ainclude $(UTSBASE)/intel/Makefile.targ
1494N/A