70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER START
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70025d765b044c6d8594bb965a2247a61e991a99johnny# or http://www.opensolaris.org/os/licensing.
70025d765b044c6d8594bb965a2247a61e991a99johnny# See the License for the specific language governing permissions
70025d765b044c6d8594bb965a2247a61e991a99johnny# and limitations under the License.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# When distributing Covered Code, include this CDDL HEADER in each
70025d765b044c6d8594bb965a2247a61e991a99johnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70025d765b044c6d8594bb965a2247a61e991a99johnny# If applicable, add the following below this CDDL HEADER, with the
70025d765b044c6d8594bb965a2247a61e991a99johnny# fields enclosed by brackets "[]" replaced with your own identifying
70025d765b044c6d8594bb965a2247a61e991a99johnny# information: Portions Copyright [yyyy] [name of copyright owner]
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# CDDL HEADER END
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny#
f808c858fa61e7769218966759510a8b1190dfcfraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
70025d765b044c6d8594bb965a2247a61e991a99johnny# Use is subject to license terms.
70025d765b044c6d8594bb965a2247a61e991a99johnny#
f808c858fa61e7769218966759510a8b1190dfcfraf
70025d765b044c6d8594bb965a2247a61e991a99johnny#
70025d765b044c6d8594bb965a2247a61e991a99johnny# to be included AFTER cmd/Makefile.cmd or lib/Makefile.lib
f808c858fa61e7769218966759510a8b1190dfcfraf#
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyTOP = $(SRC)/cmd/pcidr
70025d765b044c6d8594bb965a2247a61e991a99johnnyINSTALLDIR = /usr/lib/pci
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnny#############################################################################
70025d765b044c6d8594bb965a2247a61e991a99johnny### used by macros in Makefile.cmd/lib
70025d765b044c6d8594bb965a2247a61e991a99johnny
f808c858fa61e7769218966759510a8b1190dfcfraf# There should be a mapfile here
f808c858fa61e7769218966759510a8b1190dfcfrafMAPFILES =
f808c858fa61e7769218966759510a8b1190dfcfraf
70025d765b044c6d8594bb965a2247a61e991a99johnnyHDRDIR = $(TOP)
70025d765b044c6d8594bb965a2247a61e991a99johnnyHDRS_SH = cd $(HDRDIR); ls *.h
70025d765b044c6d8594bb965a2247a61e991a99johnnyHDRS = $(HDRS_SH:sh)
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyROOTLIBDIR = $(ROOT)/$(INSTALLDIR)
70025d765b044c6d8594bb965a2247a61e991a99johnnyROOTCMDDIR = $(ROOTLIBDIR)
70025d765b044c6d8594bb965a2247a61e991a99johnny#############################################################################
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyCPPFLAGS += -D_REENTRANT -I$(HDRDIR)
70025d765b044c6d8594bb965a2247a61e991a99johnny
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-type-limits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
70025d765b044c6d8594bb965a2247a61e991a99johnny# Note that LDFLAGS is NOT used in the build rules for shared objects!
70025d765b044c6d8594bb965a2247a61e991a99johnny# LDLIBS is limited to -L and -l options; all other options must be added to
70025d765b044c6d8594bb965a2247a61e991a99johnny# DYNFLAGS for shared objects
70025d765b044c6d8594bb965a2247a61e991a99johnny
70025d765b044c6d8594bb965a2247a61e991a99johnnyLDLIBS += -lc