Makefile revision f6e214c7418f43af38bd8c3a557e3d0a1d311cfa
131N/A#
131N/A# CDDL HEADER START
131N/A#
131N/A# The contents of this file are subject to the terms of the
131N/A# Common Development and Distribution License (the "License").
131N/A# You may not use this file except in compliance with the License.
131N/A#
131N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
131N/A# or http://www.opensolaris.org/os/licensing.
131N/A# See the License for the specific language governing permissions
131N/A# and limitations under the License.
131N/A#
131N/A# When distributing Covered Code, include this CDDL HEADER in each
131N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
131N/A# If applicable, add the following below this CDDL HEADER, with the
131N/A# fields enclosed by brackets "[]" replaced with your own identifying
131N/A# information: Portions Copyright [yyyy] [name of copyright owner]
131N/A#
131N/A# CDDL HEADER END
131N/A#
131N/A#
131N/A# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
844N/A#
131N/A#
131N/A
131N/Ainclude ../../Makefile.lib
131N/Ainclude ../Makefile.lib
131N/A
131N/AFMHDRS = fmd_snmp.h
618N/AHDRDIR = common
131N/A
131N/ASUBDIRS = $(MACH)
844N/A$(BUILD64)SUBDIRS += $(MACH64)
844N/A
131N/AMIBFILES = SUN-FM-MIB.mib SUN-IREPORT-MIB.mib
131N/A
131N/AROOTNETSNMPMIBDIR = $(ROOT)/etc/net-snmp/snmp/mibs
131N/AROOTMIBS = $(MIBFILES:%=$(ROOTNETSNMPMIBDIR)/%)
131N/A
131N/A$(ROOTMIBS) := FILEMODE = 0644
131N/A$(ROOTNETSNMPMIBDIR) := DIRMODE = 0755
131N/A
131N/Aall := TARGET = all
131N/Aclean := TARGET = clean
131N/Aclobber := TARGET = clobber
131N/Ainstall := TARGET = install
131N/Alint := TARGET = lint
131N/A
131N/A.KEEP_STATE:
181N/A
181N/Aall lint clean clobber: $(SUBDIRS)
131N/A
131N/Ainstall: install_h install_mibs .WAIT $(SUBDIRS)
131N/A
install_h: $(ROOTFMHDRS)
install_mibs: $(ROOTNETSNMPMIBDIR) $(ROOTMIBS)
check: $(CHECKHDRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTNETSNMPMIBDIR):
$(INS.dir)
$(ROOTNETSNMPMIBDIR)/%: mibs/%
$(INS.file)
FRC:
include ../../Makefile.targ
include ../Makefile.targ