Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# CDDL HEADER START
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# The contents of this file are subject to the terms of the
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Common Development and Distribution License (the "License").
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# You may not use this file except in compliance with the License.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# or http://www.opensolaris.org/os/licensing.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# See the License for the specific language governing permissions
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# and limitations under the License.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# When distributing Covered Code, include this CDDL HEADER in each
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# If applicable, add the following below this CDDL HEADER, with the
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# fields enclosed by brackets "[]" replaced with your own identifying
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac# information: Portions Copyright [yyyy] [name of copyright owner]
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# CDDL HEADER END
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# uts/intel/pcieb/Makefile
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
05b42f00b813c3dc70cbb80d62089f9cc0f6f549ludovicp# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac# Use is subject to license terms.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# This makefile drives the production of the pcieb driver kernel
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# module.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Path to the base of the uts directory tree (usually /usr/src/uts).
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonUTSBASE = ../..
d1da51a3ced79e0dba9bf146328497b5f01900eedavidely
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d1da51a3ced79e0dba9bf146328497b5f01900eedavidely# Define the module and object file sets.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonMODULE = pcieb
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffOBJECTS = $(PCIEB_OBJS:%=$(OBJS_DIR)/%)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINTS = $(PCIEB_OBJS:%.o=$(LINTS_DIR)/%.ln)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffCONF_SRCDIR = $(UTSBASE)/common/io/pciex
d1da51a3ced79e0dba9bf146328497b5f01900eedavidely
d1da51a3ced79e0dba9bf146328497b5f01900eedavidely#
d1da51a3ced79e0dba9bf146328497b5f01900eedavidely# Include common rules.
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduffinclude $(UTSBASE)/intel/Makefile.intel
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff
d25372dc8e65a9ed019a88fdf659ca61313f1b31jcduff#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Define targets
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonALL_TARGET = $(BINARY) $(SRC_CONFILE)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINT_TARGET = $(MODULE).lint
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# depends on misc/pcie
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLDFLAGS += -dy -Nmisc/pcie
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Override defaults to build a unique, local modstubs.o.
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac#
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignacMODSTUBS_DIR = $(OBJS_DIR)
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignacCLEANFILES += $(MODSTUBS_O)
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# For now, disable these lint checks; maintainers should endeavor
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# to investigate and remove these for maximum lint coverage.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Please do not carry these forward to new Makefiles.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonCERRWARN += -_gcc=-Wno-unused-value
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Default build targets.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson.KEEP_STATE:
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsondef: $(DEF_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonall: $(ALL_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonclean: $(CLEAN_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonclobber: $(CLOBBER_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonlint: $(LINT_DEPS)
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignac
a760bafd02f7e5f75e89e47cd29d7c4dae5e1bb4JnRouvignacmodlintlib: $(MODLINTLIB_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsonclean.lint: $(CLEAN_LINT_DEPS)
f43bf60164dfc1ac60e5332f7a17ca1425c88268matthew
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsoninstall: $(INSTALL_DEPS)
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson# Include common targets.
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson#
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilsoninclude $(UTSBASE)/intel/Makefile.targ
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson
e2352db892d8a23e3b66ff63c3797975bb0e2568neil_a_wilson