1337fc9e2Sanish# 2337fc9e2Sanish# CDDL HEADER START 3337fc9e2Sanish# 4337fc9e2Sanish# The contents of this file are subject to the terms of the 5337fc9e2Sanish# Common Development and Distribution License (the "License"). 6337fc9e2Sanish# You may not use this file except in compliance with the License. 7337fc9e2Sanish# 8337fc9e2Sanish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9337fc9e2Sanish# or http://www.opensolaris.org/os/licensing. 10337fc9e2Sanish# See the License for the specific language governing permissions 11337fc9e2Sanish# and limitations under the License. 12337fc9e2Sanish# 13337fc9e2Sanish# When distributing Covered Code, include this CDDL HEADER in each 14337fc9e2Sanish# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15337fc9e2Sanish# If applicable, add the following below this CDDL HEADER, with the 16337fc9e2Sanish# fields enclosed by brackets "[]" replaced with your own identifying 17337fc9e2Sanish# information: Portions Copyright [yyyy] [name of copyright owner] 18337fc9e2Sanish# 19337fc9e2Sanish# CDDL HEADER END 20337fc9e2Sanish# 21337fc9e2Sanish# 22337fc9e2Sanish# uts/i86pc/pcie/Makefile 23337fc9e2Sanish# 24fc51f9bbSKrishna Elango# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25337fc9e2Sanish# Use is subject to license terms. 26337fc9e2Sanish# 27337fc9e2Sanish# 28337fc9e2Sanish# This makefile drives the production of the kernel/misc/pcie module 29337fc9e2Sanish# for PCI-E Error handling support in PCI-E nexus drivers. 30337fc9e2Sanish# 31337fc9e2Sanish# i86pc implementation architecture dependent 32337fc9e2Sanish# 33337fc9e2Sanish 34337fc9e2Sanish# 35337fc9e2Sanish# Path to the base of the uts directory tree (usually /usr/src/uts). 36337fc9e2Sanish# 37337fc9e2SanishUTSBASE = ../.. 38337fc9e2Sanish 39337fc9e2Sanish# 40337fc9e2Sanish# Define the module and object file sets. 41337fc9e2Sanish# 42337fc9e2SanishMODULE = pcie 4326947304SEvan YanOBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \ 4426947304SEvan Yan $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%) 4526947304SEvan YanLINTS = $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 4626947304SEvan Yan $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln) 4777f19097SFrank Van Der LindenROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 48337fc9e2Sanish 49337fc9e2Sanish# 50337fc9e2Sanish# Include common rules. 51337fc9e2Sanish# 52337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.i86pc 53337fc9e2Sanish 5426947304SEvan Yan# 5526947304SEvan Yan# Dependency 5626947304SEvan Yan# 5726947304SEvan YanLDFLAGS += -dy -Nmisc/acpica -Nmisc/busra 58fc51f9bbSKrishna Elango 59337fc9e2Sanish# 60337fc9e2Sanish# Define targets 61337fc9e2Sanish# 62337fc9e2SanishALL_TARGET = $(BINARY) 63337fc9e2SanishLINT_TARGET = $(MODULE).lint 64337fc9e2SanishINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 65337fc9e2Sanish 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function # safe 71*7014882cSRichard Lowe 72337fc9e2Sanish# 73337fc9e2Sanish# Default build targets. 74337fc9e2Sanish# 75337fc9e2Sanish.KEEP_STATE: 76337fc9e2Sanish 77337fc9e2Sanishdef: $(DEF_DEPS) 78337fc9e2Sanish 79337fc9e2Sanishall: $(ALL_DEPS) 80337fc9e2Sanish 81337fc9e2Sanishclean: $(CLEAN_DEPS) 82337fc9e2Sanish 83337fc9e2Sanishclobber: $(CLOBBER_DEPS) 84337fc9e2Sanish 85337fc9e2Sanishlint: $(LINT_DEPS) 86337fc9e2Sanish 87337fc9e2Sanishmodlintlib: $(MODLINTLIB_DEPS) 88337fc9e2Sanish 89337fc9e2Sanishclean.lint: $(CLEAN_LINT_DEPS) 90337fc9e2Sanish 91337fc9e2Sanishinstall: $(INSTALL_DEPS) 92337fc9e2Sanish 93337fc9e2Sanish# 94337fc9e2Sanish# Include common targets. 95337fc9e2Sanish# 96337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.targ 97