0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# CDDL HEADER START
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# The contents of this file are subject to the terms of the
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Common Development and Distribution License (the "License").
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# You may not use this file except in compliance with the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# or http://www.opensolaris.org/os/licensing.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# See the License for the specific language governing permissions
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# and limitations under the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# If applicable, add the following below this CDDL HEADER, with the
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# CDDL HEADER END
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Use is subject to license terms.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# cmd/picl/plugins/sun4v/lib/snmp/Makefile
b37e7426f831073464d6d2fe687b959db7ce8273Mark de Reeper#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterLIBRARY= libpiclsnmp.a
c0192b083f2f990e5bcdeef3db8e55676fc42f5aRich RileyVERS= .1
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterOBJECTS= snmplib.o pdu.o asn1.o debug.o
c0192b083f2f990e5bcdeef3db8e55676fc42f5aRich Riley
c0192b083f2f990e5bcdeef3db8e55676fc42f5aRich Riley# include library definitions
c0192b083f2f990e5bcdeef3db8e55676fc42f5aRich Rileyinclude $(SRC)/Makefile.psm
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterinclude $(SRC)/lib/Makefile.lib
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Major
c0192b083f2f990e5bcdeef3db8e55676fc42f5aRich Rileyinclude $(SRC)/cmd/picl/plugins/Makefile.com
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterSRCS= $(OBJECTS:%.o=%.c)
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterLIBS= $(DYNLIB)
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterROOTLIBDIR = $(ROOT_PLATFORM)/lib
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterCLEANFILES= $(LINTOUT) $(LINTLIB)
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterCLOBBERFILES += $(LIBLINKS)
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterCPPFLAGS += -I. -I../../include -I$(SRC)/uts/sun4v
0a99555401a033704f1f171baab6db11fb5528f2Allan FosterCPPFLAGS += -D_REENTRANT
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster#
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Be careful when enabling SNMP_DEBUG; the debug log can quickly grow
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# very very large. Never run cycle stress test with SNMP_DEBUG enabled!
#
#CPPFLAGS += -DSNMP_DEBUG
#
# Do NOT uncomment the following two lines, unless you want to test
# the behavior of the library with an SNMP agent over network.
#
#CPPFLAGS += -DUSE_SOCKETS
#LDLIBS += -lsocket -lnsl
CFLAGS += $(CCVERBOSE) -DBIG_ENDIAN
LDLIBS += -lc -lnvpair
# It's OK not to build debug.c except when SNMP_DEBUG is enabled.
# Don't let lint complain about it.
#
ALWAYS_LINT_DEFS += -erroff=E_EMPTY_TRANSLATION_UNIT
.KEEP_STATE:
SUBDIRS=
all := TARGET= all
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
all: $(DYNLIB) $(LIBLINKS)
install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
$(LIBLINKS): FRC
$(RM) $@; $(SYMLINK) $(DYNLIB) $@
# include library targets
include $(SRC)/cmd/picl/plugins/Makefile.targ
include $(SRC)/lib/Makefile.targ
lint :
$(LINT.c) -m $(SRCS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: