1749f21d3Swesolows#
2749f21d3Swesolows# CDDL HEADER START
3749f21d3Swesolows#
4749f21d3Swesolows# The contents of this file are subject to the terms of the
5749f21d3Swesolows# Common Development and Distribution License (the "License").
6749f21d3Swesolows# You may not use this file except in compliance with the License.
7749f21d3Swesolows#
8749f21d3Swesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9749f21d3Swesolows# or http://www.opensolaris.org/os/licensing.
10749f21d3Swesolows# See the License for the specific language governing permissions
11749f21d3Swesolows# and limitations under the License.
12749f21d3Swesolows#
13749f21d3Swesolows# When distributing Covered Code, include this CDDL HEADER in each
14749f21d3Swesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15749f21d3Swesolows# If applicable, add the following below this CDDL HEADER, with the
16749f21d3Swesolows# fields enclosed by brackets "[]" replaced with your own identifying
17749f21d3Swesolows# information: Portions Copyright [yyyy] [name of copyright owner]
18749f21d3Swesolows#
19749f21d3Swesolows# CDDL HEADER END
20749f21d3Swesolows#
21749f21d3Swesolows
22749f21d3Swesolows#
230db3240dSStephen Hanson# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
2466d05358SRob Johnston# Copyright (c) 2018, Joyent, Inc.
25749f21d3Swesolows#
26749f21d3Swesolows
277aec1d6eScindiMODULE = pcibus
287aec1d6eScindiARCH = i86pc
297aec1d6eScindiCLASS = arch
300eb822a1ScindiUTILDIR = ../../common/pcibus
310eb822a1ScindiHBDIR = ../../common/hostbridge
3245d3dd98SRobert MustacchiNICDIR = ../../common/nic
33672fc84aSRobert MustacchiUSBDIR = ../../common/usb
34*744642a2SRobert MustacchiUFMDIR = ../../common/ufm
353ce53722SRobert MustacchiSHAREDDIR = ../../common/shared
360eb822a1ScindiUTILSRCS = did.c did_hash.c did_props.c util.c
373ce53722SRobert MustacchiPCISRCS = pcibus.c pcibus_labels.c pcibus_hba.c pci_sensor.c
383ce53722SRobert MustacchiSHAREDSRCS = topo_sensor.c
3988df2d76Stimh
400eb822a1ScindiMODULESRCS = $(UTILSRCS) $(PCISRCS) pci_i86pc.c
41749f21d3Swesolows
427aec1d6eScindiinclude ../../Makefile.plugin
43749f21d3Swesolows
4466d05358SRob JohnstonLDLIBS += -ldevinfo -lsmbios -lpcidb
450eb822a1Scindi
463ce53722SRobert MustacchiCPPFLAGS += -I$(UTILDIR) -I$(HBDIR) -I$(NICDIR) -I$(USBDIR) -I$(SHAREDDIR)
47*744642a2SRobert MustacchiCPPFLAGS += -I$(UFMDIR)
483ce53722SRobert Mustacchi
493ce53722SRobert Mustacchi%.o: $(SHAREDDIR)/%.c
503ce53722SRobert Mustacchi	$(COMPILE.c) -o $@ $<
513ce53722SRobert Mustacchi	$(CTFCONVERT_O)
52