Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1268N/A#
1268N/A# CDDL HEADER START
1268N/A#
1268N/A# The contents of this file are subject to the terms of the
1268N/A# Common Development and Distribution License, Version 1.0 only
1268N/A# (the "License"). You may not use this file except in compliance
1268N/A# with the License.
1268N/A#
1268N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1268N/A# or http://www.opensolaris.org/os/licensing.
1268N/A# See the License for the specific language governing permissions
1268N/A# and limitations under the License.
1268N/A#
1268N/A# When distributing Covered Code, include this CDDL HEADER in each
1268N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1268N/A# If applicable, add the following below this CDDL HEADER, with the
1268N/A# fields enclosed by brackets "[]" replaced with your own identifying
1268N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1268N/A#
1268N/A# CDDL HEADER END
5680N/A#
1268N/A#
5680N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5680N/A#
1268N/A# ident "%Z%%M% %I% %E% SMI"
1268N/A#
1268N/A# cmd/picl/plugins/sun4u/envmon/Makefile
3889N/A#
1268N/Ainclude $(SRC)/Makefile.psm
3889N/A
1268N/ALIBRARY= libpiclenvmon.a
3889N/AVERS= .1
2899N/A
5680N/AOBJECTS= piclenvmon.o
5680N/A
1268N/A# include library definitions
1294N/Ainclude $(SRC)/lib/Makefile.lib
1268N/A
5680N/AROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
5680N/A
1268N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
4730N/A
4730N/ASRCS= $(OBJECTS:%.o=%.c)
4730N/A
4730N/ALIBS = $(DYNLIB)
4730N/A
4730N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
4730N/AROOTLIBDIR := OWNER = root
4730N/AROOTLIBDIR := GROUP = sys
4730N/A
4730N/ALINTSRC = $(LINTLIB:%.ln=%)
4730N/AROOTLINTDIR = $(ROOTLIBDIR)
5680N/AROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
1268N/A
3817N/ACLEANFILES= $(LINTOUT) $(LINTLIB)
CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
CPPFLAGS += -D_REENTRANT
CFLAGS += $(CCVERBOSE)
LINTFLAGS = -uxmn -I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree
DYNFLAGS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
LDLIBS += -L$(SRC)/cmd/picl/plugins/common/piclevent
LDLIBS += -L$(SRC)/cmd/picl/plugins/common/memcfg
LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
LDLIBS += -lnvpair -ldevinfo -lc
LDLIBS += -lpicltree -lpicld_pluginutil -lpiclevent -lpicldevtree
.KEEP_STATE:
SUBDIRS=
all := TARGET= all
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
_msg := TARGET= _msg
POFILE = piclenvmon_sun4u.po
POFILES = $(SRCS:%.c=%.po)
all: $(LIBS) $(LIBLINKS)
install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
$(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: