xref: /illumos-gate/usr/src/lib/fm/libfmd_snmp/Makefile (revision 241c90a0)
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#
22f6e214c7SGavin 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
35f6e214c7SGavin 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
47749f21d3Swesolows
48749f21d3Swesolows.KEEP_STATE:
49749f21d3Swesolows
50*241c90a0SRichard Loweall clean clobber: $(SUBDIRS)
51749f21d3Swesolows
52f808c858Srafinstall: install_h install_mibs .WAIT $(SUBDIRS)
53749f21d3Swesolows
54749f21d3Swesolowsinstall_h: $(ROOTFMHDRS)
55749f21d3Swesolows
5669f689b5SVijay HNinstall_mibs: $(ROOTNETSNMPMIBDIR) $(ROOTMIBS)
57749f21d3Swesolows
58749f21d3Swesolowscheck: $(CHECKHDRS)
59749f21d3Swesolows
60f808c858Sraf$(SUBDIRS): FRC
61749f21d3Swesolows	@cd $@; pwd; $(MAKE) $(TARGET)
62749f21d3Swesolows
6369f689b5SVijay HN$(ROOTNETSNMPMIBDIR):
64749f21d3Swesolows	$(INS.dir)
65749f21d3Swesolows
6669f689b5SVijay HN$(ROOTNETSNMPMIBDIR)/%: mibs/%
67749f21d3Swesolows	$(INS.file)
68749f21d3Swesolows
69749f21d3SwesolowsFRC:
70749f21d3Swesolows
71749f21d3Swesolowsinclude ../../Makefile.targ
72749f21d3Swesolowsinclude ../Makefile.targ
73