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# 27*b3d69c05SRobert Mustacchi# Copyright 2019 Joyent, Inc. 28fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 29337fc9e2Sanish 30337fc9e2Sanish# 31337fc9e2Sanish# Path to the base of the uts directory tree (usually /usr/src/uts). 32337fc9e2Sanish# 33337fc9e2SanishUTSBASE = ../.. 34337fc9e2Sanish 35337fc9e2Sanish# 36337fc9e2Sanish# Define the module and object file sets. 37337fc9e2Sanish# 38337fc9e2SanishMODULE = pcie 3926947304SEvan YanOBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \ 4026947304SEvan Yan $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%) 4177f19097SFrank Van Der LindenROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 42337fc9e2Sanish 43337fc9e2Sanish# 44337fc9e2Sanish# Include common rules. 45337fc9e2Sanish# 46337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.i86pc 47337fc9e2Sanish 4826947304SEvan Yan# 4926947304SEvan Yan# Dependency 5026947304SEvan Yan# 5126947304SEvan YanLDFLAGS += -dy -Nmisc/acpica -Nmisc/busra 52fc51f9bbSKrishna Elango 53337fc9e2Sanish# 54337fc9e2Sanish# Define targets 55337fc9e2Sanish# 56337fc9e2SanishALL_TARGET = $(BINARY) 57337fc9e2SanishINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58337fc9e2Sanish 597014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 607014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 617014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function # safe 627014882cSRichard Lowe 63b6b206fcSJohn Levon# needs work 64b6b206fcSJohn LevonSMOFF += all_func_returns,deref_check 65b6b206fcSJohn Levon 66337fc9e2Sanish# 67337fc9e2Sanish# Default build targets. 68337fc9e2Sanish# 69337fc9e2Sanish.KEEP_STATE: 70337fc9e2Sanish 71337fc9e2Sanishdef: $(DEF_DEPS) 72337fc9e2Sanish 73337fc9e2Sanishall: $(ALL_DEPS) 74337fc9e2Sanish 75337fc9e2Sanishclean: $(CLEAN_DEPS) 76337fc9e2Sanish 77337fc9e2Sanishclobber: $(CLOBBER_DEPS) 78337fc9e2Sanish 79337fc9e2Sanishinstall: $(INSTALL_DEPS) 80337fc9e2Sanish 81337fc9e2Sanish# 82337fc9e2Sanish# Include common targets. 83337fc9e2Sanish# 84337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.targ 85