Makefile revision f841f6ad96ea6675d6c6b35c749eaac601799fdf
146N/A#
146N/A# CDDL HEADER START
146N/A#
146N/A# The contents of this file are subject to the terms of the
146N/A# Common Development and Distribution License (the "License").
146N/A# You may not use this file except in compliance with the License.
146N/A#
146N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
146N/A# or http://www.opensolaris.org/os/licensing.
146N/A# See the License for the specific language governing permissions
146N/A# and limitations under the License.
146N/A#
146N/A# When distributing Covered Code, include this CDDL HEADER in each
146N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
146N/A# If applicable, add the following below this CDDL HEADER, with the
146N/A# fields enclosed by brackets "[]" replaced with your own identifying
146N/A# information: Portions Copyright [yyyy] [name of copyright owner]
146N/A#
146N/A# CDDL HEADER END
146N/A#
146N/A#
146N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2490N/A# Use is subject to license terms.
146N/A#
146N/A# ident "%Z%%M% %I% %E% SMI"
146N/A#
146N/A
614N/Ainclude $(SRC)/Makefile.psm
1439N/A
1439N/ALIBRARY = libpiclenvmond.a
614N/AVERS = .1
614N/APLATFORM = SUNW,Netra-CP2300
844N/A
1439N/AOBJECTS= piclenvmond.o piclsensors.o picldr.o piclplatmod.o
1439N/A
1273N/A# include library definitions
146N/Ainclude $(SRC)/lib/Makefile.lib
3661N/A
3661N/AROOT_PLATFORM = $(USR_PLAT_DIR)/$(PLATFORM)
146N/A
146N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
146N/A
146N/ACFLAGS += $(CCVERBOSE)
1439N/ACPPFLAGS += -D_REENTRANT -D_SNOWBIRD \
1439N/A -I$(USR_PSM_INCL_DIR) \
2238N/A -I$(SRC)/uts/sun4u/sys \
146N/A -I$(SRC)/cmd/picl/plugins/inc \
146N/A -I$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
1439N/A
146N/ASRCS= $(OBJECTS:%.o=%.c)
146N/A
206N/ALIBS = $(DYNLIB)
206N/A
146N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
1439N/AROOTLIBDIR := OWNER = root
146N/AROOTLIBDIR := GROUP = sys
206N/A
1439N/ACLEANFILES = $(LINTOUT) $(LINTLIB)
146N/A
146N/ALDLIBS += -L$(SRC)/lib/libptree/$(MACH)
146N/ALDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
146N/ALDLIBS += -L$(ROOT)/usr/lib/picl/plugins -lc -lpicltree \
146N/A -lpicl -lnvpair -lm -ldevinfo -lcfgadm \
146N/A -lpiclfrutree -lrcm -lctsmc
146N/ALDLIBS += -R/usr/platform/$(PLATFORM)/lib
146N/ALDLIBS += -R/usr/platform/$(PLATFORM)/lib/picl/plugins
146N/ALDLIBS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
1439N/A
1439N/A.KEEP_STATE:
1439N/A
1439N/ASUBDIRS=
1439N/A
1439N/APOFILE= snowbird_piclenvmond.po
146N/APOFILES= $(SRCS:%.c=%.po)
2490N/A
2490N/Aall := TARGET= all
146N/Ainstall := TARGET= install
146N/Aclean := TARGET= clean
146N/Aclobber := TARGET= clobber
146N/Alint := TARGET= lint
146N/A_msg := TARGET= _msg
181N/A
146N/Aall: $(LIBS) $(LIBLINKS)
146N/A
146N/Ainstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
146N/A
$(LIBLINKS): FRC
$(RM) $@; $(SYMLINK) ./$(DYNLIB) $@
_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
$(POFILE): $(POFILES)
$(CAT) $(POFILES) > $(POFILE)
$(MSGDOMAIN):
$(INS.dir)
# include library targets
include $(SRC)/lib/Makefile.targ
include $(SRC)/cmd/picl/plugins/Makefile.targ
lint :
$(LINT.c) $(SRCS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: