1749f21d3Swesolows# 2749f21d3Swesolows# CDDL HEADER START 3749f21d3Swesolows# 4749f21d3Swesolows# The contents of this file are subject to the terms of the 5749f21d3Swesolows# Common Development and Distribution License (the "License"). 6749f21d3Swesolows# You may not use this file except in compliance with the License. 7749f21d3Swesolows# 8749f21d3Swesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9749f21d3Swesolows# or http://www.opensolaris.org/os/licensing. 10749f21d3Swesolows# See the License for the specific language governing permissions 11749f21d3Swesolows# and limitations under the License. 12749f21d3Swesolows# 13749f21d3Swesolows# When distributing Covered Code, include this CDDL HEADER in each 14749f21d3Swesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15749f21d3Swesolows# If applicable, add the following below this CDDL HEADER, with the 16749f21d3Swesolows# fields enclosed by brackets "[]" replaced with your own identifying 17749f21d3Swesolows# information: Portions Copyright [yyyy] [name of copyright owner] 18749f21d3Swesolows# 19749f21d3Swesolows# CDDL HEADER END 20749f21d3Swesolows# 21749f21d3Swesolows# 220bb07399SNick Todd# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23749f21d3Swesolows# Use is subject to license terms. 24749f21d3Swesolows# 25749f21d3Swesolows 26749f21d3SwesolowsLIBRARY = libfmd_snmp.a 27749f21d3SwesolowsVERS = .1 28749f21d3Swesolows 29749f21d3SwesolowsLIBSRCS = \ 30749f21d3Swesolows debug_subr.c \ 31749f21d3Swesolows init.c \ 32749f21d3Swesolows module.c \ 33749f21d3Swesolows problem.c \ 34749f21d3Swesolows resource.c \ 35749f21d3Swesolows scheme.c 36749f21d3Swesolows 37749f21d3SwesolowsOBJECTS = $(LIBSRCS:%.c=%.o) 38749f21d3Swesolows 39749f21d3Swesolowsinclude ../../../Makefile.lib 40749f21d3Swesolowsinclude ../../Makefile.lib 41749f21d3Swesolows 42749f21d3SwesolowsSRCS = $(LIBSRCS:%.c=../common/%.c) 43749f21d3SwesolowsLIBS = $(DYNLIB) $(LINTLIB) 44749f21d3Swesolows 45749f21d3SwesolowsSRCDIR = ../common 46749f21d3Swesolows 47*e3dc7d16SDan McDonaldC99MODE= $(C99_ENABLE) 48*e3dc7d16SDan McDonald 49fc3af78aSBasabi BhattacharyaCPPFLAGS += -I../common -I. 50749f21d3Swesolows$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 51749f21d3SwesolowsCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) 52749f21d3SwesolowsCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) 53749f21d3Swesolows 5430698f33Swesolows# No lint libraries are delivered for Net-SNMP yet 55fc3af78aSBasabi BhattacharyaSNMPLIBS = -lnetsnmp -lnetsnmphelpers -lnetsnmpagent 5630698f33Swesolowslint := SNMPLIBS= 5730698f33Swesolows 58749f21d3SwesolowsLDLIBS += $(MACH_LDLIBS) 591fe76c0bSwesolowsLDLIBS += -lfmd_adm -luutil -lnvpair -ltopo 6030698f33SwesolowsLDLIBS += $(SNMPLIBS) 6130698f33SwesolowsLDLIBS += -lc 62749f21d3Swesolows 63*e3dc7d16SDan McDonaldLINTFLAGS = -msux $(C99LMODE) 64*e3dc7d16SDan McDonaldLINTFLAGS64 = -msux -m64 $(C99LMODE) 65749f21d3Swesolows 6630698f33Swesolows# Net-SNMP's headers use do {} while (0) a lot 6730698f33SwesolowsLINTCHECKFLAGS += -erroff=E_CONSTANT_CONDITION 6830698f33Swesolows 69749f21d3Swesolows$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 70749f21d3Swesolows$(LINTLIB) := LINTFLAGS = -nsvx 710bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 72749f21d3Swesolows 73749f21d3Swesolows.KEEP_STATE: 74749f21d3Swesolows 75749f21d3Swesolowsall: $(LIBS) 76749f21d3Swesolows 77749f21d3Swesolowslint: $(LINTLIB) lintcheck 78749f21d3Swesolows 79749f21d3Swesolowspics/%.o: ../$(MACH)/%.c 80749f21d3Swesolows $(COMPILE.c) -o $@ $< 81749f21d3Swesolows $(POST_PROCESS_O) 82749f21d3Swesolows 83749f21d3Swesolows%.o: ../common/%.c 84749f21d3Swesolows $(COMPILE.c) -o $@ $< 85749f21d3Swesolows $(POST_PROCESS_O) 86749f21d3Swesolows 87749f21d3Swesolowsinclude ../../../Makefile.targ 88749f21d3Swesolowsinclude ../../Makefile.targ 89