Makefile.com revision 09f67678c27dda8a89f87f1f408a87dd49ceb0e1
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# CDDL HEADER START
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# The contents of this file are subject to the terms of the
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Common Development and Distribution License, Version 1.0 only
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# (the "License"). You may not use this file except in compliance
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# with the License.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# or http://www.opensolaris.org/os/licensing.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# See the License for the specific language governing permissions
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# and limitations under the License.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# When distributing Covered Code, include this CDDL HEADER in each
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# If applicable, add the following below this CDDL HEADER, with the
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# fields enclosed by brackets "[]" replaced with your own identifying
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# information: Portions Copyright [yyyy] [name of copyright owner]
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# CDDL HEADER END
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# Use is subject to license terms.
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# ident "%Z%%M% %I% %E% SMI"
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# lib/cfgadm_plugins/pci/Makefile.com
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits#
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsLIBRARY= pci.a
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsVERS= .1
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsOBJECTS= cfga.o pci_strings.o
# include library definitions
include ../../../Makefile.lib
INS.dir.root.sys= $(INS) -s -d -m $(DIRMODE) $@
$(CH)INS.dir.root.sys= $(INS) -s -d -m $(DIRMODE) -u root -g sys $@
INS.dir.bin.bin= $(INS) -s -d -m $(DIRMODE) $@
$(CH)INS.dir.bin.bin= $(INS) -s -d -m $(DIRMODE) -u bin -g bin $@
USR_LIB_DIR = $(ROOT)/usr/lib
USR_LIB_DIR_CFGADM = $(USR_LIB_DIR)/cfgadm
USR_LIB_DIR_CFGADM_64 = $(USR_LIB_DIR_CFGADM)/$(MACH64)
ROOTLIBDIR= $(USR_LIB_DIR_CFGADM)
ROOTLIBDIR64= $(USR_LIB_DIR_CFGADM_64)
MAPFILE= $(MAPDIR)/mapfile
CLOBBERFILES += $(MAPFILE)
SRCS= ../common/cfga.c $(SRC)/common/pci/pci_strings.c
LIBS = $(DYNLIB)
CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
CFLAGS += $(CCVERBOSE)
DYNFLAGS += -M $(MAPFILE)
LDLIBS += -lc -ldevice -ldevinfo -lrcm
.KEEP_STATE:
all: $(LIBS)
lint: lintcheck
$(DYNLIB): $(MAPFILE)
$(MAPFILE):
@cd $(MAPDIR); $(MAKE) mapfile
# Create target directories
$(USR_LIB_DIR):
-$(INS.dir.root.sys)
$(USR_LIB_DIR_CFGADM): $(USR_LIB_DIR)
-$(INS.dir.bin.bin)
$(USR_LIB_DIR_CFGADM_64): $(USR_LIB_DIR_CFGADM)
-$(INS.dir.bin.bin)
$(USR_LIB_DIR_CFGADM)/%: % $(USR_LIB_DIR_CFGADM)
-$(INS.file)
$(USR_LIB_DIR_CFGADM_64)/%: % $(USR_LIB_DIR_CFGADM_64)
-$(INS.file)
# include library targets
include ../../../Makefile.targ
pics/cfga.o: ../common/cfga.c
$(COMPILE.c) -o $@ ../common/cfga.c
$(POST_PROCESS_O)
pics/pci_strings.o: $(SRC)/common/pci/pci_strings.c
$(COMPILE.c) -o $@ $(SRC)/common/pci/pci_strings.c
$(POST_PROCESS_O)