Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER START
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
73cd555c10e70dac413ae4b40de8450a291750acBin Tu - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Common Development and Distribution License (the "License").
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You may not use this file except in compliance with the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# or http://www.opensolaris.org/os/licensing.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# See the License for the specific language governing permissions
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# and limitations under the License.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# When distributing Covered Code, include this CDDL HEADER in each
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# If applicable, add the following below this CDDL HEADER, with the
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# fields enclosed by brackets "[]" replaced with your own identifying
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# information: Portions Copyright [yyyy] [name of copyright owner]
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# CDDL HEADER END
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ffd8e8832e01f996f32459073f4dd308fe5265baWinson Wang - Sun Microsystems - Beijing China# Use is subject to license terms.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# cmd/picl/plugins/sun4v/lib/snmp/Makefile
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btLIBRARY= libpiclsnmp.a
9da57d7b0ddd8d73b676ce12c040362132cdd538btVERS= .1
9da57d7b0ddd8d73b676ce12c040362132cdd538btOBJECTS= snmplib.o pdu.o asn1.o debug.o
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# include library definitions
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(SRC)/Makefile.psm
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(SRC)/lib/Makefile.lib
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(SRC)/cmd/picl/plugins/Makefile.com
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btSRCS= $(OBJECTS:%.o=%.c)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btLIBS= $(DYNLIB)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btROOTLIBDIR = $(ROOT_PLATFORM)/lib
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btCLEANFILES= $(LINTOUT) $(LINTLIB)
9da57d7b0ddd8d73b676ce12c040362132cdd538btCLOBBERFILES += $(LIBLINKS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btCPPFLAGS += -I. -I../../include -I$(SRC)/uts/sun4v
9da57d7b0ddd8d73b676ce12c040362132cdd538btCPPFLAGS += -D_REENTRANT
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
ffd8e8832e01f996f32459073f4dd308fe5265baWinson Wang - Sun Microsystems - Beijing China#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Be careful when enabling SNMP_DEBUG; the debug log can quickly grow
3cfa0eb9019abbded0c93bce072ab4e73b989c13chenlu chen - Sun Microsystems - Beijing China# very very large. Never run cycle stress test with SNMP_DEBUG enabled!
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#CPPFLAGS += -DSNMP_DEBUG
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Do NOT uncomment the following two lines, unless you want to test
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# the behavior of the library with an SNMP agent over network.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#CPPFLAGS += -DUSE_SOCKETS
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#LDLIBS += -lsocket -lnsl
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btCFLAGS += $(CCVERBOSE) -DBIG_ENDIAN
9da57d7b0ddd8d73b676ce12c040362132cdd538btLDLIBS += -lc -lnvpair
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# It's OK not to build debug.c except when SNMP_DEBUG is enabled.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt# Don't let lint complain about it.
9da57d7b0ddd8d73b676ce12c040362132cdd538bt#
9da57d7b0ddd8d73b676ce12c040362132cdd538btALWAYS_LINT_DEFS += -erroff=E_EMPTY_TRANSLATION_UNIT
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt.KEEP_STATE:
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btSUBDIRS=
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btall := TARGET= all
9da57d7b0ddd8d73b676ce12c040362132cdd538btinstall := TARGET= install
9da57d7b0ddd8d73b676ce12c040362132cdd538btclean := TARGET= clean
9da57d7b0ddd8d73b676ce12c040362132cdd538btclobber := TARGET= clobber
9da57d7b0ddd8d73b676ce12c040362132cdd538btlint := TARGET= lint
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
da14cebe459d3275048785f25bd869cb09b5307fEric Chengall: $(DYNLIB) $(LIBLINKS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538btinstall: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
9da57d7b0ddd8d73b676ce12c040362132cdd538bt
9da57d7b0ddd8d73b676ce12c040362132cdd538bt$(LIBLINKS): FRC
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng $(RM) $@; $(SYMLINK) $(DYNLIB) $@
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# include library targets
da14cebe459d3275048785f25bd869cb09b5307fEric Chenginclude $(SRC)/cmd/picl/plugins/Makefile.targ
9da57d7b0ddd8d73b676ce12c040362132cdd538btinclude $(SRC)/lib/Makefile.targ
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Chenglint :
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng $(LINT.c) -m $(SRCS)
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng$(SUBDIRS): FRC
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng @cd $@; pwd; $(MAKE) $(TARGET)
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng
da14cebe459d3275048785f25bd869cb09b5307fEric ChengFRC:
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng