Mercurial > illumos > illumos-gate
view usr/src/cmd/fm/fmd/Makefile.fmd @ 12979:ab9ae749152f
PSARC/2009/617 Software Events Notification Parameters CLI
PSARC/2009/618 snmp-notify: SNMP Notification Daemon for Software Events
PSARC/2009/619 smtp-notify: Email Notification Daemon for Software Events
PSARC/2010/225 fmd for non-global Solaris zones
PSARC/2010/226 Solaris Instance UUID
PSARC/2010/227 nvlist_nvflag(3NVPAIR)
PSARC/2010/228 libfmevent additions
PSARC/2010/257 sysevent_evc_setpropnvl and sysevent_evc_getpropnvl
PSARC/2010/265 FMRI and FMA Event Stabilty, 'ireport' category 1 event class, and the 'sw' FMRI scheme
PSARC/2010/278 FMA/SMF integration: instance state transitions
PSARC/2010/279 Modelling panics within FMA
PSARC/2010/290 logadm.conf upgrade
6392476 fmdump needs to pretty-print
6393375 userland ereport/ireport event generation interfaces
6445732 Add email notification agent for FMA and software events
6804168 RFE: Allow an efficient means to monitor SMF services status changes
6866661 scf_values_destroy(3SCF) will segfault if is passed NULL
6884709 Add snmp notification agent for FMA and software events
6884712 Add private interface to tap into libfmd_msg macro expansion capabilities
6897919 fmd to run in a non-global zone
6897937 fmd use of non-private doors is not safe
6900081 add a UUID to Solaris kernel image for use in crashdump identification
6914884 model panic events as a defect diagnosis in FMA
6944862 fmd_case_open_uuid, fmd_case_uuisresolved, fmd_nvl_create_defect
6944866 log legacy sysevents in fmd
6944867 enumerate svc scheme in topo
6944868 software-diagnosis and software-response fmd modules
6944870 model SMF maintenance state as a defect diagnosis in FMA
6944876 savecore runs in foreground for systems with zfs root and dedicated dump
6965796 Implement notification parameters for SMF state transitions and FMA events
6968287 SUN-FM-MIB.mib needs to be updated to reflect Oracle information
6972331 logadm.conf upgrade PSARC/2010/290
author | Gavin Maltby <gavin.maltby@oracle.com> |
---|---|
date | Fri, 30 Jul 2010 17:04:17 +1000 |
parents | eb060666c73f |
children | 58bc6f85b799 |
line wrap: on
line source
# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. # .KEEP_STATE: SRCS += fmd.c \ fmd_api.c \ fmd_alloc.c \ fmd_asru.c \ fmd_buf.c \ fmd_builtin.c \ fmd_case.c \ fmd_ckpt.c \ fmd_conf.c \ fmd_ctl.c \ fmd_dispq.c \ fmd_dr.c \ fmd_error.c \ fmd_event.c \ fmd_eventq.c \ fmd_fmri.c \ fmd_idspace.c \ fmd_list.c \ fmd_log.c \ fmd_main.c \ fmd_module.c \ fmd_nv.c \ fmd_proc.c \ fmd_protocol.c \ fmd_rpc.c \ fmd_rpc_adm.c \ fmd_rpc_api.c \ fmd_rtld.c \ fmd_scheme.c \ fmd_self.c \ fmd_serd.c \ fmd_string.c \ fmd_subr.c \ fmd_svc_adm.c \ fmd_svc_api.c \ fmd_sysevent.c \ fmd_thread.c \ fmd_time.c \ fmd_timerq.c \ fmd_topo.c \ fmd_trace.c \ fmd_ustat.c \ fmd_xdr_adm.c \ fmd_xdr_api.c \ fmd_xprt.c PROG = fmd MANIFEST = ../common/$(PROG).xml MAPFILE-DMOD = $(SRC)/cmd/mdb/common/modules/conf/mapfile-extern LOGADMFILE = $(PROG).logadm.conf LOGADMDIR = $(ROOT)/etc/logadm.d LOGADMENT = $(LOGADMDIR)/$(LOGADMFILE) $(LOGADMENT) := FILEMODE = 444 ROOTPDIR = $(ROOT)/usr/lib/fm/$(PROG) ROOTVDIR = $(ROOT)/var/fm/$(PROG) ROOTVSUB = $(ROOTVDIR)/ckpt $(ROOTVDIR)/rsrc $(ROOTVDIR)/xprt ROOTPROG = $(ROOTPDIR)/$(PROG) ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) ROOTMANIFEST = $(ROOTMANIFESTDIR)/$(PROG).xml OBJS = $(SRCS:%.c=%.o) LINTFILES = $(SRCS:%.c=%.ln) CLEANFILES += ../common/fmd_rpc_api.h ../common/fmd_rpc_adm.h CLEANFILES += fmd_svc_adm.c fmd_svc_api.c fmd_xdr_adm.c fmd_xdr_api.c CLEANFILES += ../common/fmd_error.c DMOD = fmd.so ROOTDMOD = $(ROOT)/usr/lib/mdb/proc/$(DMOD) DMOD_SRCS = fmd_mdb.c DMOD_OBJS = $(DMOD_SRCS:%.c=%.o) DMOD_LINT = $(DMOD_SRCS:%.c=%.ln) HDRS = fmd_api.h fmd_fmri.h ROOTCDIR = $(ROOT)/etc/fm/$(PROG) ROOTHDIR = $(ROOT)/usr/include/fm ROOTHDRS = $(HDRS:%=$(ROOTHDIR)/%) $(ROOTHDRS) := FILEMODE = 0644 $(ROOTVSUB) := DIRMODE = 0755 $(ROOTMANIFEST) := FILEMODE = 0444 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG CPPFLAGS += -I. -I../common CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) LINTFLAGS += -mu $(PROG) := LDFLAGS += -R/usr/lib/fm $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \ -luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg $(DMOD) := CFLAGS += $(CC_PICFLAGS) -G $(XREGSFLAG) $(DMOD) := LDFLAGS += $(ZTEXT) $(ZDEFS) $(MAPFILE-DMOD:%=-M%) # # rpcgen(1) produces code that wants to be in the foreground if we're compiled # DEBUG, which isn't appropriate for our daemon. Forcibly undefine this code. # It also produces various lint warnings; turn these off for these files only. # Unfortunately we also have to turn off IGNOR2 for pass2 lint as well. # fmd_svc_adm.o fmd_svc_api.o := CPPFLAGS += -UDEBUG -URPC_SVC_FG fmd_xdr_adm.o fmd_xdr_api.o := CPPFLAGS += -UDEBUG -URPC_SVC_FG fmd_svc_adm.ln fmd_svc_api.ln fmd_xdr_adm.ln fmd_xdr_api.ln := LINTFLAGS += \ -xerroff=E_FUNC_ARG_UNUSED -xerroff=E_FUNC_VAR_UNUSED -xerroff=E_STATIC_UNUSED lint_prog := LINTFLAGS += -xerroff=E_FUNC_RET_ALWAYS_IGNOR2 .NO_PARALLEL: .PARALLEL: $(OBJS) $(LINTFILES) all: $(PROG) $(DMOD) install_h $(LOGADMDIR): $(INS.dir) $(LOGADMDIR)/%.conf: ../common/%.conf $(INS.file) $(PROG): $(OBJS) $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE) -L VERSION -o $@ $(OBJS) $(POST_PROCESS) $(DMOD): $(DMOD_OBJS) $(LINK.c) $(DMOD_OBJS) -o $@ -lc $(POST_PROCESS) %.o: ../common/%.c $(COMPILE.c) $< $(CTFCONVERT_O) %.o: %.c $(COMPILE.c) $< $(CTFCONVERT_O) ../common/fmd_error.c: ../common/mkerror.sh ../common/fmd_error.h sh ../common/mkerror.sh < ../common/fmd_error.h > $@ ../common/fmd_rpc_%.c: ../common/fmd_rpc_%.h ../common/fmd_rpc.c: ../common/fmd_rpc_adm.h ../common/fmd_rpc_api.h ../common/fmd_rpc_%.h: ../common/fmd_rpc_%.x $(RPCGEN) -CMN -h -o $@ $< fmd_svc_%.c: ../common/fmd_rpc_%.h $(RPCGEN) -CMN -m -o $@ `echo $< | sed 's/h$$/x/'` fmd_xdr_%.c: ../common/fmd_rpc_%.h $(RPCGEN) -CMN -c -o $@ `echo $< | sed 's/h$$/x/'` clean: $(RM) $(OBJS) $(DMOD_OBJS) $(LINTFILES) $(DMOD_LINT) $(RM) $(CLEANFILES) clobber: clean $(RM) $(PROG) $(DMOD) %.ln: ../common/%.c $(LINT.c) -c $< %.ln: %.c $(LINT.c) -c $< lint_prog: $(LINTFILES) $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS) lint_dmod: $(DMOD_LINT) $(LINT) $(LINTFLAGS) $(DMOD_LINT) $(LDLIBS) lint: lint_prog lint_dmod $(ROOT)/etc/fm: $(INS.dir) $(ROOTCDIR): $(ROOT)/etc/fm $(INS.dir) $(ROOTHDIR): $(INS.dir) $(ROOTHDIR)/%.h: ../common/%.h $(INS.file) $(ROOTMANIFESTDIR)/%.xml: ../common/%.xml $(INS.file) $(ROOT)/var/%: $(INS.dir) $(ROOTVDIR): $(ROOT)/var/fm $(INS.dir) $(ROOTVSUB): $(ROOTVDIR) $(INS.dir) $(ROOT)/usr/lib/fm: $(INS.dir) $(ROOTPDIR): $(ROOT)/usr/lib/fm $(INS.dir) $(ROOTPROG): $(ROOTPDIR) $(PROG) $(RM) $@; $(INS) -s -m 0555 -f $(@D) $(PROG) $(ROOT)/usr/lib/mdb/proc: $(ROOT)/usr/lib/mdb $(INS.dir) $(ROOTDMOD): $(ROOT)/usr/lib/mdb/proc $(DMOD) $(RM) $@; $(INS) -s -m 0555 -f $(@D) $(DMOD) install_h: $(ROOTHDIR) $(ROOTHDRS) install: all install_h $(ROOTPROG) $(ROOTDMOD) $(LOGADMDIR) $(LOGADMENT) \ $(ROOTCDIR) $(ROOTVDIR) $(ROOTVSUB) $(ROOTMANIFEST) check: $(CHKMANIFEST)