cmd: remove sparc-only virtinfo
[unleashed.git] / usr / src / cmd / picl / plugins / sun4u / envmon / Makefile
blobb2ea2a8acfa04715654f98438a5d2316b8518a57
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.
25 # cmd/picl/plugins/sun4u/envmon/Makefile
27 include $(SRC)/Makefile.psm
29 LIBRARY= libpiclenvmon.a
30 VERS= .1
32 OBJECTS= piclenvmon.o
34 # include library definitions
35 include $(SRC)/lib/Makefile.lib
37 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
39 include $(SRC)/cmd/picl/plugins/Makefile.com
41 SRCS= $(OBJECTS:%.o=%.c)
43 LIBS = $(DYNLIB)
45 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
48 CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
49 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
50 DYNFLAGS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
51 LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
52 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
53 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/piclevent
54 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/memcfg
55 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
56 LDLIBS += -lnvpair -ldevinfo -lc
57 LDLIBS += -lpicltree -lpicld_pluginutil -lpiclevent -lpicldevtree
59 .KEEP_STATE:
61 SUBDIRS=
63 all := TARGET= all
64 install := TARGET= install
65 clean := TARGET= clean
66 clobber := TARGET= clobber
67 _msg := TARGET= _msg
69 POFILE = piclenvmon_sun4u.po
70 POFILES = $(SRCS:%.c=%.po)
72 all: $(LIBS) $(LIBLINKS)
74 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
76 $(POFILE): $(POFILES)
77 $(CAT) $(POFILES) > $(POFILE)
79 _msg: $(MSGDOMAIN) $(POFILE)
80 $(RM) $(MSGDOMAIN)/$(POFILE)
81 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
83 $(MSGDOMAIN):
84 $(INS.dir)
87 $(LIBLINKS): FRC
88 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
90 # include library targets
91 include $(SRC)/lib/Makefile.targ
92 include $(SRC)/cmd/picl/plugins/Makefile.targ
94 $(SUBDIRS): FRC
95 @cd $@; pwd; $(MAKE) $(TARGET)
97 FRC: