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