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*f6e214c7SGavin Maltby# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 23749f21d3Swesolows# 24749f21d3Swesolows# 25749f21d3Swesolows 26749f21d3Swesolowsinclude ../../Makefile.lib 27749f21d3Swesolowsinclude ../Makefile.lib 28749f21d3Swesolows 29749f21d3SwesolowsFMHDRS = fmd_snmp.h 30749f21d3SwesolowsHDRDIR = common 31749f21d3Swesolows 32749f21d3SwesolowsSUBDIRS = $(MACH) 33749f21d3Swesolows$(BUILD64)SUBDIRS += $(MACH64) 34749f21d3Swesolows 35*f6e214c7SGavin MaltbyMIBFILES = SUN-FM-MIB.mib SUN-IREPORT-MIB.mib 36749f21d3Swesolows 3769f689b5SVijay HNROOTNETSNMPMIBDIR = $(ROOT)/etc/net-snmp/snmp/mibs 3869f689b5SVijay HNROOTMIBS = $(MIBFILES:%=$(ROOTNETSNMPMIBDIR)/%) 39749f21d3Swesolows 40749f21d3Swesolows$(ROOTMIBS) := FILEMODE = 0644 4169f689b5SVijay HN$(ROOTNETSNMPMIBDIR) := DIRMODE = 0755 42749f21d3Swesolows 43749f21d3Swesolowsall := TARGET = all 44749f21d3Swesolowsclean := TARGET = clean 45749f21d3Swesolowsclobber := TARGET = clobber 46749f21d3Swesolowsinstall := TARGET = install 47749f21d3Swesolowslint := TARGET = lint 48749f21d3Swesolows 49749f21d3Swesolows.KEEP_STATE: 50749f21d3Swesolows 51f808c858Srafall lint clean clobber: $(SUBDIRS) 52749f21d3Swesolows 53f808c858Srafinstall: install_h install_mibs .WAIT $(SUBDIRS) 54749f21d3Swesolows 55749f21d3Swesolowsinstall_h: $(ROOTFMHDRS) 56749f21d3Swesolows 5769f689b5SVijay HNinstall_mibs: $(ROOTNETSNMPMIBDIR) $(ROOTMIBS) 58749f21d3Swesolows 59749f21d3Swesolowscheck: $(CHECKHDRS) 60749f21d3Swesolows 61f808c858Sraf$(SUBDIRS): FRC 62749f21d3Swesolows @cd $@; pwd; $(MAKE) $(TARGET) 63749f21d3Swesolows 6469f689b5SVijay HN$(ROOTNETSNMPMIBDIR): 65749f21d3Swesolows $(INS.dir) 66749f21d3Swesolows 6769f689b5SVijay HN$(ROOTNETSNMPMIBDIR)/%: mibs/% 68749f21d3Swesolows $(INS.file) 69749f21d3Swesolows 70749f21d3SwesolowsFRC: 71749f21d3Swesolows 72749f21d3Swesolowsinclude ../../Makefile.targ 73749f21d3Swesolowsinclude ../Makefile.targ 74