1*0d63ce2bSvenki# 2*0d63ce2bSvenki# CDDL HEADER START 3*0d63ce2bSvenki# 4*0d63ce2bSvenki# The contents of this file are subject to the terms of the 5*0d63ce2bSvenki# Common Development and Distribution License (the "License"). 6*0d63ce2bSvenki# You may not use this file except in compliance with the License. 7*0d63ce2bSvenki# 8*0d63ce2bSvenki# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*0d63ce2bSvenki# or http://www.opensolaris.org/os/licensing. 10*0d63ce2bSvenki# See the License for the specific language governing permissions 11*0d63ce2bSvenki# and limitations under the License. 12*0d63ce2bSvenki# 13*0d63ce2bSvenki# When distributing Covered Code, include this CDDL HEADER in each 14*0d63ce2bSvenki# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*0d63ce2bSvenki# If applicable, add the following below this CDDL HEADER, with the 16*0d63ce2bSvenki# fields enclosed by brackets "[]" replaced with your own identifying 17*0d63ce2bSvenki# information: Portions Copyright [yyyy] [name of copyright owner] 18*0d63ce2bSvenki# 19*0d63ce2bSvenki# CDDL HEADER END 20*0d63ce2bSvenki# 21*0d63ce2bSvenki 22*0d63ce2bSvenki# 23*0d63ce2bSvenki# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*0d63ce2bSvenki# Use is subject to license terms. 25*0d63ce2bSvenki# 26*0d63ce2bSvenki# ident "%Z%%M% %I% %E% SMI" 27*0d63ce2bSvenki# 28*0d63ce2bSvenki# cmd/picl/plugins/sun4v/snmp/Makefile 29*0d63ce2bSvenki# 30*0d63ce2bSvenki 31*0d63ce2bSvenkiLIBRARY= libsnmpplugin.a 32*0d63ce2bSvenkiVERS= .1 33*0d63ce2bSvenki 34*0d63ce2bSvenkiOBJS_DIR= pics 35*0d63ce2bSvenkiOBJECTS= snmpplugin.o 36*0d63ce2bSvenki 37*0d63ce2bSvenki# Include library definitions 38*0d63ce2bSvenkiinclude $(SRC)/lib/Makefile.lib 39*0d63ce2bSvenkiinclude $(SRC)/Makefile.psm 40*0d63ce2bSvenkiinclude $(SRC)/cmd/picl/plugins/Makefile.com 41*0d63ce2bSvenki 42*0d63ce2bSvenkiSRCS= $(OBJECTS:%.o=%.c) 43*0d63ce2bSvenkiLIBS = $(DYNLIB) 44*0d63ce2bSvenki 45*0d63ce2bSvenkiROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v 46*0d63ce2bSvenkiROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 47*0d63ce2bSvenki 48*0d63ce2bSvenkiCLEANFILES= $(LINTOUT) $(LINTLIB) 49*0d63ce2bSvenki 50*0d63ce2bSvenkiCPPFLAGS += -I. -I../include -I$(SRC)/uts/common/sys 51*0d63ce2bSvenkiCPPFLAGS += -D_REENTRANT 52*0d63ce2bSvenki 53*0d63ce2bSvenki# 54*0d63ce2bSvenki# Be careful when enabling SNMPPLUGIN_DEBUG. The debug log can quickly 55*0d63ce2bSvenki# grow too large. NEVER stress/cycle test picl with SNMPPLUGIN_DEBUG 56*0d63ce2bSvenki# enabled 57*0d63ce2bSvenki# 58*0d63ce2bSvenki#CPPFLAGS += -DSNMPPLUGIN_DEBUG 59*0d63ce2bSvenki 60*0d63ce2bSvenkiCFLAGS += $(CCVERBOSE) 61*0d63ce2bSvenkiLDLIBS += -L$(SRC)/lib/libpicltree/$(MACH) 62*0d63ce2bSvenkiLDLIBS += -L$(SRC)/cmd/picl/plugins/sun4v/lib/snmp 63*0d63ce2bSvenkiLDLIBS += -L$(ROOT)/usr/lib/sparcv9 64*0d63ce2bSvenkiLDLIBS += -lc -lpicltree -lpiclsnmp 65*0d63ce2bSvenkiDYNFLAGS += -R/usr/platform/sun4v/lib 66*0d63ce2bSvenki 67*0d63ce2bSvenkiPOFILE = snmpplugin_sun4v.po 68*0d63ce2bSvenkiPOFILES = $(SRCS:%.c=%.po) 69*0d63ce2bSvenki 70*0d63ce2bSvenki.KEEP_STATE: 71*0d63ce2bSvenki 72*0d63ce2bSvenkiall: $(LIBS) $(LIBLINKS) 73*0d63ce2bSvenki 74*0d63ce2bSvenkiinstall: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 75*0d63ce2bSvenki 76*0d63ce2bSvenki$(LIBLINKS): FRC 77*0d63ce2bSvenki $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 78*0d63ce2bSvenki 79*0d63ce2bSvenki# Messages 80*0d63ce2bSvenki_msg: $(MSGDOMAIN) $(POFILE) 81*0d63ce2bSvenki $(RM) $(MSGDOMAIN)/$(POFILE) 82*0d63ce2bSvenki $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE) 83*0d63ce2bSvenki 84*0d63ce2bSvenki$(MSGDOMAIN): 85*0d63ce2bSvenki $(INS.dir) 86*0d63ce2bSvenki 87*0d63ce2bSvenki$(POFILE): $(POFILES) 88*0d63ce2bSvenki $(CAT) $(POFILES) > $(POFILE) 89*0d63ce2bSvenki 90*0d63ce2bSvenki# Include library targets 91*0d63ce2bSvenkiinclude $(SRC)/cmd/picl/plugins/Makefile.targ 92*0d63ce2bSvenkiinclude $(SRC)/lib/Makefile.targ 93*0d63ce2bSvenki 94*0d63ce2bSvenkilint : 95*0d63ce2bSvenki $(LINT.c) $(SRCS) 96*0d63ce2bSvenki 97*0d63ce2bSvenkiFRC: 98