Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
32N/A#
32N/A# CDDL HEADER START
1339N/A#
32N/A# The contents of this file are subject to the terms of the
32N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
32N/A# Use is subject to license terms.
32N/A#
32N/A# cmd/picl/plugins/sun4u/taco/envd/Makefile
32N/A#
493N/Ainclude $(SRC)/Makefile.psm
32N/A
32N/ALIBRARY= libpiclenvd.a
1351N/AVERS= .1
32N/A
911N/AOBJECTS= piclenvd.o piclenvsetup.o
1351N/A
1351N/A# include library definitions
911N/Ainclude $(SRC)/lib/Makefile.lib
32N/A
606N/AROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-1500
32N/A
970N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
970N/A
970N/ACPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
970N/ACPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
970N/ACPPFLAGS += -I$(SRC)/uts/sun4u/taco
970N/ACPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
970N/A
1351N/ASRCS= $(OBJECTS:%.o=%.c)
1351N/A
970N/ALIBS = $(DYNLIB)
1339N/A
1339N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
1339N/A
32N/ACONF= envmodel.conf
32N/AROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
$(ROOTCONF) := FILEMODE = 0644
INFOS= envmodel.info
LINTSRC = $(LINTLIB:%.ln=%)
ROOTLINTDIR = $(ROOTLIBDIR)
ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
CLEANFILES= $(LINTOUT) $(LINTLIB)
CFLAGS += $(CCVERBOSE)
DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -lpicldevtree -lpicltree
LDLIBS += -lpicld_pluginutil
LDLIBS += -ldevinfo -lc
.KEEP_STATE:
SUBDIRS=
POFILE = piclenvd_taco.po
POFILES = $(SRCS:%.c=%.po)
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: