Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
13940N/A#
13940N/A# CDDL HEADER START
13940N/A#
13940N/A# The contents of this file are subject to the terms of the
13940N/A# Common Development and Distribution License (the "License").
13940N/A# You may not use this file except in compliance with the License.
13940N/A#
13940N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13940N/A# or http://www.opensolaris.org/os/licensing.
13940N/A# See the License for the specific language governing permissions
13940N/A# and limitations under the License.
13940N/A#
13940N/A# When distributing Covered Code, include this CDDL HEADER in each
13940N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13940N/A# If applicable, add the following below this CDDL HEADER, with the
13940N/A# fields enclosed by brackets "[]" replaced with your own identifying
13940N/A# information: Portions Copyright [yyyy] [name of copyright owner]
13940N/A#
13940N/A# CDDL HEADER END
13940N/A#
13940N/A
13940N/A#
13940N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
13940N/A# Use is subject to license terms.
13940N/A#
13940N/A
13940N/A#
13940N/A# This makefile drives the production of the PCI nexus driver
13940N/A#
13940N/A# i86xpv implementation architecture dependent
13940N/A#
13940N/A
13940N/A#
13940N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
13940N/A#
13940N/AUTSBASE = ../..
13940N/A
13940N/A#
13940N/A# Define the module and object file sets.
13940N/A#
13940N/AMODULE = pci
13940N/AOBJECTS = $(PCINEXUS_OBJS:%=$(OBJS_DIR)/%)
13940N/ALINTS = $(PCINEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/i86xpv/Makefile.i86xpv
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# depends on misc/pci_autoconfig misc/pcihp
#
LDFLAGS += -dy -Nmisc/pcihp
#
# Name of the module is needed by the source, to distinguish from other
# PCI/PCI-express nexi
#
CFLAGS += -D_MODULE_NAME="\"$(MODULE)\""
LINTFLAGS += -D_MODULE_NAME="\"$(MODULE)\""
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86xpv/Makefile.targ