Makefile revision d4bc0535efa2c2219e9f83246a5f371dc7f94273
1281N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
1281N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1105N/A# CDDL HEADER END
1186N/A#
0N/A#
1186N/A# uts/sparc/pcieb/Makefile
1186N/A#
1186N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1186N/A# Use is subject to license terms.
1186N/A#
1186N/A# This makefile drives the production of the pcieb driver kernel module
1281N/A#
1281N/A# sparc implementation architecture dependent
1186N/A#
1281N/A
1281N/A#
1281N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1281N/A#
1281N/AUTSBASE = ../..
1281N/A
1281N/A#
1281N/A# Define the module and object file sets.
1281N/A#
1281N/AMODULE = pcieb
1186N/AOBJECTS = $(PCIEB_OBJS:%=$(OBJS_DIR)/%)
1186N/ALINTS = $(PCIEB_OBJS:%.o=$(LINTS_DIR)/%.ln)
1186N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0N/ACONF_SRCDIR = $(UTSBASE)/common/io/pciex/
1186N/A
1186N/A#
1281N/A# Include common rules.
1281N/A#
1186N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1186N/A
1186N/A#
1281N/A# Define targets
1281N/A#
1281N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1186N/ALINT_TARGET = $(MODULE).lint
1186N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
1186N/A
1281N/A#
1281N/A# lint pass one enforcement
1281N/A#
1281N/ACFLAGS += $(CCVERBOSE)
1186N/A
0N/A#
1186N/A# Turn on doubleword alignment for 64 bit registers
1186N/A#
1281N/ACFLAGS += -dalign
1186N/A
1186N/A#
1186N/A# Enable PLX workaround code and lint duplicate symbol
# avoidance hack
#
CPPFLAGS += -DPX_PLX
#
# Dependency
#
LDFLAGS += -dy -Nmisc/pcie -Nmisc/pcishpc -Nmisc/pcihp -Nmisc/pciehpc
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_STATIC_UNUSED
#
# 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)/sparc/Makefile.targ