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 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
50 CPPFLAGS
+= -I.
-I..
/include -I
$(SRC
)/uts
/common
/sys
51 CPPFLAGS
+= -D_REENTRANT
54 # Be careful when enabling SNMPPLUGIN_DEBUG. The debug log can quickly
55 # grow too large. NEVER stress/cycle test picl with SNMPPLUGIN_DEBUG
58 #CPPFLAGS += -DSNMPPLUGIN_DEBUG
60 CFLAGS
+= $(CCVERBOSE
)
61 LDLIBS
+= -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
62 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/sun4v
/lib
/snmp
63 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/sparcv9
64 LDLIBS
+= -lc
-lpicltree
-lpiclsnmp
65 DYNFLAGS
+= -R
/usr
/platform
/sun4v
/lib
67 POFILE
= snmpplugin_sun4v.po
68 POFILES
= $(SRCS
:%.c
=%.po
)
72 all: $(LIBS
) $(LIBLINKS
)
74 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
)
77 $(RM
) $(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
80 _msg
: $(MSGDOMAIN
) $(POFILE
)
81 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
82 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE
)
88 $(CAT
) $(POFILES
) > $(POFILE
)
90 # Include library targets
91 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
92 include $(SRC
)/lib
/Makefile.targ