17aec1d6eScindi#
27aec1d6eScindi# CDDL HEADER START
37aec1d6eScindi#
47aec1d6eScindi# The contents of this file are subject to the terms of the
57aec1d6eScindi# Common Development and Distribution License (the "License").
67aec1d6eScindi# You may not use this file except in compliance with the License.
77aec1d6eScindi#
87aec1d6eScindi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97aec1d6eScindi# or http://www.opensolaris.org/os/licensing.
107aec1d6eScindi# See the License for the specific language governing permissions
117aec1d6eScindi# and limitations under the License.
127aec1d6eScindi#
137aec1d6eScindi# When distributing Covered Code, include this CDDL HEADER in each
147aec1d6eScindi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157aec1d6eScindi# If applicable, add the following below this CDDL HEADER, with the
167aec1d6eScindi# fields enclosed by brackets "[]" replaced with your own identifying
177aec1d6eScindi# information: Portions Copyright [yyyy] [name of copyright owner]
187aec1d6eScindi#
197aec1d6eScindi# CDDL HEADER END
207aec1d6eScindi#
217aec1d6eScindi#
220db3240dSStephen Hanson# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
23*66d05358SRob Johnston# Copyright (c) 2018, Joyent, Inc.
247aec1d6eScindi#
257aec1d6eScindi
267aec1d6eScindiMODULE = hostbridge
277aec1d6eScindiARCH = i86pc
287aec1d6eScindiCLASS = arch
290eb822a1ScindiUTILDIR = ../../common/pcibus
300eb822a1ScindiUTILSRCS = did.c did_hash.c did_props.c util.c
310eb822a1ScindiHBDIR = ../../common/hostbridge
320eb822a1ScindiHBSRCS = hostbridge.c hb_$(ARCH).c
330eb822a1ScindiMODULESRCS = $(HBSRCS) $(UTILSRCS)
347aec1d6eScindi
357aec1d6eScindiinclude ../../Makefile.plugin
367aec1d6eScindi
37*66d05358SRob JohnstonLDLIBS += -ldevinfo -lsmbios -lpcidb
380eb822a1Scindi
390eb822a1ScindiCPPFLAGS += -I$(UTILDIR) -I$(HBDIR)
400eb822a1Scindi
410eb822a1Scindi%.o: $(UTILDIR)/%.c
420eb822a1Scindi	$(COMPILE.c) -o $@ $<
430eb822a1Scindi	$(CTFCONVERT_O)
440eb822a1Scindi
450eb822a1Scindi%.o: $(HBDIR)/%.c
460eb822a1Scindi	$(COMPILE.c) -o $@ $<
470eb822a1Scindi	$(CTFCONVERT_O)
48