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 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/snmp/Makefile
31 LIBRARY
= libsnmpplugin.a
37 # Include library definitions
38 include $(SRC
)/lib
/Makefile.lib
39 include $(SRC
)/Makefile.psm
40 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
42 SRCS
= $(OBJECTS
:%.o
=%.c
)
45 ROOT_PLATFORM
= $(USR_PLAT_DIR
)/sun4v
46 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
48 CPPFLAGS
+= -I.
-I..
/include -I
$(SRC
)/uts
/common
/sys
51 # Be careful when enabling SNMPPLUGIN_DEBUG. The debug log can quickly
52 # grow too large. NEVER stress/cycle test picl with SNMPPLUGIN_DEBUG
55 #CPPFLAGS += -DSNMPPLUGIN_DEBUG
57 LDLIBS
+= -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
58 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4v
/lib
/snmp
59 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/sparcv9
60 LDLIBS
+= -lc
-lpicltree
-lpiclsnmp
61 DYNFLAGS
+= -R
/usr
/platform
/sun4v
/lib
63 POFILE
= snmpplugin_sun4v.po
64 POFILES
= $(SRCS
:%.c
=%.po
)
68 all: $(LIBS
) $(LIBLINKS
)
70 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
)
73 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
76 _msg
: $(MSGDOMAIN
) $(POFILE
)
77 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
78 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE
)
84 $(CAT
) $(POFILES
) > $(POFILE
)
86 # Include library targets
87 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
88 include $(SRC
)/lib
/Makefile.targ