xref: /illumos-gate/usr/src/lib/fm/topo/modules/i86pc/pcibus/Makefile.common (revision 301d732b24b7d8c3e8380b019552b9287e1b8662)
1*301d732bSRobert Mustacchi#
2*301d732bSRobert Mustacchi# CDDL HEADER START
3*301d732bSRobert Mustacchi#
4*301d732bSRobert Mustacchi# The contents of this file are subject to the terms of the
5*301d732bSRobert Mustacchi# Common Development and Distribution License (the "License").
6*301d732bSRobert Mustacchi# You may not use this file except in compliance with the License.
7*301d732bSRobert Mustacchi#
8*301d732bSRobert Mustacchi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*301d732bSRobert Mustacchi# or http://www.opensolaris.org/os/licensing.
10*301d732bSRobert Mustacchi# See the License for the specific language governing permissions
11*301d732bSRobert Mustacchi# and limitations under the License.
12*301d732bSRobert Mustacchi#
13*301d732bSRobert Mustacchi# When distributing Covered Code, include this CDDL HEADER in each
14*301d732bSRobert Mustacchi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*301d732bSRobert Mustacchi# If applicable, add the following below this CDDL HEADER, with the
16*301d732bSRobert Mustacchi# fields enclosed by brackets "[]" replaced with your own identifying
17*301d732bSRobert Mustacchi# information: Portions Copyright [yyyy] [name of copyright owner]
18*301d732bSRobert Mustacchi#
19*301d732bSRobert Mustacchi# CDDL HEADER END
20*301d732bSRobert Mustacchi#
21*301d732bSRobert Mustacchi
22*301d732bSRobert Mustacchi#
23*301d732bSRobert Mustacchi# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24*301d732bSRobert Mustacchi# Copyright (c) 2018, Joyent, Inc.
25*301d732bSRobert Mustacchi#
26*301d732bSRobert Mustacchi
27*301d732bSRobert MustacchiMODULE = pcibus
28*301d732bSRobert MustacchiARCH = i86pc
29*301d732bSRobert MustacchiCLASS = arch
30*301d732bSRobert MustacchiUTILDIR = ../../../common/pcibus
31*301d732bSRobert MustacchiHBDIR = ../../../common/hostbridge
32*301d732bSRobert MustacchiNICDIR = ../../../common/nic
33*301d732bSRobert MustacchiUSBDIR = ../../../common/usb
34*301d732bSRobert MustacchiUFMDIR = ../../../common/ufm
35*301d732bSRobert MustacchiSHAREDDIR = ../../../common/shared
36*301d732bSRobert MustacchiUTILSRCS = did.c did_hash.c did_props.c util.c
37*301d732bSRobert MustacchiPCISRCS = pcibus.c pcibus_labels.c pcibus_hba.c pci_sensor.c
38*301d732bSRobert MustacchiSHAREDSRCS = topo_sensor.c
39*301d732bSRobert Mustacchi
40*301d732bSRobert MustacchiMODULESRCS = $(UTILSRCS) $(PCISRCS) pci_i86pc.c
41*301d732bSRobert Mustacchi
42*301d732bSRobert Mustacchiinclude ../../../Makefile.plugin
43*301d732bSRobert Mustacchi
44*301d732bSRobert MustacchiLDLIBS += -ldevinfo -lsmbios -lpcidb
45*301d732bSRobert Mustacchi
46*301d732bSRobert MustacchiCPPFLAGS += -I$(UTILDIR) -I$(HBDIR) -I$(NICDIR) -I$(USBDIR) -I$(SHAREDDIR)
47*301d732bSRobert MustacchiCPPFLAGS += -I$(UFMDIR)
48*301d732bSRobert Mustacchi
49*301d732bSRobert Mustacchi%.o: $(SHAREDDIR)/%.c
50*301d732bSRobert Mustacchi	$(COMPILE.c) -o $@ $<
51*301d732bSRobert Mustacchi	$(CTFCONVERT_O)
52