Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
363N/A#
363N/A# CDDL HEADER START
363N/A#
363N/A# The contents of this file are subject to the terms of the
363N/A# Common Development and Distribution License (the "License").
363N/A# You may not use this file except in compliance with the License.
363N/A#
363N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
363N/A# or http://www.opensolaris.org/os/licensing.
363N/A# See the License for the specific language governing permissions
363N/A# and limitations under the License.
363N/A#
363N/A# When distributing Covered Code, include this CDDL HEADER in each
363N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
363N/A# If applicable, add the following below this CDDL HEADER, with the
363N/A# fields enclosed by brackets "[]" replaced with your own identifying
363N/A# information: Portions Copyright [yyyy] [name of copyright owner]
363N/A#
363N/A# CDDL HEADER END
363N/A#
2877N/A#
363N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
363N/A# Use is subject to license terms.
363N/A#
2221N/A
2221N/Ainclude $(SRC)/Makefile.psm
363N/A
363N/ALIBRARY= libpiclfrutree.a
364N/AVERS= .1
363N/A
363N/AOBJECTS= piclfrutree.o
2221N/A
2221N/A# include library definitions
363N/Ainclude $(SRC)/lib/Makefile.lib
844N/A
2221N/AROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-880
363N/A
2931N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
363N/A
363N/ACFLAGS += $(CCVERBOSE)
363N/A
363N/ACPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
695N/ACPPFLAGS += -I$(SRC)/lib/libdevfsevent -I$(SRC)/uts/common
365N/ACPPFLAGS += -D_REENTRANT
363N/A
363N/ASRCS= $(OBJECTS:%.o=%.c)
363N/A
363N/ALIBS = $(DYNLIB)
363N/A
2221N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
363N/A
363N/ACONF= piclfrutree.conf
363N/AROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
695N/A$(ROOTCONF) := FILEMODE = 0644
363N/AINFOS= $(CONF:%.conf=%.info)
363N/A
363N/ALINTSRC = $(LINTLIB:%.ln=%)
814N/AROOTLINTDIR = $(ROOTLIBDIR)
814N/AROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
363N/A
2221N/ACLEANFILES= $(LINTOUT) $(LINTLIB)
791N/ACLOBBERFILES += $(LIBLINKS)
791N/A
791N/ADEVTREE_SRC_DIR = $(SRC)/cmd/picl/plugins/common/devtree
791N/ADYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
363N/ALDLIBS += -L$(DEVTREE_SRC_DIR)
363N/ALDLIBS += -L$(SRC)/lib/libptree/$(MACH)
2221N/ALDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
363N/ALDLIBS += -L$(ROOT)/usr/lib/picl/plugins
363N/ALDLIBS += -lc -lpicldevtree -lpicltree -lnvpair
363N/A
363N/A.KEEP_STATE:
363N/A
363N/ASUBDIRS=
363N/A
363N/APOFILE= piclfrutree.po
363N/A
363N/Aall := TARGET= all
363N/Ainstall := TARGET= install
2221N/Aclean := TARGET= clean
2221N/Aclobber := TARGET= clobber
2221N/Alint := TARGET= lint
2221N/A_msg := TARGET= _msg
2221N/A
2221N/Aall: $(LIBS) $(LIBLINKS) $(CONF)
2221N/A
363N/Ainstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
2221N/A
2221N/A_msg: $(MSGDOMAIN) $(POFILE)
363N/A $(RM) $(MSGDOMAIN)/$(POFILE)
2221N/A $(CP) $(POFILE) $(MSGDOMAIN)/dak_$(POFILE)
363N/A
363N/A$(MSGDOMAIN):
363N/A $(INS.dir)
363N/A
363N/A$(LIBLINKS): FRC
695N/A $(RM) $@; $(SYMLINK) $(DYNLIB) $@
695N/A
363N/A# include library targets
363N/Ainclude $(SRC)/lib/Makefile.targ
363N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.targ
363N/A
363N/A$(ROOTLINTDIR)/%: ../%
363N/A $(INS.file)
363N/A
363N/Alint :
363N/A $(LINT.c) $(SRCS)
363N/A
695N/A$(SUBDIRS): FRC
363N/A @cd $@; pwd; $(MAKE) $(TARGET)
363N/A
363N/A$(CONF): $(INFOS)
363N/A $(RM) $@
363N/A $(CPP) piclfrutree.info >$@
363N/A
2877N/AFRC:
2877N/A