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]
23 # Copyright 2006 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/mdesc/Makefile
30 LIBRARY
= libmdescplugin.a
35 OBJECTS
= mdescplugin.o init.o dr.o \
36 cpu_prop_update.o disk_discovery.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
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
67 LDLIBS
+= -L
$(SRC
)/lib
/libpicl
/$(MACH
) -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
68 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/picl
/plugins
-L
$(ROOT
)/usr
/lib
/sparcv9
69 DYNFLAGS
+= -R
$(DYNFLAGS_COM
)
71 LDLIBS
+= -lc
-lpicltree
-ldevinfo
-lpicldevtree
-lcfgadm
-lnvpair
76 all: $(LIBS
) $(LIBLINKS
)
78 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
)
81 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
83 # include library targets
84 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
85 include $(SRC
)/lib
/Makefile.targ