1*c0da6274SZhi-Jun Robin Fu# 2*c0da6274SZhi-Jun Robin Fu# CDDL HEADER START 3*c0da6274SZhi-Jun Robin Fu# 4*c0da6274SZhi-Jun Robin Fu# The contents of this file are subject to the terms of the 5*c0da6274SZhi-Jun Robin Fu# Common Development and Distribution License (the "License"). 6*c0da6274SZhi-Jun Robin Fu# You may not use this file except in compliance with the License. 7*c0da6274SZhi-Jun Robin Fu# 8*c0da6274SZhi-Jun Robin Fu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*c0da6274SZhi-Jun Robin Fu# or http://www.opensolaris.org/os/licensing. 10*c0da6274SZhi-Jun Robin Fu# See the License for the specific language governing permissions 11*c0da6274SZhi-Jun Robin Fu# and limitations under the License. 12*c0da6274SZhi-Jun Robin Fu# 13*c0da6274SZhi-Jun Robin Fu# When distributing Covered Code, include this CDDL HEADER in each 14*c0da6274SZhi-Jun Robin Fu# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*c0da6274SZhi-Jun Robin Fu# If applicable, add the following below this CDDL HEADER, with the 16*c0da6274SZhi-Jun Robin Fu# fields enclosed by brackets "[]" replaced with your own identifying 17*c0da6274SZhi-Jun Robin Fu# information: Portions Copyright [yyyy] [name of copyright owner] 18*c0da6274SZhi-Jun Robin Fu# 19*c0da6274SZhi-Jun Robin Fu# CDDL HEADER END 20*c0da6274SZhi-Jun Robin Fu# 21*c0da6274SZhi-Jun Robin Fu# 22*c0da6274SZhi-Jun Robin Fu# uts/sun4u/pcie/Makefile 23*c0da6274SZhi-Jun Robin Fu# 24*c0da6274SZhi-Jun Robin Fu# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25*c0da6274SZhi-Jun Robin Fu# Use is subject to license terms. 26*c0da6274SZhi-Jun Robin Fu# 27*c0da6274SZhi-Jun Robin Fu# 28*c0da6274SZhi-Jun Robin Fu# This makefile drives the production of the sun4u/kernel/misc/sparcv9/pcie module 29*c0da6274SZhi-Jun Robin Fu# for PCI-E Error handling support in PCI-E nexus drivers. 30*c0da6274SZhi-Jun Robin Fu# 31*c0da6274SZhi-Jun Robin Fu# sun4u implementation architecture dependent 32*c0da6274SZhi-Jun Robin Fu# 33*c0da6274SZhi-Jun Robin Fu 34*c0da6274SZhi-Jun Robin Fu# 35*c0da6274SZhi-Jun Robin Fu# Path to the base of the uts directory tree (usually /usr/src/uts). 36*c0da6274SZhi-Jun Robin Fu# 37*c0da6274SZhi-Jun Robin FuUTSBASE = ../.. 38*c0da6274SZhi-Jun Robin Fu 39*c0da6274SZhi-Jun Robin Fu# 40*c0da6274SZhi-Jun Robin Fu# Define the module and object file sets. 41*c0da6274SZhi-Jun Robin Fu# 42*c0da6274SZhi-Jun Robin FuMODULE = pcie 43*c0da6274SZhi-Jun Robin FuOBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \ 44*c0da6274SZhi-Jun Robin Fu $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%) 45*c0da6274SZhi-Jun Robin FuLINTS = $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 46*c0da6274SZhi-Jun Robin Fu $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln) 47*c0da6274SZhi-Jun Robin FuROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 48*c0da6274SZhi-Jun Robin Fu 49*c0da6274SZhi-Jun Robin Fu# 50*c0da6274SZhi-Jun Robin Fu# Include common rules. 51*c0da6274SZhi-Jun Robin Fu# 52*c0da6274SZhi-Jun Robin Fuinclude $(UTSBASE)/sun4u/Makefile.sun4u 53*c0da6274SZhi-Jun Robin Fu 54*c0da6274SZhi-Jun Robin Fu# 55*c0da6274SZhi-Jun Robin Fu# Define targets 56*c0da6274SZhi-Jun Robin Fu# 57*c0da6274SZhi-Jun Robin FuALL_TARGET = $(BINARY) 58*c0da6274SZhi-Jun Robin FuLINT_TARGET = $(MODULE).lint 59*c0da6274SZhi-Jun Robin FuINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 60*c0da6274SZhi-Jun Robin Fu 61*c0da6274SZhi-Jun Robin Fu# 62*c0da6274SZhi-Jun Robin Fu# Dependency 63*c0da6274SZhi-Jun Robin Fu# 64*c0da6274SZhi-Jun Robin FuLDFLAGS += -dy -Nmisc/busra 65*c0da6274SZhi-Jun Robin Fu 66*c0da6274SZhi-Jun Robin Fu# 67*c0da6274SZhi-Jun Robin Fu# Default build targets. 68*c0da6274SZhi-Jun Robin Fu# 69*c0da6274SZhi-Jun Robin Fu.KEEP_STATE: 70*c0da6274SZhi-Jun Robin Fu 71*c0da6274SZhi-Jun Robin Fudef: $(DEF_DEPS) 72*c0da6274SZhi-Jun Robin Fu 73*c0da6274SZhi-Jun Robin Fuall: $(ALL_DEPS) 74*c0da6274SZhi-Jun Robin Fu 75*c0da6274SZhi-Jun Robin Fuclean: $(CLEAN_DEPS) 76*c0da6274SZhi-Jun Robin Fu 77*c0da6274SZhi-Jun Robin Fuclobber: $(CLOBBER_DEPS) 78*c0da6274SZhi-Jun Robin Fu 79*c0da6274SZhi-Jun Robin Fulint: $(LINT_DEPS) 80*c0da6274SZhi-Jun Robin Fu 81*c0da6274SZhi-Jun Robin Fumodlintlib: $(MODLINTLIB_DEPS) 82*c0da6274SZhi-Jun Robin Fu 83*c0da6274SZhi-Jun Robin Fuclean.lint: $(CLEAN_LINT_DEPS) 84*c0da6274SZhi-Jun Robin Fu 85*c0da6274SZhi-Jun Robin Fuinstall: $(INSTALL_DEPS) 86*c0da6274SZhi-Jun Robin Fu 87*c0da6274SZhi-Jun Robin Fu# 88*c0da6274SZhi-Jun Robin Fu# Include common targets. 89*c0da6274SZhi-Jun Robin Fu# 90*c0da6274SZhi-Jun Robin Fuinclude $(UTSBASE)/sun4u/Makefile.targ 91