1881Sjohnny# 2881Sjohnny# CDDL HEADER START 3881Sjohnny# 4881Sjohnny# The contents of this file are subject to the terms of the 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# You may not use this file except in compliance with the License. 7881Sjohnny# 8881Sjohnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9881Sjohnny# or http://www.opensolaris.org/os/licensing. 10881Sjohnny# See the License for the specific language governing permissions 11881Sjohnny# and limitations under the License. 12881Sjohnny# 13881Sjohnny# When distributing Covered Code, include this CDDL HEADER in each 14881Sjohnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15881Sjohnny# If applicable, add the following below this CDDL HEADER, with the 16881Sjohnny# fields enclosed by brackets "[]" replaced with your own identifying 17881Sjohnny# information: Portions Copyright [yyyy] [name of copyright owner] 18881Sjohnny# 19881Sjohnny# CDDL HEADER END 20881Sjohnny# 21881Sjohnny# 22*10687SZachary.Kissel@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23881Sjohnny# Use is subject to license terms. 24881Sjohnny# 25881Sjohnny# 26881Sjohnny 27881Sjohnny.PARALLEL: 28881Sjohnny 29881Sjohnny############################################################################# 30881Sjohnny 31881SjohnnyNAME = pcidr_plugin 32881SjohnnyLIBRARY = $(NAME).a 33881SjohnnyVERS = 34881Sjohnny 35881SjohnnyTOPOBJECTS = pcidr_common.o 36881SjohnnyLOCOBJECTS = $(NAME).o pcidr_cfga.o 37881SjohnnyOBJECTS = $(LOCOBJECTS) $(TOPOBJECTS) 38881Sjohnny 39881Sjohnnyinclude $(SRC)/lib/Makefile.lib 40881Sjohnnyinclude $(SRC)/cmd/pcidr/Makefile.com 41881Sjohnny############################################################################# 42881Sjohnny 43*10687SZachary.Kissel@Sun.COMTHISDIR = ../../plugins/default 44*10687SZachary.Kissel@Sun.COMUSR_SRC_BASE = ../../../.. 45881Sjohnny 46881Sjohnny# SRCS is used by the lintcheck rule and is defined as 47881Sjohnny# $(OBJECTS:%.o=$(SRCDIR)/%.c) where SRCDIR is this directory; set SRCS to a 48881Sjohnny# list of source paths if it differ from the default 49881Sjohnny# 502522Sraf 512522SrafSRCDIR = . 52*10687SZachary.Kissel@Sun.COMSRCS = $(TOPOBJECTS:%.o=$(USR_SRC_BASE)/cmd/pcidr/%.c) $(LOCOBJECTS:%.o=$(SRCDIR)/%.c) 53881Sjohnny 54881SjohnnyLIBS = $(DYNLIB) 55881Sjohnny 56881SjohnnyLDLIBS += -lcfgadm -lnvpair 57881Sjohnny 58881SjohnnyHDRSRCS_SH = ls -1 $(THISDIR)/*.h 59881SjohnnyHDRSRCS = $(HDRSRCS_SH:sh) 60881SjohnnyCPPFLAGS += -I$(THISDIR) 61881Sjohnny 62881Sjohnny# override LIBLINKS so that ROOTLIBS or anything else won't match the install 63881Sjohnny# target "$(ROOTLIBDIR)/$(LIBLINKS)" 64881Sjohnny# 65881SjohnnyLIBLINKS = __no_liblinks__ 66881Sjohnny 67881Sjohnny.KEEP_STATE: 68881Sjohnny############################################################################# 69881Sjohnny 70881Sjohnnyall: $(LIBS) 71881Sjohnnyinstall: $(ROOTLIBS) 72881Sjohnnyclean: 73881Sjohnnyclobber: 74881Sjohnnylint: lintcheck 75881Sjohnny 76881Sjohnny$(ROOTLIBS): all 77881Sjohnny 78*10687SZachary.Kissel@Sun.COMobjs/%.o pics/%.o: $(USR_SRC_BASE)/cmd/pcidr/%.c 79881Sjohnny $(COMPILE.c) -o $@ $< 80881Sjohnny $(POST_PROCESS_O) 81881Sjohnny 82881Sjohnnyinclude $(SRC)/lib/Makefile.targ 83881Sjohnnyinclude ../Makefile.targ 84