Makefile revision 269473047d747f7815af570197e4ef7322d3632c
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# CDDL HEADER START
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# The contents of this file are subject to the terms of the
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# Common Development and Distribution License (the "License").
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# You may not use this file except in compliance with the License.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# or http://www.opensolaris.org/os/licensing.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# See the License for the specific language governing permissions
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# and limitations under the License.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# When distributing Covered Code, include this CDDL HEADER in each
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# If applicable, add the following below this CDDL HEADER, with the
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# fields enclosed by brackets "[]" replaced with your own identifying
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# information: Portions Copyright [yyyy] [name of copyright owner]
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# CDDL HEADER END
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# uts/i86pc/pcie/Makefile
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# Use is subject to license terms.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# This makefile drives the production of the kernel/misc/pcie module
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# for PCI-E Error handling support in PCI-E nexus drivers.
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik# i86pc implementation architecture dependent
ec0b19bd6d25e3f4afea06b28c132b602bbff180Lukas Slebodnik#
ec0b19bd6d25e3f4afea06b28c132b602bbff180Lukas Slebodnik
ec0b19bd6d25e3f4afea06b28c132b602bbff180Lukas Slebodnik#
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas Slebodnik# Path to the base of the uts directory tree (usually /usr/src/uts).
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas Slebodnik#
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas SlebodnikUTSBASE = ../..
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas Slebodnik
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas Slebodnik#
10a9ff0c9b4f347ec24dab887a538b37274ee498Lukas Slebodnik# Define the module and object file sets.
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikMODULE = pcie
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikOBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%)
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikLINTS = $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln)
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik# Include common rules.
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnikinclude $(UTSBASE)/i86pc/Makefile.i86pc
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik# Dependency
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikLDFLAGS += -dy -Nmisc/acpica -Nmisc/busra
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik# Define targets
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik#
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikALL_TARGET = $(BINARY)
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikLINT_TARGET = $(MODULE).lint
af58b15fa7f20e33736d79c6a4b3becb568517caLukas SlebodnikINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
af58b15fa7f20e33736d79c6a4b3becb568517caLukas Slebodnik
701f13b5c8e27bcbfc79e77ce7c76d9f768a448cLukas Slebodnik#
# 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)/i86pc/Makefile.targ