Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# CDDL HEADER START
2ebfcf72203f94f579931a9cfe6658a65ca5027daurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# The contents of this file are subject to the terms of the
4e10d188042815c5285edf00ea96896b862e0863aurium# Common Development and Distribution License (the "License").
4e10d188042815c5285edf00ea96896b862e0863aurium# You may not use this file except in compliance with the License.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e10d188042815c5285edf00ea96896b862e0863aurium# or http://www.opensolaris.org/os/licensing.
4e10d188042815c5285edf00ea96896b862e0863aurium# See the License for the specific language governing permissions
4e10d188042815c5285edf00ea96896b862e0863aurium# and limitations under the License.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# When distributing Covered Code, include this CDDL HEADER in each
4e10d188042815c5285edf00ea96896b862e0863aurium# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e10d188042815c5285edf00ea96896b862e0863aurium# If applicable, add the following below this CDDL HEADER, with the
4e10d188042815c5285edf00ea96896b862e0863aurium# fields enclosed by brackets "[]" replaced with your own identifying
4e10d188042815c5285edf00ea96896b862e0863aurium# information: Portions Copyright [yyyy] [name of copyright owner]
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# CDDL HEADER END
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# uts/sparc/pcieb/Makefile
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4e10d188042815c5285edf00ea96896b862e0863aurium# Use is subject to license terms.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# This makefile drives the production of the pcieb driver kernel module
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# sparc implementation architecture dependent
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# Path to the base of the uts directory tree (usually /usr/src/uts).
905e42f96548e175ead68243a632f06b19285e1faurium#
905e42f96548e175ead68243a632f06b19285e1fauriumUTSBASE = ../..
905e42f96548e175ead68243a632f06b19285e1faurium
905e42f96548e175ead68243a632f06b19285e1faurium#
4e10d188042815c5285edf00ea96896b862e0863aurium# Define the module and object file sets.
4e10d188042815c5285edf00ea96896b862e0863aurium#
4e10d188042815c5285edf00ea96896b862e0863auriumMODULE = pcieb
4e10d188042815c5285edf00ea96896b862e0863auriumOBJECTS = $(PCIEB_OBJS:%=$(OBJS_DIR)/%)
4e10d188042815c5285edf00ea96896b862e0863auriumLINTS = $(PCIEB_OBJS:%.o=$(LINTS_DIR)/%.ln)
4e10d188042815c5285edf00ea96896b862e0863auriumROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4e10d188042815c5285edf00ea96896b862e0863auriumCONF_SRCDIR = $(UTSBASE)/common/io/pciex/
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# Enable PLX workaround code and lint duplicate symbol
# avoidance hack
#
CPPFLAGS += -DPX_PLX
#
# Dependency
#
LDFLAGS += -dy -Nmisc/pcie
#
# 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
CERRWARN += -_gcc=-Wno-unused-value
CERRWARN += -_gcc=-Wno-unused-variable
#
# 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