Home | History | Annotate | Download | only in snmp-trapgen
      1 #
      2 # CDDL HEADER START
      3 #
      4 # The contents of this file are subject to the terms of the
      5 # Common Development and Distribution License (the "License").
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15 # If applicable, add the following below this CDDL HEADER, with the
     16 # fields enclosed by brackets "[]" replaced with your own identifying
     17 # information: Portions Copyright [yyyy] [name of copyright owner]
     18 #
     19 # CDDL HEADER END
     20 #
     21 
     22 #
     23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #
     27 
     28 MODULE = snmp-trapgen
     29 CLASS = common
     30 SRCS = snmp.c
     31 NETSNMPCONFS = fmd-trapgen.conf
     32 
     33 ROOTNETSNMPDIR = $(ROOT)/etc/net-snmp/snmp
     34 ROOTNETSNMPCONFS = $(NETSNMPCONFS:%=$(ROOTNETSNMPDIR)/%)
     35 
     36 include ../../Makefile.plugin
     37 
     38 SNMPLIBS = -lnetsnmp -lnetsnmpagent -lfmd_msg
     39 lint := SNMPLIBS =
     40 
     41 LDFLAGS += -L$(ROOT)/usr/lib/fm -R/usr/lib/fm
     42 LINTFLAGS += -L$(ROOT)/usr/lib/fm
     43 LDLIBS += $(SNMPLIBS) -lfmd_msg
     44 
     45 $(ROOTNETSNMPCONFS) := FILEMODE = 0600
     46 
     47 $(ROOTNETSNMPDIR)/%: %
     48 	$(INS.file)
     49 
     50 install: $(ROOTNETSNMPCONFS)
     51