1074bb90dSTom Pothier#
2074bb90dSTom Pothier# CDDL HEADER START
3074bb90dSTom Pothier#
4074bb90dSTom Pothier# The contents of this file are subject to the terms of the
5074bb90dSTom Pothier# Common Development and Distribution License (the "License").
6074bb90dSTom Pothier# You may not use this file except in compliance with the License.
7074bb90dSTom Pothier#
8074bb90dSTom Pothier# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9074bb90dSTom Pothier# or http://www.opensolaris.org/os/licensing.
10074bb90dSTom Pothier# See the License for the specific language governing permissions
11074bb90dSTom Pothier# and limitations under the License.
12074bb90dSTom Pothier#
13074bb90dSTom Pothier# When distributing Covered Code, include this CDDL HEADER in each
14074bb90dSTom Pothier# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15074bb90dSTom Pothier# If applicable, add the following below this CDDL HEADER, with the
16074bb90dSTom Pothier# fields enclosed by brackets "[]" replaced with your own identifying
17074bb90dSTom Pothier# information: Portions Copyright [yyyy] [name of copyright owner]
18074bb90dSTom Pothier#
19074bb90dSTom Pothier# CDDL HEADER END
20074bb90dSTom Pothier#
21074bb90dSTom Pothier
22074bb90dSTom Pothier#
2303f9f63dSTom Pothier# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24074bb90dSTom Pothier# Use is subject to license terms.
25074bb90dSTom Pothier#
2666d05358SRob Johnston# Copyright (c) 2018, Joyent, Inc.
2766d05358SRob Johnston#
28074bb90dSTom Pothier
29074bb90dSTom PothierMODULE	= x86pi
30074bb90dSTom PothierARCH	= i86pc
31074bb90dSTom PothierCLASS	= arch
32074bb90dSTom Pothier
33074bb90dSTom PothierTOPODIR		= ../../../libtopo/common
34074bb90dSTom Pothier
35074bb90dSTom PothierUTILDIR		= ../../common/pcibus
36074bb90dSTom PothierBRDIR		= ../../common/hostbridge
37*672fc84aSRobert MustacchiUSBDIR		= ../../common/usb
38074bb90dSTom PothierUTILSRCS	= did.c did_hash.c did_props.c
3903f9f63dSTom PothierX86PISRCS	= x86pi.c x86pi_bay.c x86pi_bboard.c x86pi_chassis.c \
40074bb90dSTom Pothier		  x86pi_generic.c x86pi_hostbridge.c x86pi_subr.c
41074bb90dSTom PothierMODULESRCS	= $(X86PISRCS) $(UTILSRCS)
42074bb90dSTom Pothier
43074bb90dSTom Pothierinclude ../../Makefile.plugin
44074bb90dSTom Pothier
4566d05358SRob JohnstonLDLIBS += -lsmbios -ldevinfo -luutil -lpcidb
46074bb90dSTom Pothier
47074bb90dSTom PothierCPPFLAGS += -I. -I$(ROOT)/usr/platform/i86pc/include -I$(TOPODIR)
48*672fc84aSRobert MustacchiCPPFLAGS += -I$(UTILDIR) -I$(BRDIR) -I$(USBDIR)
49074bb90dSTom Pothier
50074bb90dSTom Pothier%.o: $(UTILDIR)/%.c
51074bb90dSTom Pothier	$(COMPILE.c) -o $@ $<
52074bb90dSTom Pothier	$(CTFCONVERT_O)
53