view usr/src/cmd/fm/modules/common/snmp-trapgen/Makefile @ 3723:5f86ecf710b8

PSARC 2007/101 FMA libfmd_msg 6510717 syslog and snmp agents can both use setlocale() at the same time
author af
date Tue, 27 Feb 2007 05:23:54 -0800
parents 6e5751a0b831
children 0b12840cc79d
line wrap: on
line source

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"%Z%%M%	%I%	%E% SMI"
#

MODULE = snmp-trapgen
CLASS = common
SRCS = snmp.c
SMASNMPCONFS = fmd-trapgen.conf

ROOTSMASNMPDIR = $(ROOT)/etc/sma/snmp
ROOTSMASNMPCONFS = $(SMASNMPCONFS:%=$(ROOTSMASNMPDIR)/%)

include ../../Makefile.plugin

SNMPLIBS = -lnetsnmp -lnetsnmpagent
lint := SNMPLIBS =

CPPFLAGS += -I/usr/sfw/include
LDFLAGS += -L/usr/sfw/lib -L$(ROOT)/usr/lib/fm -R/usr/sfw/lib:/usr/lib/fm
LINTFLAGS += -L$(ROOT)/usr/lib/fm
LDLIBS += $(SNMPLIBS) -lfmd_msg

$(ROOTSMASNMPCONFS) := FILEMODE = 0600

$(ROOTSMASNMPDIR)/%: %
	$(INS.file)

install: $(ROOTSMASNMPCONFS)