cmd: remove sparc-only virtinfo
[unleashed.git] / usr / src / cmd / picl / plugins / sun4u / snowbird / envmond / Makefile
blob20953e7c97b56c79a365678775a46cc4796cd9a0
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 include $(SRC)/Makefile.psm
28 LIBRARY = libpiclenvmond.a
29 VERS = .1
30 PLATFORM = SUNW,Netra-CP2300
32 OBJECTS= piclenvmond.o piclsensors.o picldr.o piclplatmod.o
34 # include library definitions
35 include $(SRC)/lib/Makefile.lib
37 ROOT_PLATFORM = $(USR_PLAT_DIR)/$(PLATFORM)
39 include $(SRC)/cmd/picl/plugins/Makefile.com
41 CPPFLAGS += -D_SNOWBIRD \
42 -I$(USR_PSM_INCL_DIR) \
43 -I$(SRC)/uts/sun4u/sys \
44 -I$(SRC)/cmd/picl/plugins/inc \
45 -I$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
47 SRCS= $(OBJECTS:%.o=%.c)
49 LIBS = $(DYNLIB)
51 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
53 LDLIBS += -L$(SRC)/lib/libptree/$(MACH)
54 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
55 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -lc -lpicltree \
56 -lpicl -lnvpair -lm -ldevinfo -lcfgadm \
57 -lpiclfrutree -lrcm -lctsmc
58 LDLIBS += -R/usr/platform/$(PLATFORM)/lib
59 LDLIBS += -R/usr/platform/$(PLATFORM)/lib/picl/plugins
60 LDLIBS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
62 .KEEP_STATE:
64 SUBDIRS=
66 POFILE= snowbird_piclenvmond.po
67 POFILES= $(SRCS:%.c=%.po)
69 all := TARGET= all
70 install := TARGET= install
71 clean := TARGET= clean
72 clobber := TARGET= clobber
73 _msg := TARGET= _msg
75 all: $(LIBS) $(LIBLINKS)
77 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
79 $(LIBLINKS): FRC
80 $(RM) $@; $(SYMLINK) ./$(DYNLIB) $@
82 _msg: $(MSGDOMAIN) $(POFILE)
83 $(RM) $(MSGDOMAIN)/$(POFILE)
84 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
86 $(POFILE): $(POFILES)
87 $(CAT) $(POFILES) > $(POFILE)
89 $(MSGDOMAIN):
90 $(INS.dir)
92 # include library targets
93 include $(SRC)/lib/Makefile.targ
94 include $(SRC)/cmd/picl/plugins/Makefile.targ
96 $(SUBDIRS): FRC
97 @cd $@; pwd; $(MAKE) $(TARGET)
99 FRC: