Makefile revision 70025d765b044c6d8594bb965a2247a61e991a99
1754N/A#
1754N/A# CDDL HEADER START
1754N/A#
1754N/A# The contents of this file are subject to the terms of the
1754N/A# Common Development and Distribution License, Version 1.0 only
1754N/A# (the "License"). You may not use this file except in compliance
1754N/A# with the License.
1754N/A#
1754N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1754N/A# or http://www.opensolaris.org/os/licensing.
1754N/A# See the License for the specific language governing permissions
1754N/A# and limitations under the License.
1754N/A#
1754N/A# When distributing Covered Code, include this CDDL HEADER in each
1754N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1754N/A# If applicable, add the following below this CDDL HEADER, with the
1754N/A# fields enclosed by brackets "[]" replaced with your own identifying
1754N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1754N/A#
1754N/A# CDDL HEADER END
5575N/A#
1754N/A#
1754N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1754N/A# Use is subject to license terms.
1754N/A#
1754N/A#ident "%Z%%M% %I% %E% SMI"
1754N/A#
1754N/A# cmd/pcidr/plugins/default/Makefile
1754N/A#
1754N/A
1754N/A.PARALLEL:
1754N/A
1754N/A#############################################################################
1754N/A
1754N/ANAME = pcidr_plugin
1754N/ALIBRARY = $(NAME).a
2899N/AVERS =
2899N/A
1754N/ATOPOBJECTS = pcidr_common.o
1754N/ALOCOBJECTS = $(NAME).o pcidr_cfga.o
1754N/AOBJECTS = $(LOCOBJECTS) $(TOPOBJECTS)
3817N/A
3817N/Ainclude $(SRC)/lib/Makefile.lib
3817N/Ainclude $(SRC)/cmd/pcidr/Makefile.com
1754N/A#############################################################################
1938N/A
1754N/ATHISDIR = $(TOP)/plugins/default
1754N/A
1754N/A# SRCS is used by the lintcheck rule and is defined as
1754N/A# $(OBJECTS:%.o=$(SRCDIR)/%.c) where SRCDIR is this directory; set SRCS to a
1754N/A# list of source paths if it differ from the default
3743N/A#
3743N/ASRCS = $(TOPOBJECTS:%.o=$(TOP)/%.c) $(LOCOBJECTS:%.o=$(SRCDIR)/%.c)
5575N/A
5575N/ALIBS = $(DYNLIB)
1754N/A
1754N/ALDLIBS += -lcfgadm -lnvpair
1754N/A
1754N/AHDRSRCS_SH = ls -1 $(THISDIR)/*.h
1754N/AHDRSRCS = $(HDRSRCS_SH:sh)
1754N/ACPPFLAGS += -I$(THISDIR)
1754N/A
4337N/A# override LIBLINKS so that ROOTLIBS or anything else won't match the install
4337N/A# target "$(ROOTLIBDIR)/$(LIBLINKS)"
5575N/A#
5575N/ALIBLINKS = __no_liblinks__
5575N/A
5575N/A.KEEP_STATE:
#############################################################################
all: $(LIBS)
install: $(ROOTLIBS)
clean:
clobber:
lint: lintcheck
$(ROOTLIBS): all
# Note that we can't do:
# $(TOPOBJECTS:%=objs/%) := SRCDIR = $(TOP)
# and let the make do the rest because the man page states:
# "Notice that if a conditional macro is referred to in a dependency list,
# the $ must be delayed (use $$ instead)."
#
# So we must add new targets for our TOPOBJECTS items but follow
# the existing pic/*.o and objs/*.o rules in lib/Makefile.targ
#
objs/%.o pics/%.o: $(TOP)/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
include $(SRC)/lib/Makefile.targ
include ../Makefile.targ