xref: /titanic_41/usr/src/cmd/pcidr/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
170025d76Sjohnny#
270025d76Sjohnny# CDDL HEADER START
370025d76Sjohnny#
470025d76Sjohnny# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
770025d76Sjohnny#
870025d76Sjohnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970025d76Sjohnny# or http://www.opensolaris.org/os/licensing.
1070025d76Sjohnny# See the License for the specific language governing permissions
1170025d76Sjohnny# and limitations under the License.
1270025d76Sjohnny#
1370025d76Sjohnny# When distributing Covered Code, include this CDDL HEADER in each
1470025d76Sjohnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1570025d76Sjohnny# If applicable, add the following below this CDDL HEADER, with the
1670025d76Sjohnny# fields enclosed by brackets "[]" replaced with your own identifying
1770025d76Sjohnny# information: Portions Copyright [yyyy] [name of copyright owner]
1870025d76Sjohnny#
1970025d76Sjohnny# CDDL HEADER END
2070025d76Sjohnny#
2170025d76Sjohnny#
22f808c858Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2370025d76Sjohnny# Use is subject to license terms.
2470025d76Sjohnny#
25f808c858Sraf
2670025d76Sjohnny#
2770025d76Sjohnny# to be included AFTER cmd/Makefile.cmd or lib/Makefile.lib
28f808c858Sraf#
2970025d76Sjohnny
3070025d76SjohnnyTOP = $(SRC)/cmd/pcidr
3170025d76SjohnnyINSTALLDIR = /usr/lib/pci
3270025d76Sjohnny
3370025d76Sjohnny#############################################################################
3470025d76Sjohnny### used by macros in Makefile.cmd/lib
3570025d76Sjohnny
36f808c858Sraf# There should be a mapfile here
37f808c858SrafMAPFILES =
38f808c858Sraf
3970025d76SjohnnyHDRDIR = $(TOP)
4070025d76SjohnnyHDRS_SH = cd $(HDRDIR); ls *.h
4170025d76SjohnnyHDRS = $(HDRS_SH:sh)
4270025d76Sjohnny
4370025d76SjohnnyROOTLIBDIR = $(ROOT)/$(INSTALLDIR)
4470025d76SjohnnyROOTCMDDIR = $(ROOTLIBDIR)
4570025d76Sjohnny#############################################################################
4670025d76Sjohnny
4770025d76SjohnnyCPPFLAGS += -D_REENTRANT -I$(HDRDIR)
4870025d76Sjohnny
49*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits
50*7014882cSRichard Lowe
5170025d76Sjohnny# Note that LDFLAGS is NOT used in the build rules for shared objects!
5270025d76Sjohnny# LDLIBS is limited to -L and -l options; all other options must be added to
5370025d76Sjohnny# DYNFLAGS for shared objects
5470025d76Sjohnny
5570025d76SjohnnyLDLIBS += -lc
56