Makefile revision 69f689b5f46563c274920df5f8cbb1e399d5ef4d
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan#
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan# CDDL HEADER START
7df179f7a2a6ae3fba6c8d42f5b8a8e5b3a433b3~suv#
7df179f7a2a6ae3fba6c8d42f5b8a8e5b3a433b3~suv# The contents of this file are subject to the terms of the
0d1d9b01d8ed957c2bed1e7fd371457612fe8035ozmikepittman# Common Development and Distribution License (the "License").
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine# You may not use this file except in compliance with the License.
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine#
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0fde093b44fe27a8e17be34eb453e0246482a2e5Kris# or http://www.opensolaris.org/os/licensing.
7df179f7a2a6ae3fba6c8d42f5b8a8e5b3a433b3~suv# See the License for the specific language governing permissions
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine# and limitations under the License.
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine#
0d1d9b01d8ed957c2bed1e7fd371457612fe8035ozmikepittman# When distributing Covered Code, include this CDDL HEADER in each
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c4721fb3051f04182264a23dc2bb7ec3c4cec07aprokoudine# 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 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
MODULE = snmp-trapgen
CLASS = common
SRCS = snmp.c
NETSNMPCONFS = fmd-trapgen.conf
ROOTNETSNMPDIR = $(ROOT)/etc/net-snmp/snmp
ROOTNETSNMPCONFS = $(NETSNMPCONFS:%=$(ROOTNETSNMPDIR)/%)
include ../../Makefile.plugin
SNMPLIBS = -lnetsnmp -lnetsnmpagent -lfmd_msg
lint := SNMPLIBS =
LDFLAGS += -L$(ROOT)/usr/lib/fm -R/usr/lib/fm
LINTFLAGS += -L$(ROOT)/usr/lib/fm
LDLIBS += $(SNMPLIBS) -lfmd_msg
$(ROOTNETSNMPCONFS) := FILEMODE = 0600
$(ROOTNETSNMPDIR)/%: %
$(INS.file)
install: $(ROOTNETSNMPCONFS)