xref: /onnv-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/Makefile (revision 10207:87c40ea3fc4b)
13941Svenki#
23941Svenki# CDDL HEADER START
33941Svenki#
43941Svenki# The contents of this file are subject to the terms of the
53941Svenki# Common Development and Distribution License (the "License").
63941Svenki# You may not use this file except in compliance with the License.
73941Svenki#
83941Svenki# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93941Svenki# or http://www.opensolaris.org/os/licensing.
103941Svenki# See the License for the specific language governing permissions
113941Svenki# and limitations under the License.
123941Svenki#
133941Svenki# When distributing Covered Code, include this CDDL HEADER in each
143941Svenki# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153941Svenki# If applicable, add the following below this CDDL HEADER, with the
163941Svenki# fields enclosed by brackets "[]" replaced with your own identifying
173941Svenki# information: Portions Copyright [yyyy] [name of copyright owner]
183941Svenki#
193941Svenki# CDDL HEADER END
203941Svenki#
213941Svenki
223941Svenki#
23*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
243941Svenki# Use is subject to license terms.
253941Svenki#
263941Svenki
273941Svenki#
283941Svenki# cmd/picl/plugins/sun4v/lib/snmp/Makefile
293941Svenki#
303941Svenki
313941SvenkiLIBRARY=	libpiclsnmp.a
323941SvenkiVERS=		.1
333941SvenkiOBJECTS=	snmplib.o pdu.o asn1.o debug.o
343941Svenki
353941Svenki# include library definitions
363941Svenkiinclude $(SRC)/Makefile.psm
373941Svenkiinclude $(SRC)/lib/Makefile.lib
383941Svenki
393941SvenkiROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
403941Svenki
413941Svenkiinclude $(SRC)/cmd/picl/plugins/Makefile.com
423941Svenki
433941SvenkiSRCS=		$(OBJECTS:%.o=%.c)
443941Svenki
453941SvenkiLIBS=		$(DYNLIB)
463941Svenki
473941SvenkiROOTLIBDIR      = $(ROOT_PLATFORM)/lib
483941Svenki
493941SvenkiCLEANFILES=	$(LINTOUT) $(LINTLIB)
503941SvenkiCLOBBERFILES += $(LIBLINKS)
513941Svenki
523941SvenkiCPPFLAGS +=	-I. -I../../include -I$(SRC)/uts/sun4v
533941SvenkiCPPFLAGS +=	-D_REENTRANT
543941Svenki
553941Svenki#
563941Svenki# Be careful when enabling SNMP_DEBUG; the debug log can quickly grow
573941Svenki# very very large. Never run cycle stress test with SNMP_DEBUG enabled!
583941Svenki#
593941Svenki#CPPFLAGS +=	-DSNMP_DEBUG
603941Svenki
613941Svenki#
623941Svenki# Do NOT uncomment the following two lines, unless you want to test
633941Svenki# the behavior of the library with an SNMP agent over network.
643941Svenki#
653941Svenki#CPPFLAGS +=	-DUSE_SOCKETS
663941Svenki#LDLIBS +=	-lsocket -lnsl
673941Svenki
683941SvenkiCFLAGS +=	$(CCVERBOSE) -DBIG_ENDIAN
693941SvenkiLDLIBS +=	-lc -lnvpair
703941Svenki
713941Svenki# It's OK not to build debug.c except when SNMP_DEBUG is enabled.
723941Svenki# Don't let lint complain about it.
733941Svenki#
743941SvenkiALWAYS_LINT_DEFS +=	-erroff=E_EMPTY_TRANSLATION_UNIT
753941Svenki
763941Svenki.KEEP_STATE:
773941Svenki
783941Svenki
793941SvenkiSUBDIRS=
803941Svenki
813941Svenkiall :=		TARGET= all
823941Svenkiinstall :=	TARGET= install
833941Svenkiclean :=	TARGET= clean
843941Svenkiclobber :=	TARGET= clobber
853941Svenkilint :=		TARGET= lint
863941Svenki
873941Svenkiall:  $(DYNLIB) $(LIBLINKS)
883941Svenki
893941Svenkiinstall:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
903941Svenki
913941Svenki$(LIBLINKS):	FRC
923941Svenki	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
933941Svenki
943941Svenki# include library targets
953941Svenkiinclude $(SRC)/cmd/picl/plugins/Makefile.targ
963941Svenkiinclude $(SRC)/lib/Makefile.targ
973941Svenki
983941Svenkilint :
993941Svenki	$(LINT.c) -m $(SRCS)
1003941Svenki
1013941Svenki$(SUBDIRS): FRC
1023941Svenki	@cd $@; pwd; $(MAKE) $(TARGET)
1033941Svenki
1043941SvenkiFRC:
105