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# 22*69f689b5SVijay HN# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23749f21d3Swesolows# Use is subject to license terms. 24749f21d3Swesolows# 25749f21d3Swesolows# 26749f21d3Swesolows 27749f21d3Swesolowsinclude ../../Makefile.lib 28749f21d3Swesolowsinclude ../Makefile.lib 29749f21d3Swesolows 30749f21d3SwesolowsFMHDRS = fmd_snmp.h 31749f21d3SwesolowsHDRDIR = common 32749f21d3Swesolows 33749f21d3SwesolowsSUBDIRS = $(MACH) 34749f21d3Swesolows$(BUILD64)SUBDIRS += $(MACH64) 35749f21d3Swesolows 36749f21d3SwesolowsMIBFILES = SUN-FM-MIB.mib 37749f21d3Swesolows 38*69f689b5SVijay HNROOTNETSNMPMIBDIR = $(ROOT)/etc/net-snmp/snmp/mibs 39*69f689b5SVijay HNROOTMIBS = $(MIBFILES:%=$(ROOTNETSNMPMIBDIR)/%) 40749f21d3Swesolows 41749f21d3Swesolows$(ROOTMIBS) := FILEMODE = 0644 42*69f689b5SVijay HN$(ROOTNETSNMPMIBDIR) := DIRMODE = 0755 43749f21d3Swesolows 44749f21d3Swesolowsall := TARGET = all 45749f21d3Swesolowsclean := TARGET = clean 46749f21d3Swesolowsclobber := TARGET = clobber 47749f21d3Swesolowsinstall := TARGET = install 48749f21d3Swesolowslint := TARGET = lint 49749f21d3Swesolows 50749f21d3Swesolows.KEEP_STATE: 51749f21d3Swesolows 52f808c858Srafall lint clean clobber: $(SUBDIRS) 53749f21d3Swesolows 54f808c858Srafinstall: install_h install_mibs .WAIT $(SUBDIRS) 55749f21d3Swesolows 56749f21d3Swesolowsinstall_h: $(ROOTFMHDRS) 57749f21d3Swesolows 58*69f689b5SVijay HNinstall_mibs: $(ROOTNETSNMPMIBDIR) $(ROOTMIBS) 59749f21d3Swesolows 60749f21d3Swesolowscheck: $(CHECKHDRS) 61749f21d3Swesolows 62f808c858Sraf$(SUBDIRS): FRC 63749f21d3Swesolows @cd $@; pwd; $(MAKE) $(TARGET) 64749f21d3Swesolows 65*69f689b5SVijay HN$(ROOTNETSNMPMIBDIR): 66749f21d3Swesolows $(INS.dir) 67749f21d3Swesolows 68*69f689b5SVijay HN$(ROOTNETSNMPMIBDIR)/%: mibs/% 69749f21d3Swesolows $(INS.file) 70749f21d3Swesolows 71749f21d3SwesolowsFRC: 72749f21d3Swesolows 73749f21d3Swesolowsinclude ../../Makefile.targ 74749f21d3Swesolowsinclude ../Makefile.targ 75