cmd: remove sparc-only virtinfo
[unleashed.git] / usr / src / cmd / picl / plugins / sun4v / pri / Makefile
blobaa0358ba55d1eab52a10c7c7e9ba3d5bc5136546
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
23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
28 # cmd/picl/plugins/sun4v/pri/Makefile
30 LIBRARY= libpriplugin.a
31 VERS= .1
33 OBJS_DIR= pics
35 OBJECTS= priplugin.o init.o \
36 mem_prop_update.o io_dev_label.o \
37 mdesc_findname.o mdesc_findnodeprop.o \
38 mdesc_fini.o mdesc_getpropstr.o \
39 mdesc_getpropval.o mdesc_init_intern.o \
40 mdesc_nodecount.o mdesc_rootnode.o \
41 mdesc_scandag.o mdesc_getpropdata.o
43 # include library definitions
44 include $(SRC)/lib/Makefile.lib
45 include $(SRC)/Makefile.psm
47 include $(SRC)/cmd/picl/plugins/Makefile.com
49 SRCS= $(OBJECTS:%.o=%.c)
51 $(OBJS_DIR)/%.o: $(SRC)/common/mdesc/%.c
52 $(COMPILE.c) -o $@ $<
53 $(CTFCONVERT_O)
55 LIBS = $(DYNLIB)
57 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
58 DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
59 DYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
60 DYNFLAGS_COM = /usr/lib/picl/plugins
62 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
64 CPPFLAGS += -I$(SRC)/common/mdesc
65 CPPFLAGS += -I$(SRC)/uts/common/sys
66 CPPFLAGS += -I$(SRC)/lib/libpri/common
68 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
69 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -L$(ROOT)/usr/lib/sparcv9
70 LDLIBS += -L$(ROOT)/usr/lib/libpri
71 LDLIBS += -L$(ROOT_PLATFORM)/lib -L$(ROOT_PLATFORM)/lib/picl/plugins
73 LDLIBS += -lc -lpicl -lpicltree -lpicldevtree -lpri
75 # No interfaces from libsnmpplugin.so directly used here, but we need the
76 # snmp plugin to load and init before libpriplugin.so.
78 LDLIBS += -lsnmpplugin
80 #DYNFLAGS += -R$(DYNFLAGS_COM)
81 $(SPARC_BLD)LDLIBS += -R$(DYNFLAGS_PLAT) \
82 -R$(DYNFLAGS_SUN4V)
83 LDLIBS += -R$(DYNFLAGS_COM)
86 .KEEP_STATE:
88 all: $(LIBS) $(LIBLINKS)
90 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
92 $(LIBLINKS): FRC
93 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
95 # include library targets
96 include $(SRC)/cmd/picl/plugins/Makefile.targ
97 include $(SRC)/lib/Makefile.targ
99 FRC: