1*749f21d3Swesolows# 2*749f21d3Swesolows# CDDL HEADER START 3*749f21d3Swesolows# 4*749f21d3Swesolows# The contents of this file are subject to the terms of the 5*749f21d3Swesolows# Common Development and Distribution License (the "License"). 6*749f21d3Swesolows# You may not use this file except in compliance with the License. 7*749f21d3Swesolows# 8*749f21d3Swesolows# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*749f21d3Swesolows# or http://www.opensolaris.org/os/licensing. 10*749f21d3Swesolows# See the License for the specific language governing permissions 11*749f21d3Swesolows# and limitations under the License. 12*749f21d3Swesolows# 13*749f21d3Swesolows# When distributing Covered Code, include this CDDL HEADER in each 14*749f21d3Swesolows# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*749f21d3Swesolows# If applicable, add the following below this CDDL HEADER, with the 16*749f21d3Swesolows# fields enclosed by brackets "[]" replaced with your own identifying 17*749f21d3Swesolows# information: Portions Copyright [yyyy] [name of copyright owner] 18*749f21d3Swesolows# 19*749f21d3Swesolows# CDDL HEADER END 20*749f21d3Swesolows# 21*749f21d3Swesolows 22*749f21d3Swesolows# 23*749f21d3Swesolows# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*749f21d3Swesolows# Use is subject to license terms. 25*749f21d3Swesolows# 26*749f21d3Swesolows# ident "%Z%%M% %I% %E% SMI" 27*749f21d3Swesolows# 28*749f21d3Swesolows 29*749f21d3Swesolowsinclude ../../Makefile.lib 30*749f21d3Swesolowsinclude ../Makefile.lib 31*749f21d3Swesolows 32*749f21d3SwesolowsFMHDRS = fmd_snmp.h 33*749f21d3SwesolowsHDRDIR = common 34*749f21d3Swesolows 35*749f21d3SwesolowsSUBDIRS = $(MACH) 36*749f21d3Swesolows$(BUILD64)SUBDIRS += $(MACH64) 37*749f21d3Swesolows 38*749f21d3SwesolowsMIBFILES = SUN-FM-MIB.mib 39*749f21d3Swesolows 40*749f21d3SwesolowsROOTSMAMIBDIR = $(ROOT)/etc/sma/snmp/mibs 41*749f21d3SwesolowsROOTMIBS = $(MIBFILES:%=$(ROOTSMAMIBDIR)/%) 42*749f21d3Swesolows 43*749f21d3Swesolows$(ROOTMIBS) := FILEMODE = 0644 44*749f21d3Swesolows$(ROOTSMAMIBDIR) := DIRMODE = 0755 45*749f21d3Swesolows 46*749f21d3Swesolowsall := TARGET = all 47*749f21d3Swesolowsclean := TARGET = clean 48*749f21d3Swesolowsclobber := TARGET = clobber 49*749f21d3Swesolowsinstall := TARGET = install 50*749f21d3Swesolowslint := TARGET = lint 51*749f21d3Swesolows 52*749f21d3Swesolows.KEEP_STATE: 53*749f21d3Swesolows 54*749f21d3Swesolowsall clean clobber: spec .WAIT $(SUBDIRS) 55*749f21d3Swesolows 56*749f21d3Swesolowsinstall: install_h install_mibs spec .WAIT $(SUBDIRS) 57*749f21d3Swesolows 58*749f21d3Swesolowslint: 59*749f21d3Swesolows 60*749f21d3Swesolowsinstall_h: $(ROOTFMHDRS) 61*749f21d3Swesolows 62*749f21d3Swesolowsinstall_mibs: $(ROOTSMAMIBDIR) $(ROOTMIBS) 63*749f21d3Swesolows 64*749f21d3Swesolowscheck: $(CHECKHDRS) 65*749f21d3Swesolows 66*749f21d3Swesolowsspec $(SUBDIRS): FRC 67*749f21d3Swesolows @cd $@; pwd; $(MAKE) $(TARGET) 68*749f21d3Swesolows 69*749f21d3Swesolows$(ROOTSMAMIBDIR): 70*749f21d3Swesolows $(INS.dir) 71*749f21d3Swesolows 72*749f21d3Swesolows$(ROOTSMAMIBDIR)/%: mibs/% 73*749f21d3Swesolows $(INS.file) 74*749f21d3Swesolows 75*749f21d3SwesolowsFRC: 76*749f21d3Swesolows 77*749f21d3Swesolowsinclude ../../Makefile.targ 78*749f21d3Swesolowsinclude ../Makefile.targ 79